Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / resources / options / controlled_setting.css
1 /* Copyright 2013 The Chromium Authors. All rights reserved.
2  * Use of this source code is governed by a BSD-style license that can be
3  * found in the LICENSE file. */
4
5 /* Controlled setting indicator and bubble. */
6
7 .controlled-setting-with-label {
8   -webkit-box-align: center;
9   display: -webkit-box;
10   padding-bottom: 7px;
11   padding-top: 7px;
12 }
13
14 .controlled-setting-with-label > input + span {
15   -webkit-box-align: center;
16   -webkit-box-flex: 1;
17   -webkit-margin-start: 0.6em;
18   display: -webkit-box;
19 }
20
21 .controlled-setting-with-label > input:disabled + span label {
22   color: #999;
23 }
24
25 .controlled-setting-with-label label {
26   display: inline;
27   padding: 0;
28 }
29
30 .controlled-setting-indicator:not([controlled-by]) {
31   display: none;
32 }
33
34 .controlled-setting-indicator[controlled-by='policy'] > div {
35   background-image: url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY');
36 }
37
38 .controlled-setting-indicator[controlled-by='owner'] > div {
39   background-image: url('chrome://theme/IDR_CONTROLLED_SETTING_OWNER');
40 }
41
42 .controlled-setting-indicator[controlled-by='extension'] > div {
43   background-image: url('chrome://theme/IDR_CONTROLLED_SETTING_EXTENSION');
44 }
45
46 .controlled-setting-indicator[controlled-by='shared'] > div {
47   background-image: url('chrome://theme/IDR_CONTROLLED_SETTING_SHARED');
48 }
49
50 .controlled-setting-indicator:-webkit-any([controlled-by='recommended'],
51     [controlled-by='hasRecommendation']) > div {
52   background-image: url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY');
53 }
54
55 .controlled-setting-bubble-action {
56   padding: 0 !important;
57 }
58
59 .controlled-setting-bubble-header {
60   margin-top: 3px;
61 }
62
63 .controlled-setting-bubble-content-row {
64   height: 35px;
65   position: relative;
66 }
67
68 .controlled-setting-bubble-extension-name {
69   -webkit-padding-start: 30px;
70   background-repeat: no-repeat;
71   font-weight: bold;
72   height: 24px;
73   margin-top: -9px;
74   overflow: hidden;
75   padding-top: 3px;
76   position: absolute;
77   text-overflow: ellipsis;
78   top: 50%;
79   white-space: nowrap;
80   width: 215px;
81 }
82
83 html[dir='rtl'] .controlled-setting-bubble-extension-name {
84   background-position: right top;
85 }
86
87 .controlled-setting-bubble-extension-manage-link {
88   margin-left: -0.35em;
89   margin-top: -0.30em;
90   position: absolute;
91   top: 50%;
92 }
93
94 .controlled-setting-bubble-extension-disable-button {
95   bottom: 0;
96   position: absolute;
97   right: 0;
98 }
99
100 html[dir='rtl'] .controlled-setting-bubble-extension-disable-button {
101   left: 0;
102   right: auto;
103 }