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

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

Issue 9513016: uber managed pref banners (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: self review 2 Created 8 years, 9 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 24 matching lines...) Expand all
35 position: relative; 35 position: relative;
36 } 36 }
37 37
38 #page-container { 38 #page-container {
39 -webkit-padding-end: 24px; 39 -webkit-padding-end: 24px;
40 box-sizing: border-box; 40 box-sizing: border-box;
41 max-width: 888px; 41 max-width: 888px;
42 min-width: 600px; 42 min-width: 600px;
43 } 43 }
44 44
45 #page-container .page {
46 -webkit-transition-duration: 200ms;
47 -webkit-transition-property: margin-top;
48 }
49
50 #page-container .page.under-managed-prefs-banner {
51 margin-top: 31px;
52 }
53
54 #page-container header {
55 -webkit-transition-duration: 200ms;
56 -webkit-transition-property: top;
57 }
58
59 #page-container .page.under-managed-prefs-banner header {
60 top: 31px;
61 }
62
63 div.disabled { 45 div.disabled {
64 color: #888; 46 color: #888;
65 } 47 }
66 48
67 /* TEXT */ 49 /* TEXT */
68 input[type='password'], 50 input[type='password'],
69 input[type='text'], 51 input[type='text'],
70 input[type='url'], 52 input[type='url'],
71 input:not([type]) { 53 input:not([type]) {
72 -webkit-border-radius: 2px; 54 -webkit-border-radius: 2px;
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 min-width: 650px; 201 min-width: 650px;
220 padding: 0 20px; 202 padding: 0 20px;
221 width: 95%; 203 width: 95%;
222 } 204 }
223 205
224 .subpage-sheet-contents .page { 206 .subpage-sheet-contents .page {
225 z-index: 1; 207 z-index: 1;
226 } 208 }
227 209
228 .managed-prefs-banner { 210 .managed-prefs-banner {
229 -webkit-transition-duration: 200ms; 211 background-color: white;
230 -webkit-transition-property: height;
231 background: -webkit-linear-gradient(rgb(255, 242, 183),
232 rgb(250, 230, 145) 97%,
233 rgb(135, 135, 135));
234 height: 31px;
235 margin: 0;
236 padding: 0;
237 position: fixed;
238 vertical-align: middle;
239 width: 100%; 212 width: 100%;
240 z-index: 2; 213 z-index: 2;
241 } 214 }
242 215
243 .managed-prefs-banner[hidden] { 216 .page:not(.showing-banner) .managed-prefs-banner {
244 height: 0; 217 display: none;
245 } 218 }
246 219
247 .managed-prefs-banner.clickable:active { 220 .managed-prefs-gradient {
248 background: -webkit-linear-gradient(rgb(135, 135, 135), 221 background: -webkit-linear-gradient(rgb(255, 242, 183),
249 rgb(250, 230, 145) 3%, 222 rgb(250, 230, 145));
223 border: 1px solid rgb(201, 189, 141);
224 border-radius: 3px;
225 height: 25px;
226 margin: 9px 9px 0 9px;
227 }
228
229 .main-page-banner .managed-prefs-gradient {
230 -webkit-margin-end: 100px;
231 -webkit-margin-start: 0;
232 margin-bottom: 9px;
233 margin-top: 0;
234 }
235
236 .managed-prefs-text {
237 background-image: url('chrome://theme/IDR_WARNING');
238 background-position: 3px center;
239 background-repeat: no-repeat;
240 display: block;
241 line-height: 25px;
242 padding-left: 31px;
243 }
244
245 .managed-prefs-banner.clickable:active .managed-prefs-text {
246 background: -webkit-linear-gradient(rgb(250, 230, 145),
250 rgb(255, 242, 183)); 247 rgb(255, 242, 183));
251 } 248 }
252 249
253 .managed-prefs-icon { 250 #page-container .page.showing-banner {
254 background-image: url('chrome://theme/IDR_WARNING'); 251 margin-top: 36px;
255 background-position: center;
256 background-repeat: no-repeat;
257 display: inline-block;
258 height: 21px;
259 padding: 5px;
260 vertical-align: middle;
261 width: 24px;
262 }
263
264 .managed-prefs-text {
265 vertical-align: middle;
266 } 252 }
267 253
268 .overlay .page h1 { 254 .overlay .page h1 {
269 background: -webkit-linear-gradient(white, #F8F8F8); 255 background: -webkit-linear-gradient(white, #F8F8F8);
270 border-bottom: 1px solid rgba(188, 193, 208, .5); 256 border-bottom: 1px solid rgba(188, 193, 208, .5);
271 font-size: 105%; 257 font-size: 105%;
272 font-weight: bold; 258 font-weight: bold;
273 padding: 10px 15px 8px 15px; 259 padding: 10px 15px 8px 15px;
274 } 260 }
275 261
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 url('chrome://theme/IDR_CONTROLLED_SETTING_RECOMMENDED_LARGE'); 663 url('chrome://theme/IDR_CONTROLLED_SETTING_RECOMMENDED_LARGE');
678 } 664 }
679 665
680 html[dir='rtl'] .controlled-setting-bubble-text { 666 html[dir='rtl'] .controlled-setting-bubble-text {
681 background-position: right top; 667 background-position: right top;
682 } 668 }
683 669
684 .controlled-setting-bubble-action { 670 .controlled-setting-bubble-action {
685 padding: 0 !important; 671 padding: 0 !important;
686 } 672 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698