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

Side by Side Diff: chrome/browser/resources/file_manager/css/common.css

Issue 10804010: HiDPI assets for Chrome OS Files app (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed ID ranges to accommodate new resources Created 8 years, 5 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 contains "borrowed" copy of standard styles. To simplify merging, 5 /* This file contains "borrowed" copy of standard styles. To simplify merging,
6 * when altering, please preserve original property value by adding comments. 6 * when altering, please preserve original property value by adding comments.
7 */ 7 */
8 input.common[type='checkbox'], 8 input.common[type='checkbox'],
9 input.common[type='radio'] { 9 input.common[type='radio'] {
10 -webkit-appearance: none; 10 -webkit-appearance: none;
11 -webkit-border-radius: 1px; 11 -webkit-border-radius: 1px;
12 -webkit-box-sizing: border-box; 12 -webkit-box-sizing: border-box;
13 border: 1px solid #c6c6c6; 13 border: 1px solid #c6c6c6;
14 border-radius: 1px; 14 border-radius: 1px;
15 box-sizing: border-box; 15 box-sizing: border-box;
16 cursor: default; 16 cursor: default;
17 height: 13px; 17 height: 13px;
18 margin: 0; 18 margin: 0;
19 width: 13px; 19 width: 13px;
20 } 20 }
21 21
22 input.common[type='checkbox'] { 22 input.common[type='checkbox'] {
23 position: relative; 23 position: relative;
24 } 24 }
25 25
26 input.common[type='checkbox']:checked::after { 26 input.common[type='checkbox']:checked::after {
27 background-image: url('../images/common/check_no_box.png'); 27 background-image: -webkit-image-set(
28 url('../images/common/check_no_box.png') 1x,
29 url('../images/common/2x/check_no_box.png') 2x);
28 background-position: -3px -4px; 30 background-position: -3px -4px;
29 background-repeat: no-repeat; 31 background-repeat: no-repeat;
30 } 32 }
31 33
32 input.common[type='checkbox'].white { 34 input.common[type='checkbox'].white {
33 border: none; 35 border: none;
34 } 36 }
35 37
36 input.common[type='checkbox'].white:not(:checked):after { 38 input.common[type='checkbox'].white:not(:checked):after {
37 background-image: url('../images/common/checkbox_white_unchecked.png'); 39 background-image: -webkit-image-set(
40 url('../images/common/checkbox_white_unchecked.png') 1x,
41 url('../images/common/2x/checkbox_white_unchecked.png') 2x);
38 background-position: -1px 0; 42 background-position: -1px 0;
39 } 43 }
40 44
41 input.common[type='checkbox'].white:checked::after { 45 input.common[type='checkbox'].white:checked::after {
42 background-image: url('../images/common/checkbox_white_checked.png'); 46 background-image: -webkit-image-set(
47 url('../images/common/checkbox_white_checked.png') 1x,
48 url('../images/common/2x/checkbox_white_checked.png') 2x);
43 background-position: -1px 0; 49 background-position: -1px 0;
44 } 50 }
45 51
46 input.common[type='checkbox']::after { 52 input.common[type='checkbox']::after {
47 content: ''; 53 content: '';
48 display: -webkit-box; 54 display: -webkit-box;
49 height: 15px; 55 height: 15px;
50 left: -2px; 56 left: -2px;
51 position: absolute; 57 position: absolute;
52 top: -2px; 58 top: -2px;
53 width: 17px; 59 width: 17px;
54 } 60 }
55 61
56 .bubble { 62 .bubble {
57 -webkit-border-radius: 2px; 63 -webkit-border-radius: 2px;
58 background: #FFF; 64 background: #FFF;
59 cursor: default; 65 cursor: default;
60 outline: 1px solid rgba(0, 0, 0, 0.2); 66 outline: 1px solid rgba(0, 0, 0, 0.2);
61 padding: 16px; 67 padding: 16px;
62 } 68 }
63 69
64 .bubble .pointer { 70 .bubble .pointer {
65 background: url('../images/common/bubble_point_white.png'); 71 background: -webkit-image-set(
72 url('../images/common/bubble_point_white.png') 1x,
73 url('../images/common/2x/bubble_point_white.png') 2x);
66 display: block; 74 display: block;
67 height: 11px; 75 height: 11px;
68 left: 24px; 76 left: 24px;
69 margin: 0 0 0 -5px; 77 margin: 0 0 0 -5px;
70 outline: none; 78 outline: none;
71 position: absolute; 79 position: absolute;
72 width: 17px; 80 width: 17px;
73 } 81 }
74 82
75 .bubble .pointer:not(.bottom) { 83 .bubble .pointer:not(.bottom) {
76 top: -11px; 84 top: -11px;
77 } 85 }
78 86
79 .bubble .pointer.bottom { 87 .bubble .pointer.bottom {
80 -webkit-transform: rotate(180deg); 88 -webkit-transform: rotate(180deg);
81 bottom: -11px; 89 bottom: -11px;
82 } 90 }
83 91
84 .bubble .close-x { 92 .bubble .close-x {
85 background: url('../images/common/close_x_gray.png'); 93 background: -webkit-image-set(
94 url('../images/common/close_x_gray.png') 1x,
95 url('../images/common/2x/close_x_gray.png') 2x);
86 height: 21px; 96 height: 21px;
87 opacity: 0.3; 97 opacity: 0.3;
88 position: absolute; 98 position: absolute;
89 right: 3px; 99 right: 3px;
90 top: 3px; 100 top: 3px;
91 width: 21px; 101 width: 21px;
92 } 102 }
93 103
94 .bubble .close-x:hover { 104 .bubble .close-x:hover {
95 opacity: 0.7; 105 opacity: 0.7;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 .buttonbar button.menubutton span.disclosureindicator { 190 .buttonbar button.menubutton span.disclosureindicator {
181 -webkit-transform: rotate(90deg); 191 -webkit-transform: rotate(90deg);
182 -webkit-transition: none; 192 -webkit-transition: none;
183 float: right; 193 float: right;
184 margin-left: 7px; 194 margin-left: 7px;
185 margin-top: 10px; 195 margin-top: 10px;
186 opacity: .8; 196 opacity: .8;
187 } 197 }
188 198
189 span.disclosureindicator { 199 span.disclosureindicator {
190 background: url('../images/disclosure_arrow_dk_grey.png') center no-repeat; 200 background-image: -webkit-image-set(
201 url('../images/common/disclosure_arrow_dk_grey.png') 1x,
202 url('../images/common/2x/disclosure_arrow_dk_grey.png') 2x);
203 background-position: center;
204 background-repeat: no-repeat;
191 display: inline-block; 205 display: inline-block;
192 height: 7px; 206 height: 7px;
193 width: 5px; 207 width: 5px;
194 } 208 }
195 209
196 /* "chrome-menu" class overrides some standard menu.css styles, to make custom 210 /* "chrome-menu" class overrides some standard menu.css styles, to make custom
197 menus in FileBrowser look like native ChromeOS menus. */ 211 menus in FileBrowser look like native ChromeOS menus. */
198 212
199 menu.chrome-menu { 213 menu.chrome-menu {
200 border: 1px solid rgba(0, 0, 0, 0.2); 214 border: 1px solid rgba(0, 0, 0, 0.2);
(...skipping 23 matching lines...) Expand all
224 color: rgb(34, 34, 34); 238 color: rgb(34, 34, 34);
225 } 239 }
226 240
227 menu.chrome-menu > hr { 241 menu.chrome-menu > hr {
228 background: rgb(218, 218, 218); 242 background: rgb(218, 218, 218);
229 height: 1px; 243 height: 1px;
230 margin: 2px 0; 244 margin: 2px 0;
231 } 245 }
232 246
233 menu.chrome-menu > :not(hr)[checked] { 247 menu.chrome-menu > :not(hr)[checked] {
234 background-image: url('../images/common/check_no_box.png'); 248 background-image: -webkit-image-set(
249 url('../images/common/check_no_box.png') 1x,
250 url('../images/common/2x/check_no_box.png') 2x);
235 background-position: 2px center; 251 background-position: 2px center;
236 } 252 }
237 253
238 menu.chrome-menu > [checked]:before { 254 menu.chrome-menu > [checked]:before {
239 display: none; 255 display: none;
240 } 256 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698