Chromium Code Reviews| Index: chrome/browser/resources/options/options_page.css |
| diff --git a/chrome/browser/resources/options/options_page.css b/chrome/browser/resources/options/options_page.css |
| index be6c6b1ceb175b0936f0bc7743d16cb371ef6158..1b377542e59f66f9de26a1c4b3aefd4d6522be3d 100644 |
| --- a/chrome/browser/resources/options/options_page.css |
| +++ b/chrome/browser/resources/options/options_page.css |
| @@ -42,13 +42,23 @@ body { |
| -webkit-box-pack: center; |
| } |
| -.close-subpage { |
| +.raw-button, |
| +.raw-button:hover, |
| +.raw-button:active { |
| + -webkit-box-shadow: none; |
| background-color: transparent; |
| - background-image: url('chrome://theme/IDR_CLOSE_BAR'); |
| + background-repeat: no-repeat; |
| border: none; |
| + min-width: 0; |
| + padding: 1px 6px; |
| +} |
| + |
| +.close-subpage { |
| + background-image: url('chrome://theme/IDR_CLOSE_BAR'); |
| + height: 16px; |
| + min-width: 0; |
| position: relative; |
| top: 12px; |
| - height: 16px; |
| width: 16px; |
| } |
| @@ -320,10 +330,6 @@ label.radio { |
| -webkit-appearance: slider-horizontal; |
| } |
| -select { |
| - margin: 0; |
| -} |
| - |
| .link-button { |
| background-color: transparent; |
| border: none; |
| @@ -513,11 +519,103 @@ html[enable-cloud-print-proxy=true] #cloudPrintProxyManageButton { |
| display: none; |
| } |
| +/* UI Controls */ |
| + |
| +button:focus, |
| +input:focus, |
| +input[type='submit']:focus, |
| +select:focus { |
| + outline-color: rgba(0, 128, 256, 0.5); |
| +} |
| + |
| +/* TEXT */ |
| +input[type='text'] { |
|
arv (Not doing code reviews)
2011/01/19 20:53:28
We probably need more types here eventually.
|
| + -webkit-border-radius: 2px; |
| + border: 1px solid #aaa; |
| + font-size: inherit; |
| + padding: 3px; |
| +} |
| + |
| +/* BUTTON */ |
| +button, |
| +input[type='submit'] { |
| + -webkit-border-radius: 2px; |
| + -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1); |
| + background: -webkit-linear-gradient(#fafafa, #f4f4f4 40%, #e5e5e5); |
| + border: 1px solid #aaa; |
| + color: #444; |
| + font-size: inherit; |
| + margin-bottom: 0px; |
| + min-width: 4em; |
| + padding: 3px 12px 3px 12px; |
| +} |
| + |
| +button:hover, |
| +input[type='submit']:hover { |
| + -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2); |
| + background: #ebebeb -webkit-linear-gradient(#fefefe, #f8f8f8 40%, #e9e9e9); |
| + border-color: #999; |
| + color: #222; |
| +} |
| + |
| +button:active, |
| +input[type='submit']:active { |
| + -webkit-box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.2); |
| + background: #ebebeb -webkit-linear-gradient(#f4f4f4, #efefef 40%, #dcdcdc); |
| + color: #333; |
| +} |
| + |
| +button[disabled], |
| +input[type='submit'][disabled], |
| +button[disabled]:hover, |
| +input[type='submit'][disabled]:hover { |
| + -webkit-box-shadow: none; |
| + background: -webkit-linear-gradient(#fafafa, #f4f4f4 40%, #e5e5e5); |
| + border-color: #aaa; |
| + color: #888; |
| +} |
| + |
| +/* SELECT */ |
| +select { |
| + -webkit-appearance: button; |
| + -webkit-border-radius: 2px; |
| + -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1); |
| + background-image: url("select.png"), -webkit-linear-gradient(#fafafa, #f4f4f4 40%, #e5e5e5); |
| + background-position: center right; |
| + background-repeat: no-repeat; |
| + border: 1px solid #aaa; |
| + color: #555; |
| + font-size: inherit; |
| + margin: 0; |
| + overflow: hidden; |
| + padding: 2px 20px 2px 3px; |
| + text-overflow: ellipsis; |
| + white-space: nowrap; |
| +} |
| + |
| +html[dir='rtl'] select { |
| + background-position: center left; |
| +} |
| + |
| +select:hover { |
| + -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2); |
| + background-image: url("select.png"), -webkit-linear-gradient(#fefefe, #f8f8f8 40%, #e9e9e9); |
| + color: #333; |
| +} |
| + |
| +select:active { |
| + -webkit-box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.2); |
| + background-image: url("select.png"), -webkit-linear-gradient(#f4f4f4, #efefef 40%, #dcdcdc); |
| + color: #444; |
| +} |
| + |
| +/* CHECKBOX, RADIO */ |
| input[type=checkbox], |
| -input[type=radio], |
| -button { |
| +input[type=radio] { |
| margin-left: 0; |
| margin-right: 0; |
| + position: relative; |
| + top: 1px; |
| } |
| /* Checkbox and radio buttons have different sizes on different platforms. The |
| @@ -530,11 +628,11 @@ label > input[type=radio] { |
| margin-top: 1px; |
| } |
| -.suboption { |
| - -webkit-margin-start: 16px; |
| -} |
| - |
| html[os=mac] label > input[type=checkbox], |
| html[os=mac] label > input[type=radio] { |
| margin-top: 2px; |
| } |
| + |
| +.suboption { |
| + -webkit-margin-start: 16px; |
| +} |