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

Side by Side Diff: chrome/browser/resources/bookmark_manager/css/bmm.css

Issue 9958101: [WebUI] Fix rest of CSS style nits in misc. dirs so I can turn on CSS checker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removing .py files Created 8 years, 8 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 html, body { 5
6 html,
7 body {
8 cursor: default;
9 height: 100%;
6 margin: 0; 10 margin: 0;
11 overflow: hidden;
7 width: 100%; 12 width: 100%;
8 height: 100%;
9 cursor: default;
10 overflow: hidden;
11 } 13 }
12 14
13 list { 15 list {
14 display: block; 16 display: block;
15 overflow-x: hidden; 17 overflow-x: hidden;
16 overflow-y: visible; /* let the container do the scrolling */ 18 overflow-y: visible; /* let the container do the scrolling */
17 } 19 }
18 20
19 list > * { 21 list > * {
22 -webkit-padding-end: 20px;
23 -webkit-padding-start: 3px;
20 color: hsl(0, 0%, 70%); 24 color: hsl(0, 0%, 70%);
21 padding: 0 3px; 25 display: -webkit-box;
22 -webkit-padding-end: 20px; 26 padding-bottom: 0;
27 padding-top: 0;
23 text-decoration: none; 28 text-decoration: none;
24 white-space: nowrap; 29 white-space: nowrap;
25 display: -webkit-box;
26 } 30 }
27 31
28 list > * > * { 32 list > * > * {
29 box-sizing: border-box;
30 -webkit-padding-start: 20px; 33 -webkit-padding-start: 20px;
31 background: 0 50% no-repeat; 34 background: 0 50% no-repeat;
35 box-sizing: border-box;
32 overflow: hidden; 36 overflow: hidden;
33 text-overflow: ellipsis; 37 text-overflow: ellipsis;
34 white-space: pre; /* Don't collapse whitespace */ 38 white-space: pre; /* Don't collapse whitespace */
35 } 39 }
36 40
37 list > * > .label { 41 list > * > .label {
38 -webkit-transition: all .15s; 42 -webkit-transition: all 150ms;
39 color: black; 43 color: black;
40 display: inline-block; /* We need to use inline-block here due to RTL. */ 44 display: inline-block; /* We need to use inline-block here due to RTL. */
41 } 45 }
42 46
43 list > * > .url { 47 list > * > .url {
44 display: none;
45 -webkit-box-flex: 1; 48 -webkit-box-flex: 1;
46 direction: ltr; /* URLs always read LTR */ 49 direction: ltr; /* URLs always read LTR */
50 display: none;
47 } 51 }
48 52
49 list > :hover > .url, 53 list > :hover > .url,
50 list > [selected] > .url { 54 list > [selected] > .url {
51 display: block; 55 display: block;
52 } 56 }
53 57
54 /* Handle proper padding for URL field in an RTL context, where field order is 58 /* Handle proper padding for URL field in an RTL context, where field order is
55 * |div.url||div.label| - so we need padding at the right of URL, not at the 59 * |div.url||div.label| - so we need padding at the right of URL, not at the
56 * left. And since url is always LTR, that is padding at the end, not the start. 60 * left. And since url is always LTR, that is padding at the end, not the start.
57 */ 61 */
58 html[dir=rtl] .url { 62 html[dir=rtl] .url {
59 -webkit-padding-end: 20px; 63 -webkit-padding-end: 20px;
60 -webkit-padding-start: 0; 64 -webkit-padding-start: 0;
61 } 65 }
62 66
63 html[dir=rtl] list .label { 67 html[dir=rtl] list .label {
64 background-position: 100% 50%; 68 background-position: 100% 50%;
65 } 69 }
66 70
67 list > .folder > .label { 71 list > .folder > .label {
68 background-image: url("../../../../../ui/resources/folder_closed.png"); 72 background-image: url('../../../../../ui/resources/folder_closed.png');
69 } 73 }
70 74
71 /* We need to ensure that even empty labels take up space */ 75 /* We need to ensure that even empty labels take up space */
72 list > * > .label:empty:after, 76 list > * > .label:empty:after,
73 list > * > .url:empty:after { 77 list > * > .url:empty:after {
74 content: " "; 78 content: ' ';
Evan Stade 2012/04/03 02:59:48 why is this ' ' while the other one is ''
75 white-space: pre; 79 white-space: pre;
Dan Beam 2012/04/03 03:15:10 estade and I think ^ this will likely make a diffe
76 } 80 }
77 81
78 list > .folder > .url:empty:after { 82 list > .folder > .url:empty:after {
79 content: ""; 83 content: '';
80 } 84 }
81 85
82 list > * > button { 86 list > * > button {
83 -webkit-transition: opacity .15s; 87 -webkit-transition: opacity 150ms;
84 background: #fff -webkit-canvas(drop-down-arrow) no-repeat center center; 88 background: #fff -webkit-canvas(drop-down-arrow) no-repeat center center;
85 border: 1px solid hsl(214, 91%, 85%); 89 border: 1px solid hsl(214, 91%, 85%);
86 border-radius: 3px; 90 border-radius: 3px;
87 bottom: 1px; 91 bottom: 1px;
88 display: none; 92 display: none;
89 overflow: hidden; 93 overflow: hidden;
90 padding: 0; 94 padding: 0;
91 position: absolute; 95 position: absolute;
92 right: 3px; 96 right: 3px;
93 top: 1px; 97 top: 1px;
94 width: 15px; 98 width: 15px;
95 } 99 }
96 100
97 list > [selected]:hover > button, 101 list > [selected]:hover > button,
98 list > * > button[menu-shown] { 102 list > * > button[menu-shown] {
99 border-color: hsl(214, 91%, 65%); 103 border-color: hsl(214, 91%, 65%);
100 } 104 }
101 105
102 list > :hover > button { 106 list > :hover > button {
103 display: block; 107 display: block;
104 } 108 }
105 109
106 list > * > button:hover, 110 list > * > button:hover,
107 list > * > button[menu-shown] { 111 list > * > button[menu-shown] {
108 display: block; 112 display: block;
109 } 113 }
110 114
111 html[dir=rtl] list > * > button { 115 html[dir=rtl] list > * > button {
116 left: 3px;
112 right: auto; 117 right: auto;
113 left: 3px;
114 } 118 }
115 119
116 /* Edit mode */ 120 /* Edit mode */
117 121
118 list [editing] .label input, 122 list [editing] .label input,
119 list [editing] .url input { 123 list [editing] .url input {
124 -webkit-margin-end: 4px;
125 -webkit-margin-start: -4px;
126 -webkit-padding-end: 3px;
127 -webkit-padding-start: 1px;
120 /* Do not inherit the line-height */ 128 /* Do not inherit the line-height */
121 font-family: inherit; 129 font-family: inherit;
122 font-size: inherit; 130 font-size: inherit;
123 font-weight: inherit; 131 font-weight: inherit;
124 margin: 0; 132 margin-bottom: 0;
125 -webkit-margin-start: -4px; 133 margin-top: 0;
126 -webkit-margin-end: 4px;
127 max-width: 40%; 134 max-width: 40%;
128 padding: 0; 135 padding-bottom: 0;
129 -webkit-padding-start: 1px; 136 padding-top: 0;
130 -webkit-padding-end: 3px;
131 text-decoration: none; 137 text-decoration: none;
132 } 138 }
133 139
134 .tree-item [editing] input { 140 .tree-item [editing] input {
135 -webkit-margin-start: -3px;
136 -webkit-padding-end: 7px;
137 margin: 0; 141 margin: 0;
138 padding: 0; 142 padding: 0;
139 <if expr="is_macosx"> 143 <if expr="is_macosx">
140 padding-top: 1px; 144 padding-top: 1px;
141 </if> 145 </if>
142 } 146 }
143 147
144 <if expr="is_macosx"> 148 <if expr="is_macosx">
145 list .label input, 149 list .label input,
146 list .url input { 150 list .url input {
147 outline: none; 151 outline: none;
148 } 152 }
149 </if> 153 </if>
150 154
151 list > [editing] { 155 list > [editing] {
152 overflow: visible; 156 overflow: visible;
153 } 157 }
154 158
155 list [editing] .label, 159 list [editing] .label,
156 list [editing] .url, 160 list [editing] .url,
157 list [editing] > * { 161 list [editing] > * {
162 display: inline;
158 overflow: visible; 163 overflow: visible;
159 display: inline;
160 } 164 }
161 165
162 list [editing] .url { 166 list [editing] .url {
163 -webkit-padding-start: 10px; 167 -webkit-padding-start: 10px;
164 } 168 }
165 169
166 /* end editing */ 170 /* end editing */
167 171
168 html[dir=rtl] list > .folder > .label { 172 html[dir=rtl] list > .folder > .label {
169 background-image: url("../../../../../ui/resources/folder_closed_rtl.png"); 173 background-image: url('../../../../../ui/resources/folder_closed_rtl.png');
170 } 174 }
171 175
172 <if expr="is_macosx"> 176 <if expr="is_macosx">
173 list > .folder > .label, 177 list > .folder > .label,
174 .tree-label, 178 .tree-label,
175 .tree-row[may-have-children] > .tree-label, 179 .tree-row[may-have-children] > .tree-label,
176 .tree-item[expanded] > .tree-row > .tree-label { 180 .tree-item[expanded] > .tree-row > .tree-label {
177 background-image: url("../../../../app/theme/bookmark_bar_folder_mac.png"); 181 background-image: url('../../../../app/theme/bookmark_bar_folder_mac.png');
178 } 182 }
179 </if> 183 </if>
180 184
181 .main { 185 .main {
186 bottom: 0;
187 display: -webkit-box;
188 left: 0;
182 position: absolute; 189 position: absolute;
183 display: -webkit-box; 190 right: 0;
184 top: 79px; 191 top: 79px;
185 left: 0;
186 right: 0;
187 bottom: 0;
188 } 192 }
189 193
190 .main > * { 194 .main > * {
191 height: 100%; 195 height: 100%;
192 } 196 }
193 197
194 #tree-container { 198 #tree-container {
199 -webkit-padding-end: 5px;
200 -webkit-padding-start: 10px;
201 /* min-width and max-width are used by the split pane. */
Evan Stade 2012/04/03 02:59:48 comment is in the wrong place now
Dan Beam 2012/04/03 04:15:06 Done.
202 box-sizing: border-box;
203 max-width: 50%;
204 min-width: 50px;
205 overflow: auto;
206 padding-bottom: 5px;
207 padding-top: 5px;
195 width: 200px; 208 width: 200px;
196 /* min-width and max-width are used by the split pane. */
197 min-width: 50px;
198 max-width: 50%;
199 overflow: auto;
200 box-sizing: border-box;
201 padding: 5px;
202 -webkit-padding-start: 10px;
203 } 209 }
204 210
205 #tree { 211 #tree {
212 display: inline-block;
206 min-width: 100%; 213 min-width: 100%;
207 overflow: visible; /* let the container do the scrolling */ 214 overflow: visible; /* let the container do the scrolling */
208 display: inline-block;
209 } 215 }
210 216
211 #list { 217 #list {
212 -webkit-box-flex: 1; 218 -webkit-box-flex: 1;
213 box-sizing: border-box; 219 box-sizing: border-box;
214 padding: 5px; 220 padding: 5px;
215 } 221 }
216 222
217 .splitter { 223 .splitter {
224 background-color: rgb(235, 239, 249);
225 cursor: e-resize;
218 width: 5px; 226 width: 5px;
219 background-color: #ebeff9;
220 cursor: e-resize;
221 <if expr="is_macosx"> 227 <if expr="is_macosx">
222 cursor: col-resize; 228 cursor: col-resize;
223 </if> 229 </if>
224 } 230 }
225 231
226 .logo { 232 .logo {
227 -webkit-appearance: none; 233 -webkit-appearance: none;
234 background: url('../images/bookmarks_section_32.png') no-repeat 50% 50%;
228 border: 0; 235 border: 0;
229 background: url("../images/bookmarks_section_32.png") no-repeat 50% 50%; 236 cursor: pointer;
237 float: left;
238 height: 32px;
239 margin: 10px;
230 width: 32px; 240 width: 32px;
231 height: 32px;
232 cursor: pointer;
233 margin: 10px;
234 float: left;
235 } 241 }
236 242
237 .header form { 243 .header form {
238 float: left; 244 float: left;
239 margin: 14px 2px; 245 margin: 14px 2px 0 2px;
240 margin-bottom: 0;
241 width: 171px; 246 width: 171px;
242 } 247 }
243 248
244 .header { 249 .header {
245 min-width: 400px; 250 min-width: 400px;
246 } 251 }
247 252
248 html[dir=rtl] .logo, 253 html[dir=rtl] .logo,
249 html[dir=rtl] .header > div, 254 html[dir=rtl] .header > div,
250 html[dir=rtl] .header form { 255 html[dir=rtl] .header form {
251 float: right; 256 float: right;
252 } 257 }
253 258
254 input[type='search'] { 259 input[type='search'] {
255 -webkit-margin-end: 2px; 260 -webkit-margin-end: 2px;
256 -webkit-margin-start: 2px; 261 -webkit-margin-start: 2px;
257 width: 100%; 262 width: 100%;
258 } 263 }
259 264
260 #drop-overlay { 265 #drop-overlay {
261 position: absolute; 266 background-color: hsla(214, 91%, 85%, .5);
Evan Stade 2012/04/03 02:59:48 I don't recall any style dictate that provides for
Dan Beam 2012/04/03 04:15:06 The style guide says: Prefer rgb() or rgba() wi
Evan Stade 2012/04/03 23:57:27 right, because I don't think we considered the use
Dan Beam 2012/04/04 00:54:49 we considered the use of hsl/hsla() when ignoring
262 display: none; 267 border: 1px solid hsl(214, 91%, 85%);
263 pointer-events: none;
264 border: 1px solid hsl(214, 91%, 85%);;
265 border-radius: 3px; 268 border-radius: 3px;
266 box-sizing: border-box; 269 box-sizing: border-box;
267 background-color: hsla(214, 91%, 85%, .5); 270 display: none;
268 overflow: hidden; 271 overflow: hidden;
272 pointer-events: none;
273 position: absolute;
269 z-index: -1; 274 z-index: -1;
270 } 275 }
271 276
272 #drop-overlay.line { 277 #drop-overlay.line {
278 background-clip: padding-box;
279 background-color: black;
273 border: 3px solid black; 280 border: 3px solid black;
281 border-bottom-color: transparent;
282 border-radius: 0;
274 border-top-color: transparent; 283 border-top-color: transparent;
275 border-bottom-color: transparent;
276 background-color: black;
277 background-clip: padding-box;
278 height: 8px; 284 height: 8px;
279 border-radius: 0;
280 z-index: 10; 285 z-index: 10;
281 } 286 }
282 287
283 .summary { 288 .summary {
284 background-color: #ebeff9; 289 background-color: rgb(235, 239, 249);
285 border-top: 1px solid #9cc2ef; 290 border-top: 1px solid rgb(156, 194, 239);
291 clear: both;
286 padding: 5px 10px; 292 padding: 5px 10px;
287 clear: both;
288 white-space: nowrap; 293 white-space: nowrap;
289 } 294 }
290 295
291 .summary > * { 296 .summary > * {
297 display: inline-block;
292 font-size: 100%; 298 font-size: 100%;
293 display: inline-block;
294 margin: 0; 299 margin: 0;
295 } 300 }
296 301
297 .summary button { 302 .summary button {
298 -webkit-appearance: none; 303 -webkit-appearance: none;
304 -webkit-margin-start: 10px;
305 -webkit-padding-end: 11px;
306 -webkit-padding-start: 0;
307 background: -webkit-canvas(drop-down-arrow) 100% 50% no-repeat;
Evan Stade 2012/04/03 03:08:02 left middle
Dan Beam 2012/04/03 04:15:06 Done.
299 background: transparent; 308 background: transparent;
300 border: 0; 309 border: 0;
301 font: inherit; 310 font: inherit;
302 padding: 0; 311 padding-bottom: 0;
303 background: -webkit-canvas(drop-down-arrow) 100% 50% no-repeat; 312 padding-top: 0;
304 -webkit-padding-end: 11px;
305 -webkit-margin-start: 10px;
306 } 313 }
307 314
308 html[dir=rtl] .summary button { 315 html[dir=rtl] .summary button {
309 background-position: 0 50%; 316 background-position: 0 50%;
310 } 317 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698