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

Side by Side Diff: chrome/browser/resources/options/options_page.css

Issue 11066015: Finish implementation of controlled setting indicator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 body { 5 body {
6 position: relative; 6 position: relative;
7 } 7 }
8 8
9 #main-content { 9 #main-content {
10 bottom: 0; 10 bottom: 0;
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 .options-bubble { 457 .options-bubble {
458 position: fixed; 458 position: fixed;
459 } 459 }
460 460
461 /* Controlled setting indicator and bubble. */ 461 /* Controlled setting indicator and bubble. */
462 462
463 .controlled-setting-indicator { 463 .controlled-setting-indicator {
464 display: none; 464 display: none;
465 } 465 }
466 466
467 .controlled-setting-indicator:-webkit-any([type='text'],[type='url']) {
468 -webkit-margin-start: 5px;
469 }
470
467 .controlled-setting-indicator[controlled-by] { 471 .controlled-setting-indicator[controlled-by] {
468 background-size: 16px; 472 background-size: 16px;
469 display: inline-block; 473 display: inline-block;
470 height: 16px; 474 height: 16px;
471 vertical-align: text-bottom; 475 vertical-align: text-bottom;
472 width: 16px; 476 width: 16px;
473 } 477 }
474 478
475 .controlled-setting-indicator[controlled-by='policy'] { 479 .controlled-setting-indicator[controlled-by='policy'] {
476 background-image: 480 background-image:
(...skipping 10 matching lines...) Expand all
487 background-image: 491 background-image:
488 url('chrome://theme/IDR_CONTROLLED_SETTING_EXTENSION_GRAY'); 492 url('chrome://theme/IDR_CONTROLLED_SETTING_EXTENSION_GRAY');
489 } 493 }
490 494
491 .controlled-setting-indicator[controlled-by='extension']:-webkit-any(:hover, 495 .controlled-setting-indicator[controlled-by='extension']:-webkit-any(:hover,
492 .showing-bubble) { 496 .showing-bubble) {
493 background-image: 497 background-image:
494 url('chrome://theme/IDR_CONTROLLED_SETTING_EXTENSION'); 498 url('chrome://theme/IDR_CONTROLLED_SETTING_EXTENSION');
495 } 499 }
496 500
497 .controlled-setting-indicator[controlled-by='recommended'] { 501 .controlled-setting-indicator:-webkit-any([controlled-by='recommended'],
502 [controlled-by='hasRecommendation']) {
498 background-image: 503 background-image:
499 url('chrome://theme/IDR_CONTROLLED_SETTING_RECOMMENDED_GRAY'); 504 url('chrome://theme/IDR_CONTROLLED_SETTING_RECOMMENDED_GRAY');
500 } 505 }
501 506
502 .controlled-setting-indicator[controlled-by='recommended']:-webkit-any(:hover, 507 .controlled-setting-indicator:-webkit-any([controlled-by='recommended'],
503 .showing-bubble) { 508 [controlled-by='hasRecommendation']):-webkit-any(:hover,.showing-bubble) {
504 background-image: 509 background-image:
505 url('chrome://theme/IDR_CONTROLLED_SETTING_RECOMMENDED'); 510 url('chrome://theme/IDR_CONTROLLED_SETTING_RECOMMENDED');
506 } 511 }
507 512
508 .controlled-setting-bubble-content { 513 .controlled-setting-bubble-content {
509 -webkit-padding-start: 30px; 514 -webkit-padding-start: 30px;
510 background-repeat: no-repeat; 515 background-repeat: no-repeat;
511 background-size: 22px; 516 background-size: 22px;
512 min-height: 32px; 517 min-height: 32px;
513 } 518 }
514 519
515 .controlled-setting-bubble-content[controlled-by='policy'] { 520 .controlled-setting-bubble-content[controlled-by='policy'] {
516 background-image: 521 background-image:
517 url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY_LARGE'); 522 url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY_LARGE');
518 } 523 }
519 524
520 .controlled-setting-bubble-content[controlled-by='extension'] { 525 .controlled-setting-bubble-content[controlled-by='extension'] {
521 background-image: 526 background-image:
522 url('chrome://theme/IDR_CONTROLLED_SETTING_EXTENSION_LARGE'); 527 url('chrome://theme/IDR_CONTROLLED_SETTING_EXTENSION_LARGE');
523 } 528 }
524 529
525 .controlled-setting-bubble-content[controlled-by='recommended'] { 530 .controlled-setting-bubble-content:-webkit-any([controlled-by='recommended'],
531 [controlled-by='hasRecommendation']) {
526 background-image: 532 background-image:
527 url('chrome://theme/IDR_CONTROLLED_SETTING_RECOMMENDED_LARGE'); 533 url('chrome://theme/IDR_CONTROLLED_SETTING_RECOMMENDED_LARGE');
528 } 534 }
529 535
530 html[dir='rtl'] .controlled-setting-bubble-content { 536 html[dir='rtl'] .controlled-setting-bubble-content {
531 background-position: right top; 537 background-position: right top;
532 } 538 }
533 539
534 .controlled-setting-bubble-action { 540 .controlled-setting-bubble-action {
535 padding: 0 !important; 541 padding: 0 !important;
536 } 542 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698