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

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: 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 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 {
177 background-image: url("../../../../app/theme/bookmark_bar_folder_mac.png");
Dan Beam 2012/03/21 03:02:53 er, wat? seems like this line is duplicated...? al
Evan Stade 2012/03/21 21:51:12 yea i have no idea. I just copied it. I'm not tryi
Dan Beam 2012/03/21 23:14:51 I'm saying the exactly same rule is repeated twice
Evan Stade 2012/03/21 23:54:03 oh, I see what you mean. I will fix it. I thought
172 background-image: url("../../../../app/theme/bookmark_bar_folder_mac.png"); 178 background-image: url("../../../../app/theme/bookmark_bar_folder_mac.png");
173 } 179 }
174 180 </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 181
184 .main { 182 .main {
185 position: absolute; 183 position: absolute;
186 display: -webkit-box; 184 display: -webkit-box;
187 top: 79px; 185 top: 79px;
188 left: 0; 186 left: 0;
189 right: 0; 187 right: 0;
190 bottom: 0; 188 bottom: 0;
191 } 189 }
192 190
(...skipping 21 matching lines...) Expand all
214 #list { 212 #list {
215 -webkit-box-flex: 1; 213 -webkit-box-flex: 1;
216 box-sizing: border-box; 214 box-sizing: border-box;
217 padding: 5px; 215 padding: 5px;
218 } 216 }
219 217
220 .splitter { 218 .splitter {
221 width: 5px; 219 width: 5px;
222 background-color: #ebeff9; 220 background-color: #ebeff9;
223 cursor: e-resize; 221 cursor: e-resize;
224 } 222 <if expr="is_macosx">
Dan Beam 2012/03/21 03:02:53 We should establish how we override styles for jus
csilv 2012/03/21 19:35:22 <else> would be nice, but it doesn't exist yet. h
225
226 html[os=mac] .splitter {
227 cursor: col-resize; 223 cursor: col-resize;
224 </if>
228 } 225 }
229 226
230 .logo { 227 .logo {
231 -webkit-appearance: none; 228 -webkit-appearance: none;
232 border: 0; 229 border: 0;
233 background: url("../images/bookmarks_section_32.png") no-repeat 50% 50%; 230 background: url("../images/bookmarks_section_32.png") no-repeat 50% 50%;
234 width: 32px; 231 width: 32px;
235 height: 32px; 232 height: 32px;
236 cursor: pointer; 233 cursor: pointer;
237 margin: 10px; 234 margin: 10px;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 font: inherit; 302 font: inherit;
306 padding: 0; 303 padding: 0;
307 background: -webkit-canvas(drop-down-arrow) 100% 50% no-repeat; 304 background: -webkit-canvas(drop-down-arrow) 100% 50% no-repeat;
308 -webkit-padding-end: 11px; 305 -webkit-padding-end: 11px;
309 -webkit-margin-start: 10px; 306 -webkit-margin-start: 10px;
310 } 307 }
311 308
312 html[dir=rtl] .summary button { 309 html[dir=rtl] .summary button {
313 background-position: 0 50%; 310 background-position: 0 50%;
314 } 311 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698