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

Side by Side Diff: chrome/browser/resources/new_new_tab.css

Issue 3315005: NTP: Adds a context menu to the apps section... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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
« no previous file with comments | « chrome/browser/dom_ui/ntp_resource_cache.cc ('k') | chrome/browser/resources/new_new_tab.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 html { 1 html {
2 /* This is needed because of chrome://theme/css/new_tab.css */ 2 /* This is needed because of chrome://theme/css/new_tab.css */
3 height: 100%; 3 height: 100%;
4 } 4 }
5 5
6 body { 6 body {
7 margin: 0; 7 margin: 0;
8 height: 100%; 8 height: 100%;
9 overflow: auto; 9 overflow: auto;
10 -webkit-user-select: none; 10 -webkit-user-select: none;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 max-width: 30ex; 122 max-width: 30ex;
123 overflow: hidden; 123 overflow: hidden;
124 text-overflow: ellipsis; 124 text-overflow: ellipsis;
125 white-space: nowrap; 125 white-space: nowrap;
126 } 126 }
127 127
128 .item { 128 .item {
129 background: no-repeat 0% 50%; 129 background: no-repeat 0% 50%;
130 padding: 2px; 130 padding: 2px;
131 padding-left: 18px; 131 padding-left: 18px;
132 background-size: 16px; 132 background-size: 16px 16px;
133 background-color: hsla(213, 63%, 93%, 0); 133 background-color: hsla(213, 63%, 93%, 0);
134 display: block; 134 display: block;
135 line-height: 20px; 135 line-height: 20px;
136 -webkit-box-sizing: border-box; 136 -webkit-box-sizing: border-box;
137 white-space: nowrap; 137 white-space: nowrap;
138 overflow: hidden; 138 overflow: hidden;
139 text-overflow: ellipsis; 139 text-overflow: ellipsis;
140 font-size: 100%; 140 font-size: 100%;
141 } 141 }
142 142
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 text-overflow: ellipsis; 212 text-overflow: ellipsis;
213 font-size: 100%; 213 font-size: 100%;
214 margin: 0 10px; 214 margin: 0 10px;
215 } 215 }
216 216
217 .notification.hidden { 217 .notification.hidden {
218 opacity: 0; 218 opacity: 0;
219 pointer-events: none; 219 pointer-events: none;
220 } 220 }
221 221
222 #option-menu {
223 right: 0;
224 left: auto;
225 min-width: 175px;
226 z-index: 3;
227 }
228
229 html[dir=rtl] #option-button,
230 html[dir=rtl] #option-menu {
231 right: auto;
232 left: 0;
233 }
234
235 #option-menu > * {
236 /* Work around rendering bug. */
237 outline: 1px solid transparent;
238 }
239
240 #option-menu > [command=show]:before,
241 #option-menu > [command=hide]:before {
242 -webkit-margin-start: -14px;
243 content: '\00a0'; /* non breaking space */
244 display: inline-block;
245 background-position: 0 50%;
246 background-repeat: no-repeat;
247 width: 14px;
248 }
249
250 html[dir=rtl] #option-menu > [command=show]:before,
251 html[dir=rtl] #option-menu > [command=hide]:before {
252 background-position-x: 100%;
253 }
254
255 #option-menu > [command=hide]:before {
256 background-image: url('ntp/checkbox_black.png');
257 }
258
259 #option-menu > [selected][command=hide]:active:before {
260 background-image: url('ntp/checkbox_white.png');
261 }
262
263 #attribution { 222 #attribution {
264 position: fixed; 223 position: fixed;
265 right: 5px; 224 right: 5px;
266 bottom: 5px; 225 bottom: 5px;
267 text-align: end; 226 text-align: end;
268 } 227 }
269 228
270 html[dir=rtl] #attribution { 229 html[dir=rtl] #attribution {
271 left: 5px; 230 left: 5px;
272 right: auto; 231 right: auto;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 height: 21px; 319 height: 21px;
361 z-index: 3; 320 z-index: 3;
362 } 321 }
363 322
364 html[dir=rtl] .section > h2 .settings-wrapper { 323 html[dir=rtl] .section > h2 .settings-wrapper {
365 left: 0; 324 left: 0;
366 right: auto; 325 right: auto;
367 } 326 }
368 327
369 .section > h2 .settings { 328 .section > h2 .settings {
370 position: absolute;
371 left: 5px;
372 top: 5px;
373 width: 11px;
374 height: 11px;
375 /* TODO(aa): Need a better image. This one is semi-transparent. Also, I think 329 /* TODO(aa): Need a better image. This one is semi-transparent. Also, I think
376 a gear would be better. */ 330 a gear would be better. */
331 background-color: transparent;
377 background-image: url(chrome://theme/IDR_BALLOON_WRENCH); 332 background-image: url(chrome://theme/IDR_BALLOON_WRENCH);
378 background-position: center center; 333 background-position: center center;
379 background-repeat: no-repeat; 334 background-repeat: no-repeat;
380 background-size: 100%; 335 border: 0;
336 height: 11px;
337 left: 5px;
338 position: absolute;
339 top: 5px;
340 width: 11px;
381 } 341 }
382 342
383 .section.hidden > h2 .settings-wrapper { 343 .section.hidden > h2 .settings-wrapper {
384 display: none; 344 display: none;
385 } 345 }
386 346
387 .maxiview { 347 .maxiview {
388 padding: 5px 0 30px; 348 padding: 5px 0 30px;
389 position: absolute; 349 position: absolute;
390 -webkit-mask-attachment: fixed; 350 -webkit-mask-attachment: fixed;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 } 420 }
461 } 421 }
462 422
463 /* Ensure we have at least 10px horizontal marging. */ 423 /* Ensure we have at least 10px horizontal marging. */
464 @media (max-width: 712px) { 424 @media (max-width: 712px) {
465 #main { 425 #main {
466 margin-left: 10px; 426 margin-left: 10px;
467 margin-right: 10px; 427 margin-right: 10px;
468 } 428 }
469 } 429 }
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/ntp_resource_cache.cc ('k') | chrome/browser/resources/new_new_tab.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698