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

Side by Side Diff: chrome/browser/resources/shared/css/chrome_shared.css

Issue 10542023: Disable modifying extensions when in managed mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Improve/fix InitImpl() Created 8 years, 6 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 /* This file holds CSS that should be shared, in theory, by all user-visible 5 /* This file holds CSS that should be shared, in theory, by all user-visible
6 * chrome:// pages. */ 6 * chrome:// pages. */
7 7
8 @import url("chrome://resources/css/widgets.css"); 8 @import url("chrome://resources/css/widgets.css");
9 <if expr="pp_ifdef('chromeos')"> 9 <if expr="pp_ifdef('chromeos')">
10 @import url("chrome://resources/css/chromeos/ui_account_tweaks.css"); 10 @import url("chrome://resources/css/chromeos/ui_account_tweaks.css");
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 /* WebKit does not honor alignment for text specified via placeholder attribute. 99 /* WebKit does not honor alignment for text specified via placeholder attribute.
100 * This CSS is a workaround. Please remove once WebKit bug is fixed. 100 * This CSS is a workaround. Please remove once WebKit bug is fixed.
101 * https://bugs.webkit.org/show_bug.cgi?id=63367 101 * https://bugs.webkit.org/show_bug.cgi?id=63367
102 */ 102 */
103 html[dir='rtl'] input.weakrtl::-webkit-input-placeholder, 103 html[dir='rtl'] input.weakrtl::-webkit-input-placeholder,
104 html[dir='rtl'] .weakrtl input::-webkit-input-placeholder { 104 html[dir='rtl'] .weakrtl input::-webkit-input-placeholder {
105 direction: rtl; 105 direction: rtl;
106 } 106 }
107 107
108 /* Styles for a hideable notification banner at the top of a page.
109 * See the Options page .managed-prefs-banner for a usage example.
110 */
Patrick Dubroy 2012/06/18 12:13:01 It seems like a lot of this code should be in uber
Pam (message me for reviews) 2012/06/18 18:26:00 Moved the whole block to uber_shared.css following
111 .page.showing-banner {
112 margin-top: 45px;
Patrick Dubroy 2012/06/18 12:13:01 This should be in uber_shared.css, for example.
113 }
114
115 .main-page-banner {
116 background-color: white;
Patrick Dubroy 2012/06/18 12:13:01 Is this necessary?
Pam (message me for reviews) 2012/06/18 18:26:00 I don't know -- I'm just moving this from options_
117 width: 100%;
118 z-index: 2;
119 }
120
121 .page:not(.showing-banner) .main-page-banner {
122 display: none;
123 }
124
125 .main-page-banner-gradient {
Patrick Dubroy 2012/06/18 12:13:01 I'd move this to chrome_shared.css and rename the
126 background: -webkit-linear-gradient(rgb(255, 242, 183),
127 rgb(250, 230, 145));
128 border: 1px solid rgb(201, 189, 141);
129 border-radius: 3px;
130 height: 25px;
131 margin: 9px 9px 0 9px;
132 }
133
134 .main-page-banner .main-page-banner-gradient {
135 -webkit-margin-end: 20px;
136 -webkit-margin-start: 0;
137 margin-bottom: 9px;
138 }
139
140 .main-page-banner-text {
141 background-image: url('chrome://theme/IDR_MANAGED');
142 background-position: 5px center;
143 background-repeat: no-repeat;
144 display: block;
145 line-height: 24px;
146 padding-left: 26px;
147 }
148
149 .main-page-banner.clickable:active .main-page-banner-text {
150 background: -webkit-linear-gradient(rgb(250, 230, 145),
151 rgb(255, 242, 183));
152 }
153
108 /* Rules to make it easier to hit targets when using a coarse pointer like 154 /* Rules to make it easier to hit targets when using a coarse pointer like
109 * a touch screen. 155 * a touch screen.
110 */ 156 */
111 @media (pointer:coarse) { 157 @media (pointer:coarse) {
112 list input[type='input'], 158 list input[type='input'],
113 list input[type='password'], 159 list input[type='password'],
114 list input[type='search'], 160 list input[type='search'],
115 list input[type='text'], 161 list input[type='text'],
116 list input[type='url'] { 162 list input[type='url'] {
117 margin: 0; 163 margin: 0;
(...skipping 30 matching lines...) Expand all
148 194
149 list button:not(.custom-appearance):not(.link-button), 195 list button:not(.custom-appearance):not(.link-button),
150 list input[type=button]:not(.custom-appearance), 196 list input[type=button]:not(.custom-appearance),
151 list input[type=submit]:not(.custom-appearance), 197 list input[type=submit]:not(.custom-appearance),
152 list select { 198 list select {
153 margin: 0; 199 margin: 0;
154 padding-bottom: 0; 200 padding-bottom: 0;
155 padding-top: 3px; 201 padding-top: 3px;
156 } 202 }
157 } 203 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698