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

Side by Side Diff: chrome/browser/resources/bookmark_manager/css/bmm.css

Issue 9794016: [webui] get rid of more html[os=] rules (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: presub 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
« no previous file with comments | « no previous file | chrome/browser/resources/cloud_print/cloud_print_setup_done.css » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 html, body { 5 html, body {
6 margin: 0; 6 margin: 0;
7 width: 100%; 7 width: 100%;
8 height: 100%; 8 height: 100%;
9 cursor: default; 9 cursor: default;
10 overflow: hidden; 10 overflow: hidden;
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 -webkit-margin-start: -4px; 125 -webkit-margin-start: -4px;
126 -webkit-margin-end: 4px; 126 -webkit-margin-end: 4px;
127 max-width: 40%; 127 max-width: 40%;
128 padding: 0; 128 padding: 0;
129 -webkit-padding-start: 1px; 129 -webkit-padding-start: 1px;
130 -webkit-padding-end: 3px; 130 -webkit-padding-end: 3px;
131 text-decoration: none; 131 text-decoration: none;
132 } 132 }
133 133
134 .tree-item [editing] input { 134 .tree-item [editing] input {
135 -webkit-margin-start: -3px;
136 -webkit-padding-end: 7px;
135 margin: 0; 137 margin: 0;
136 padding: 0; 138 padding: 0;
137 -webkit-margin-start: -3px; 139 <if expr="is_macosx">
138 -webkit-padding-end: 7px; 140 padding-top: 1px;
141 </if>
139 } 142 }
140 143
141 html[os=mac] .tree-label [editing] input { 144 <if expr="is_macosx">
142 padding-top: 1px; 145 list .label input,
143 } 146 list .url input {
144
145 html:not([os=mac]) list .label input,
146 html:not([os=mac]) list .url input {
147 outline: none; 147 outline: none;
148 } 148 }
149 </if>
149 150
150 list > [editing] { 151 list > [editing] {
151 overflow: visible; 152 overflow: visible;
152 } 153 }
153 154
154 list [editing] .label, 155 list [editing] .label,
155 list [editing] .url, 156 list [editing] .url,
156 list [editing] > * { 157 list [editing] > * {
157 overflow: visible; 158 overflow: visible;
158 display: inline; 159 display: inline;
159 } 160 }
160 161
161 list [editing] .url { 162 list [editing] .url {
162 -webkit-padding-start: 10px; 163 -webkit-padding-start: 10px;
163 } 164 }
164 165
165 /* end editing */ 166 /* end editing */
166 167
167 html[dir=rtl] list > .folder > .label { 168 html[dir=rtl] list > .folder > .label {
168 background-image: url("../../../../../ui/resources/folder_closed_rtl.png"); 169 background-image: url("../../../../../ui/resources/folder_closed_rtl.png");
169 } 170 }
170 171
171 html[os=mac] list > .folder > .label { 172 <if expr="is_macosx">
173 list > .folder > .label,
174 .tree-label,
175 .tree-row[may-have-children] > .tree-label,
176 .tree-item[expanded] > .tree-row > .tree-label {
172 background-image: url("../../../../app/theme/bookmark_bar_folder_mac.png"); 177 background-image: url("../../../../app/theme/bookmark_bar_folder_mac.png");
173 } 178 }
174 179 </if>
175 html[os=mac] .tree-label,
176 html[os=mac] .tree-row[may-have-children] > .tree-label {
177 background-image: url("../../../../app/theme/bookmark_bar_folder_mac.png");
178 }
179
180 html[os=mac] .tree-item[expanded] > .tree-row > .tree-label {
181 background-image: url("../../../../app/theme/bookmark_bar_folder_mac.png");
182 }
183 180
184 .main { 181 .main {
185 position: absolute; 182 position: absolute;
186 display: -webkit-box; 183 display: -webkit-box;
187 top: 79px; 184 top: 79px;
188 left: 0; 185 left: 0;
189 right: 0; 186 right: 0;
190 bottom: 0; 187 bottom: 0;
191 } 188 }
192 189
(...skipping 21 matching lines...) Expand all
214 #list { 211 #list {
215 -webkit-box-flex: 1; 212 -webkit-box-flex: 1;
216 box-sizing: border-box; 213 box-sizing: border-box;
217 padding: 5px; 214 padding: 5px;
218 } 215 }
219 216
220 .splitter { 217 .splitter {
221 width: 5px; 218 width: 5px;
222 background-color: #ebeff9; 219 background-color: #ebeff9;
223 cursor: e-resize; 220 cursor: e-resize;
224 } 221 <if expr="is_macosx">
225
226 html[os=mac] .splitter {
227 cursor: col-resize; 222 cursor: col-resize;
223 </if>
228 } 224 }
229 225
230 .logo { 226 .logo {
231 -webkit-appearance: none; 227 -webkit-appearance: none;
232 border: 0; 228 border: 0;
233 background: url("../images/bookmarks_section_32.png") no-repeat 50% 50%; 229 background: url("../images/bookmarks_section_32.png") no-repeat 50% 50%;
234 width: 32px; 230 width: 32px;
235 height: 32px; 231 height: 32px;
236 cursor: pointer; 232 cursor: pointer;
237 margin: 10px; 233 margin: 10px;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 font: inherit; 301 font: inherit;
306 padding: 0; 302 padding: 0;
307 background: -webkit-canvas(drop-down-arrow) 100% 50% no-repeat; 303 background: -webkit-canvas(drop-down-arrow) 100% 50% no-repeat;
308 -webkit-padding-end: 11px; 304 -webkit-padding-end: 11px;
309 -webkit-margin-start: 10px; 305 -webkit-margin-start: 10px;
310 } 306 }
311 307
312 html[dir=rtl] .summary button { 308 html[dir=rtl] .summary button {
313 background-position: 0 50%; 309 background-position: 0 50%;
314 } 310 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/cloud_print/cloud_print_setup_done.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698