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

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

Issue 2101019: Print Preview component extension (Closed)
Patch Set: Put it under a flag Created 10 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
OLDNEW
(Empty)
1 /*
2 Copyright (c) 2010 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file.
5 */
6 html, body {
7 margin: 0;
8 width: 100%;
9 height: 100%;
10 cursor: default;
11 overflow: hidden;
12 }
13
14 list {
15 display: block;
16 overflow-x: hidden;
17 overflow-y: visible; /* let the container do the scrolling */
18 }
19
20 list > * {
21 text-decoration: none;
22 padding: 0 3px;
23 color: hsl(0, 0%, 70%);
24 }
25
26 list > * > * {
27 -webkit-box-sizing: border-box;
28 -webkit-padding-start: 20px;
29 background: 0 50% no-repeat;
30 overflow: hidden;
31 text-overflow: ellipsis;
32 white-space: pre; /* Don't collapse whitespace */
33 }
34
35 list > * > .label {
36 -webkit-transition: all .15s;
37 cursor: pointer;
38 color: black;
39 display: inline-block; /* We need to use inline-block here due to RTL. */
40 }
41
42 list > :hover > .label {
43 text-decoration: underline;
44 color: blue;
45 }
46
47 list > * > .url {
48 padding: 3px;
49 -webkit-padding-start: 15px;
50 display: none;
51 }
52
53 list > :hover > .url,
54 list > [selected] > .url {
55 display: inline;
56 }
57
58 html[dir=rtl] list .label {
59 background-position: 100% 50%;
60 }
61
62 list > .folder > .label {
63 background-image: url("chrome://resources/images/folder_closed.png");
64 }
65
66 /* We need to ensure that even empty labels take up space */
67 list > * > .label:empty:after,
68 list > * > .url:empty:after {
69 content: " ";
70 white-space: pre;
71 }
72
73 list > .folder > .url:empty:after {
74 content: "";
75 }
76
77 /*
78 /* Edit mode
79 */
80
81 list .label input,
82 list .url input {
83 /* Do not inherit the line-height */
84 font-family: inherit;
85 font-size: inherit;
86 font-weight: inherit;
87 margin: -2px 4px -2px -4px;
88 padding: 1px 3px 1px 1px;
89 outline: none;
90 text-decoration: none;
91 }
92
93 html[dir=rtl] list .label input,
94 html[dir=rtl] list .url input {
95 margin: -2px -4px -2px 4px;
96 padding: 1px 1px 1px 3px;
97 }
98
99 list > [editing] {
100 overflow: visible;
101 }
102
103 list [editing] .label,
104 list [editing] .url,
105 list [editing] > * {
106 overflow: visible;
107 display: inline;
108 }
109
110 list [editing] .url {
111 -webkit-padding-start: 5px;
112 }
113
114 list .url form {
115 display: inline;
116 }
117
118 .main {
119 display: -webkit-box;
120 }
121
122 .main > * {
123 height: 100%;
124 }
125
126 html[dir=rtl] #tree-container {
127 padding: 5px 10px 5px 5px;
128 }
129
130 #tree {
131 min-width: 100%;
132 overflow: visible; /* let the container do the scrolling */
133 display: inline-block;
134 }
135
136 #list {
137 -webkit-box-flex: 1;
138 -webkit-box-sizing: border-box;
139 padding: 5px;
140 }
141
142 .splitter {
143 width: 5px;
144 background-color: #ebeff9;
145 cursor: e-resize;
146 }
147
148 html[os=mac] .splitter {
149 cursor: col-resize;
150 }
151
152 .logo {
153 -webkit-appearance: none;
154 border: 0;
155 width: 32px;
156 height: 32px;
157 cursor: pointer;
158 margin: 10px;
159 float: left;
160 }
161
162 html[dir=rtl] #tree-container {
163 left: auto;
164 right: 0;
165 }
166
167 html[dir=rtl] #list {
168 left: 0;
169 right: 200px;
170 }
171
172 .header form {
173 float: left;
174 margin: 14px 2px;
175 margin-bottom: 0;
176 }
177
178 .header {
179 min-width: 400px;
180 }
181
182 html[dir=rtl] .logo,
183 html[dir=rtl] .header > div,
184 html[dir=rtl] .header form {
185 float: right;
186 }
187
188 #drop-overlay {
189 position: absolute;
190 display: none;
191 pointer-events: none;
192 border: 1px solid hsl(214, 91%, 85%);;
193 border-radius: 3px;
194 -webkit-box-sizing: border-box;
195 background-color: hsla(214, 91%, 85%, .5);
196 overflow: hidden;
197 z-index: -1;
198 }
199
200 #drop-overlay.line {
201 border: 3px solid black;
202 border-top-color: transparent;
203 border-bottom-color: transparent;
204 background-color: black;
205 background-clip: padding-box;
206 height: 8px;
207 border-radius: 0;
208 z-index: 10;
209 }
210
211 .summary {
212 background-color: #ebeff9;
213 border-top: 1px solid #9cc2ef;
214 padding: 5px 10px;
215 clear: both;
216 white-space: nowrap;
217 }
218
219 .summary > * {
220 font-size: 100%;
221 display: inline-block;
222 margin: 0;
223 }
224
225 .summary button.menu {
226 -webkit-appearance: none;
227 background: transparent;
228 border: 0;
229 font: inherit;
230 padding: 0;
231 background: -webkit-canvas(drop-down-arrow) 100% 50% no-repeat;
232 padding-right: 11px;
233 -webkit-margin-start: 10px;
234 }
235
236 html[dir=rtl] .summary button.menu {
237 background-position: 0% 50%;
238 padding-right: 0;
239 padding-left: 11px;
240 }
241
242 .hbox {
243 display: -webkit-box;
244 -webkit-box-orient:horizontal;
245 }
246
247
248 .hbox .left {
249 text-align:left;
250 -webkit-box-pack:start;
251 -webkit-inline-box-align:start;
252 }
253
254 .hbox.start, .vbox.start {
255 -webkit-box-pack:start;
256 }
257
258 .hbox.end, .vbox.end {
259 -webkit-box-pack:end;
260 }
261
262 .hbox.center, .vbox.center{
263 -webkit-box-pack: center;
264 }
265
266
267 .hbox .right {
268 text-align:right;
269 -webkit-box-pack:end;
270 -webkit-box-align:end;
271 }
272
273 .vbox {
274 display: -webkit-box;
275 -webkit-box-orient: vertical;
276 -webkit-box-align: stretch;
277 }
278
279 .flex0 {
280 -webkit-box-flex:0;
281 }
282
283 .flex1 {
284 -webkit-box-flex:1;
285 }
286
OLDNEW
« no previous file with comments | « chrome/browser/resources/shared/css/button.css ('k') | chrome/browser/resources/shared/css/radiobuttons.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698