Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Unified Diff: chrome/browser/resources/shared/css/widgets.css

Issue 9689048: [webui] fix vertical alignment of buttons and text inputs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/options2/options_page.css ('k') | chrome/browser/resources/shared_resources.grd » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/shared/css/widgets.css
diff --git a/chrome/browser/resources/shared/css/widgets.css b/chrome/browser/resources/shared/css/widgets.css
index 7a23deae29b61319ef6ca52dfd687ed425437f04..823cdece2b5b818315e4cbc6e905516ecd963ee8 100644
--- a/chrome/browser/resources/shared/css/widgets.css
+++ b/chrome/browser/resources/shared/css/widgets.css
@@ -35,6 +35,16 @@ input[type='submit']:not(.custom-appearance):not(.link-button),
select {
height: 2em;
min-width: 4em;
+<if expr="pp_ifdef('chromeos')">
+ /* Without this rule, chromeos button text is too high on the button. */
+ padding-top: 3px;
+</if>
+<if expr="is_macosx or is_win">
+ /* The following platform-specific rule is necessary to get adjacent
+ * buttons, text inputs, and so forth to align on their borders while also
+ * aligning on the text's baselines. */
+ padding-bottom: 1px;
+</if>
}
button:not(.custom-appearance):not(.link-button),
@@ -271,6 +281,10 @@ input:not([type]) {
height: 2em;
margin: 0;
padding: 3px;
+<if expr="pp_ifdef('chromeos')">
+ /* For better alignment between adjacent buttons and inputs. */
+ padding-bottom: 2px;
+</if>
}
input[type='search'] {
« no previous file with comments | « chrome/browser/resources/options2/options_page.css ('k') | chrome/browser/resources/shared_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698