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

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: Comments addressed. 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 input:-webkit-any([type='text'],[type='url'],:not([type])) +
468 .controlled-setting-indicator {
469 -webkit-margin-start: 5px;
470 }
471
467 .controlled-setting-indicator[controlled-by] { 472 .controlled-setting-indicator[controlled-by] {
468 background-size: 16px; 473 background-size: 16px;
469 display: inline-block; 474 display: inline-block;
470 height: 16px; 475 height: 16px;
471 vertical-align: text-bottom; 476 vertical-align: text-bottom;
472 width: 16px; 477 width: 16px;
473 } 478 }
474 479
475 .controlled-setting-indicator[controlled-by='policy'] { 480 .controlled-setting-indicator[controlled-by='policy'] {
476 background-image: 481 background-image:
(...skipping 10 matching lines...) Expand all
487 background-image: 492 background-image:
488 url('chrome://theme/IDR_CONTROLLED_SETTING_EXTENSION_GRAY'); 493 url('chrome://theme/IDR_CONTROLLED_SETTING_EXTENSION_GRAY');
489 } 494 }
490 495
491 .controlled-setting-indicator[controlled-by='extension']:-webkit-any(:hover, 496 .controlled-setting-indicator[controlled-by='extension']:-webkit-any(:hover,
492 .showing-bubble) { 497 .showing-bubble) {
493 background-image: 498 background-image:
494 url('chrome://theme/IDR_CONTROLLED_SETTING_EXTENSION'); 499 url('chrome://theme/IDR_CONTROLLED_SETTING_EXTENSION');
495 } 500 }
496 501
497 .controlled-setting-indicator[controlled-by='recommended'] { 502 .controlled-setting-indicator:-webkit-any([controlled-by='recommended'],
503 [controlled-by='hasRecommendation']) {
498 background-image: 504 background-image:
499 url('chrome://theme/IDR_CONTROLLED_SETTING_RECOMMENDED_GRAY'); 505 url('chrome://theme/IDR_CONTROLLED_SETTING_RECOMMENDED_GRAY');
500 } 506 }
501 507
502 .controlled-setting-indicator[controlled-by='recommended']:-webkit-any(:hover, 508 .controlled-setting-indicator:-webkit-any([controlled-by='recommended'],
503 .showing-bubble) { 509 [controlled-by='hasRecommendation']):-webkit-any(:hover,.showing-bubble) {
504 background-image: 510 background-image:
505 url('chrome://theme/IDR_CONTROLLED_SETTING_RECOMMENDED'); 511 url('chrome://theme/IDR_CONTROLLED_SETTING_RECOMMENDED');
506 } 512 }
507 513
508 .controlled-setting-bubble-content { 514 .controlled-setting-bubble-content {
509 -webkit-padding-start: 30px; 515 -webkit-padding-start: 30px;
510 background-repeat: no-repeat; 516 background-repeat: no-repeat;
511 background-size: 22px; 517 background-size: 22px;
512 min-height: 32px; 518 min-height: 32px;
513 } 519 }
514 520
515 .controlled-setting-bubble-content[controlled-by='policy'] { 521 .controlled-setting-bubble-content[controlled-by='policy'] {
516 background-image: 522 background-image:
517 url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY_LARGE'); 523 url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY_LARGE');
518 } 524 }
519 525
520 .controlled-setting-bubble-content[controlled-by='extension'] { 526 .controlled-setting-bubble-content[controlled-by='extension'] {
521 background-image: 527 background-image:
522 url('chrome://theme/IDR_CONTROLLED_SETTING_EXTENSION_LARGE'); 528 url('chrome://theme/IDR_CONTROLLED_SETTING_EXTENSION_LARGE');
523 } 529 }
524 530
525 .controlled-setting-bubble-content[controlled-by='recommended'] { 531 .controlled-setting-bubble-content:-webkit-any([controlled-by='recommended'],
532 [controlled-by='hasRecommendation']) {
526 background-image: 533 background-image:
527 url('chrome://theme/IDR_CONTROLLED_SETTING_RECOMMENDED_LARGE'); 534 url('chrome://theme/IDR_CONTROLLED_SETTING_RECOMMENDED_LARGE');
528 } 535 }
529 536
530 html[dir='rtl'] .controlled-setting-bubble-content { 537 html[dir='rtl'] .controlled-setting-bubble-content {
531 background-position: right top; 538 background-position: right top;
532 } 539 }
533 540
534 .controlled-setting-bubble-action { 541 .controlled-setting-bubble-action {
535 padding: 0 !important; 542 padding: 0 !important;
536 } 543 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698