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

Side by Side Diff: chrome/browser/resources/shared/css/chrome_shared2.css

Issue 9609023: css hack n' slash, continued: New styles for checkboxes and radios. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: csilv review 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. */ 3 * found in the LICENSE file. */
4 4
5 /* This file holds CSS that should be shared, in theory, by all user-visible 5 /* This file holds CSS that should be shared, in theory, by all user-visible
6 * chrome:// pages. This contrasts chrome_shared.css, which it is meant to 6 * chrome:// pages. This contrasts chrome_shared.css, which it is meant to
7 * replace, but has CSS specific to options and options-like pages. */ 7 * replace, but has CSS specific to options and options-like pages. */
8 8
9 @import url("chrome://resources/css/button.css"); 9 @import url("chrome://resources/css/widgets.css");
10 @import url("chrome://resources/css/checkbox.css");
11 10
12 /* Prevent CSS from overriding the hidden property. */ 11 /* Prevent CSS from overriding the hidden property. */
13 [hidden] { 12 [hidden] {
14 display: none !important; 13 display: none !important;
15 } 14 }
16 15
17 html.loading * { 16 html.loading * {
18 -webkit-transition-delay: 0 !important; 17 -webkit-transition-delay: 0 !important;
19 -webkit-transition-duration: 0 !important; 18 -webkit-transition-duration: 0 !important;
20 } 19 }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 58
60 a { 59 a {
61 color: rgb(17, 85, 204); 60 color: rgb(17, 85, 204);
62 text-decoration: underline; 61 text-decoration: underline;
63 } 62 }
64 63
65 a:active { 64 a:active {
66 color: rgb(5, 37, 119); 65 color: rgb(5, 37, 119);
67 } 66 }
68 67
69 div.checkbox,
70 div.radio {
71 margin: 0.45em 0;
72 }
73
74 input[type=radio] ~ span,
75 input[type=checkbox] ~ span {
76 color: #444;
77 }
78
79 /* TEXT */
80 /* TODO(estade): add more types here? */
81 input[type='password'],
82 input[type='search'],
83 input[type='text'],
84 input[type='url'],
85 input:not([type]) {
86 border: 1px solid #bfbfbf;
87 border-radius: 2px;
88 font: inherit;
89 height: 2em;
90 margin: 0;
91 padding: 3px;
92 }
93
94 input[type='search'] {
95 /* NOTE: Keep a relatively high min-width for this so we don't obscure the end
96 * of the default text in relatively spacious languages (i.e. German). */
97 min-width: 160px;
98 }
99
100 input[type='text']:disabled {
101 color: #888;
102 }
103
104 /* 68 /*
105 * Add padding to increase the touchable area of search box. Use original font 69 * Add padding to increase the touchable area of search box. Use original font
106 * size to avoid the width of search box exceeding the width of navbar. 70 * size to avoid the width of search box exceeding the width of navbar.
107 */ 71 */
108 html[touch-optimized] input[type='search'] { 72 html[touch-optimized] input[type='search'] {
109 font-size: 13px; 73 font-size: 13px;
110 padding: 5px; 74 padding: 5px;
111 } 75 }
112 76
113 html[touch-optimized] input[type='search']::-webkit-search-cancel-button { 77 html[touch-optimized] input[type='search']::-webkit-search-cancel-button {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 } 113 }
150 114
151 /* WebKit does not honor alignment for text specified via placeholder attribute. 115 /* WebKit does not honor alignment for text specified via placeholder attribute.
152 * This CSS is a workaround. Please remove once WebKit bug is fixed. 116 * This CSS is a workaround. Please remove once WebKit bug is fixed.
153 * https://bugs.webkit.org/show_bug.cgi?id=63367 117 * https://bugs.webkit.org/show_bug.cgi?id=63367
154 */ 118 */
155 html[dir='rtl'] input.weakrtl::-webkit-input-placeholder, 119 html[dir='rtl'] input.weakrtl::-webkit-input-placeholder,
156 html[dir='rtl'] .weakrtl input::-webkit-input-placeholder { 120 html[dir='rtl'] .weakrtl input::-webkit-input-placeholder {
157 direction: rtl; 121 direction: rtl;
158 } 122 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/shared/css/checkbox.css ('k') | chrome/browser/resources/shared/css/widgets.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698