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

Side by Side Diff: samples/third_party/todomvc/web/base.css

Issue 77373002: "Reverting 30388" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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
(Empty)
1 html,
2 body {
3 margin: 0;
4 padding: 0;
5 }
6
7 button {
8 margin: 0;
9 padding: 0;
10 border: 0;
11 background: none;
12 font-size: 100%;
13 vertical-align: baseline;
14 font-family: inherit;
15 color: inherit;
16 -webkit-appearance: none;
17 -moz-appearance: none;
18 -ms-appearance: none;
19 -o-appearance: none;
20 /*appearance: none; */
21 }
22
23 body {
24 font: 14px 'Helvetica Neue', Helvetica, Arial, sans-serif;
25 line-height: 1.4em;
26 background: #eaeaea url('bg.png');
27 color: #4d4d4d;
28 width: 550px;
29 margin: 0 auto;
30 -webkit-font-smoothing: antialiased;
31 -moz-font-smoothing: antialiased;
32 -ms-font-smoothing: antialiased;
33 -o-font-smoothing: antialiased;
34 /* font-smoothing: antialiased; */
35 }
36
37 /*
38 TODO(jmesserly): we should try to restore the original CSS file.
39 Ours has diverged and some features aren't working anymore, mainly due to the
40 extra nodes we introduce for items.
41 */
42
43 #todoapp {
44 background: #fff;
45 background: rgba(255, 255, 255, 0.9);
46 margin: 130px 0 40px 0;
47 border: 1px solid #ccc;
48 position: relative;
49 border-top-left-radius: 2px;
50 border-top-right-radius: 2px;
51 box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2),
52 0 25px 50px 0 rgba(0, 0, 0, 0.15);
53 }
54
55 #todoapp:before {
56 content: '';
57 border-left: 1px solid #f5d6d6;
58 border-right: 1px solid #f5d6d6;
59 width: 2px;
60 position: absolute;
61 top: 0;
62 left: 40px;
63 height: 100%;
64 }
65
66 input::-webkit-input-placeholder {
67 font-style: italic;
68 }
69
70 input:-moz-placeholder {
71 font-style: italic;
72 color: #a9a9a9;
73 }
74
75 .title {
76 position: absolute;
77 top: -120px;
78 width: 100%;
79 font-size: 70px;
80 font-weight: bold;
81 text-align: center;
82 color: #b3b3b3;
83 color: rgba(255, 255, 255, 0.3);
84 text-shadow: -1px -1px rgba(0, 0, 0, 0.2);
85 /*-webkit-text-rendering: optimizeLegibility;*/
86 -moz-text-rendering: optimizeLegibility;
87 -ms-text-rendering: optimizeLegibility;
88 -o-text-rendering: optimizeLegibility;
89 text-rendering: optimizeLegibility;
90 }
91
92 #header {
93 padding-top: 15px;
94 border-radius: inherit;
95 }
96
97 #header:before {
98 content: '';
99 position: absolute;
100 top: 0;
101 right: 0;
102 left: 0;
103 height: 15px;
104 z-index: 2;
105 border-bottom: 1px solid #6c615c;
106 background: #8d7d77;
107 background: -webkit-gradient(linear, left top, left bottom, from(rgba(132, 110 , 100, 0.8)),to(rgba(101, 84, 76, 0.8)));
108 background: -webkit-linear-gradient(top, rgba(132, 110, 100, 0.8), rgba(101, 8 4, 76, 0.8));
109 background: -moz-linear-gradient(top, rgba(132, 110, 100, 0.8), rgba(101, 84, 76, 0.8));
110 background: -o-linear-gradient(top, rgba(132, 110, 100, 0.8), rgba(101, 84, 76 , 0.8));
111 background: -ms-linear-gradient(top, rgba(132, 110, 100, 0.8), rgba(101, 84, 7 6, 0.8));
112 background: linear-gradient(top, rgba(132, 110, 100, 0.8), rgba(101, 84, 76, 0 .8));
113 filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorSt r='#9d8b83', EndColorStr='#847670');
114 border-top-left-radius: 1px;
115 border-top-right-radius: 1px;
116 }
117
118 #new-todo,
119 .edit {
120 position: relative;
121 margin: 0;
122 width: 100%;
123 font-size: 24px;
124 font-family: inherit;
125 line-height: 1.4em;
126 border: 0;
127 outline: none;
128 color: inherit;
129 padding: 6px;
130 border: 1px solid #999;
131 box-shadow: inset 0 -1px 5px 0 rgba(0, 0, 0, 0.2);
132 -webkit-box-sizing: border-box;
133 -moz-box-sizing: border-box;
134 -ms-box-sizing: border-box;
135 -o-box-sizing: border-box;
136 box-sizing: border-box;
137 -webkit-font-smoothing: antialiased;
138 -moz-font-smoothing: antialiased;
139 -ms-font-smoothing: antialiased;
140 -o-font-smoothing: antialiased;
141 /*font-smoothing: antialiased;*/
142 }
143
144 #new-todo {
145 padding: 16px 16px 16px 60px;
146 border: none;
147 background: rgba(0, 0, 0, 0.02);
148 z-index: 2;
149 box-shadow: none;
150 }
151
152 #main {
153 position: relative;
154 z-index: 2;
155 border-top: 1px dotted #adadad;
156 }
157
158 label[for='toggle-all'] {
159 display: none;
160 }
161
162 #toggle-all {
163 position: absolute;
164 top: -42px;
165 left: -4px;
166 width: 40px;
167 text-align: center;
168 border: none; /* Mobile Safari */
169 }
170
171 #toggle-all:before {
172 content: 'ยป';
173 font-size: 28px;
174 color: #d9d9d9;
175 padding: 0 25px 7px;
176 }
177
178 #toggle-all:checked:before {
179 color: #737373;
180 }
181
182 #todo-list {
183 margin: 0;
184 padding: 0;
185 list-style: none;
186 }
187
188 /*
189 TODO(jmesserly): fix this. It's broken in our sample.
190
191 #todo-list todo-row:last-child .todo-item {
192 border-bottom: none;
193 }
194 */
195
196 /*
197 TODO(jmesserly): it seems to be impossible to have selectors that span a
198 ShadowRoot transition, even with allow-author-styles set. Various workarounds
199 are included in the code below.
200 */
201 .edit.editing {
202 display: block;
203 width: 506px;
204 padding: 13px 17px 12px 17px;
205 margin: 0 0 0 43px;
206 }
207
208 .edit-label {
209 word-break: break-word;
210 margin: 15px 15px 15px 60px;
211 display: inline-block;
212 line-height: 1.2;
213 -webkit-transition: color 0.4s;
214 -moz-transition: color 0.4s;
215 -ms-transition: color 0.4s;
216 -o-transition: color 0.4s;
217 transition: color 0.4s;
218 }
219
220 .edit-label {
221 text-decoration: inherit;
222 }
223
224 #footer {
225 color: #777;
226 padding: 0 15px;
227 position: absolute;
228 right: 0;
229 bottom: -31px;
230 left: 0;
231 z-index: 1;
232 text-align: center;
233 }
234
235 #footer:before {
236 content: '';
237 position: absolute;
238 right: 0;
239 bottom: 31px;
240 left: 0;
241 height: 100px;
242 z-index: -1;
243 box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3),
244 0 6px 0 -3px rgba(255, 255, 255, 0.8),
245 0 7px 1px -3px rgba(0, 0, 0, 0.3),
246 0 42px 0 -6px rgba(255, 255, 255, 0.8),
247 0 43px 2px -6px rgba(0, 0, 0, 0.2);
248 }
249
250 #todo-count {
251 float: left;
252 text-align: left;
253 }
254
255 #filters {
256 margin: 0;
257 padding: 0;
258 list-style: none;
259 position: absolute;
260 right: 0;
261 left: 0;
262 }
263
264 #filters li {
265 display: inline;
266 }
267
268 #filters li a {
269 color: #83756f;
270 margin: 2px;
271 text-decoration: none;
272 }
273
274 #filters li a.selected {
275 font-weight: bold;
276 }
277
278 #clear-completed {
279 float: right;
280 line-height: 20px;
281 text-decoration: none;
282 background: rgba(0, 0, 0, 0.1);
283 font-size: 11px;
284 padding: 0 10px;
285 position: relative;
286 border-radius: 3px;
287 box-shadow: 0 -1px 0 0 rgba(0, 0, 0, 0.2);
288 }
289
290 #clear-completed:hover {
291 background: rgba(0, 0, 0, 0.15);
292 box-shadow: 0 -1px 0 0 rgba(0, 0, 0, 0.3);
293 }
294
295 #info {
296 margin: 65px auto 0;
297 color: #a6a6a6;
298 font-size: 12px;
299 text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
300 text-align: center;
301 }
302
303 #info a {
304 color: inherit;
305 }
306
307 /*
308 Hack to remove background from Mobile Safari.
309 Can't use it globally since it destroys checkboxes in Firefox and Opera
310 */
311 @media screen and (-webkit-min-device-pixel-ratio:0) {
312 #toggle-all {
313 background: none;
314 }
315
316 #toggle-all {
317 top: -56px;
318 left: -15px;
319 width: 65px;
320 height: 41px;
321 -webkit-transform: rotate(90deg);
322 transform: rotate(90deg);
323 -webkit-appearance: none;
324 -moz-appearance: none;
325 -ms-appearance: none;
326 -o-appearance: none;
327 /*appearance: none; */
328 }
329 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698