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

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

Issue 76013002: "Reverting 30387" -- failures on IE (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
« no previous file with comments | « samples/third_party/todomvc/web/app/bg.png ('k') | samples/third_party/todomvc/web/bg.png » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* base.css overrides */ 1 html,
2 2 body {
3 @host { 3 margin: 0;
4 * { 4 padding: 0;
5 display: block;
6 position: relative;
7 }
8 } 5 }
9 6
10 button { 7 button {
11 margin: 0; 8 margin: 0;
12 padding: 0; 9 padding: 0;
13 border: 0; 10 border: 0;
14 background: none; 11 background: none;
15 font-size: 100%; 12 font-size: 100%;
16 vertical-align: baseline; 13 vertical-align: baseline;
17 font-family: inherit; 14 font-family: inherit;
18 color: inherit; 15 color: inherit;
19 -webkit-appearance: none; 16 -webkit-appearance: none;
20 /*-moz-appearance: none;*/ 17 -moz-appearance: none;
21 -ms-appearance: none; 18 -ms-appearance: none;
22 -o-appearance: none; 19 -o-appearance: none;
23 appearance: none; 20 /*appearance: none; */
24 } 21 }
25 22
26 input::-webkit-input-placeholder { 23 body {
27 font-style: italic; 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; */
28 } 35 }
29 36
30 input::-moz-placeholder { 37 /*
31 font-style: italic; 38 TODO(jmesserly): we should try to restore the original CSS file.
32 color: #a9a9a9; 39 Ours has diverged and some features aren't working anymore, mainly due to the
33 } 40 extra nodes we introduce for items.
34 41 */
35 input:-ms-input-placeholder, #new-todo:-ms-input-placeholder {
36 font-style: italic;
37 color: #a9a9a9;
38 }
39 42
40 #todoapp { 43 #todoapp {
41 background: #fff; 44 background: #fff;
42 background: rgba(255, 255, 255, 0.9); 45 background: rgba(255, 255, 255, 0.9);
43 /*margin: 130px 0 40px 0;*/ 46 margin: 130px 0 40px 0;
44 margin: 0 0 40px 0;
45 border: 1px solid #ccc; 47 border: 1px solid #ccc;
46 position: relative; 48 position: relative;
47 border-top-left-radius: 2px; 49 border-top-left-radius: 2px;
48 border-top-right-radius: 2px; 50 border-top-right-radius: 2px;
49 box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2), 51 box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2),
50 0 25px 50px 0 rgba(0, 0, 0, 0.15); 52 0 25px 50px 0 rgba(0, 0, 0, 0.15);
51 } 53 }
52 54
53 #todoapp:before { 55 #todoapp:before {
54 content: ''; 56 content: '';
55 border-left: 1px solid #f5d6d6; 57 border-left: 1px solid #f5d6d6;
56 border-right: 1px solid #f5d6d6; 58 border-right: 1px solid #f5d6d6;
57 width: 2px; 59 width: 2px;
58 position: absolute; 60 position: absolute;
59 top: 0; 61 top: 0;
60 left: 40px; 62 left: 40px;
61 height: 100%; 63 height: 100%;
62 } 64 }
63 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
64 #header { 92 #header {
65 padding-top: 15px; 93 padding-top: 15px;
66 border-radius: inherit; 94 border-radius: inherit;
67 } 95 }
68 96
69 #header:before { 97 #header:before {
70 content: ''; 98 content: '';
71 position: absolute; 99 position: absolute;
72 top: 0; 100 top: 0;
73 right: 0; 101 right: 0;
(...skipping 29 matching lines...) Expand all
103 box-shadow: inset 0 -1px 5px 0 rgba(0, 0, 0, 0.2); 131 box-shadow: inset 0 -1px 5px 0 rgba(0, 0, 0, 0.2);
104 -webkit-box-sizing: border-box; 132 -webkit-box-sizing: border-box;
105 -moz-box-sizing: border-box; 133 -moz-box-sizing: border-box;
106 -ms-box-sizing: border-box; 134 -ms-box-sizing: border-box;
107 -o-box-sizing: border-box; 135 -o-box-sizing: border-box;
108 box-sizing: border-box; 136 box-sizing: border-box;
109 -webkit-font-smoothing: antialiased; 137 -webkit-font-smoothing: antialiased;
110 -moz-font-smoothing: antialiased; 138 -moz-font-smoothing: antialiased;
111 -ms-font-smoothing: antialiased; 139 -ms-font-smoothing: antialiased;
112 -o-font-smoothing: antialiased; 140 -o-font-smoothing: antialiased;
113 /* font-smoothing: antialiased; */ 141 /*font-smoothing: antialiased;*/
114 } 142 }
115 143
116 #new-todo { 144 #new-todo {
117 padding: 16px 16px 16px 60px; 145 padding: 16px 16px 16px 60px;
118 border: none; 146 border: none;
119 background: rgba(0, 0, 0, 0.02); 147 background: rgba(0, 0, 0, 0.02);
120 z-index: 2; 148 z-index: 2;
121 box-shadow: none; 149 box-shadow: none;
122 } 150 }
123 151
(...skipping 26 matching lines...) Expand all
150 #toggle-all:checked:before { 178 #toggle-all:checked:before {
151 color: #737373; 179 color: #737373;
152 } 180 }
153 181
154 #todo-list { 182 #todo-list {
155 margin: 0; 183 margin: 0;
156 padding: 0; 184 padding: 0;
157 list-style: none; 185 list-style: none;
158 } 186 }
159 187
160 #todo-list li { 188 /*
161 position: relative; 189 TODO(jmesserly): fix this. It's broken in our sample.
162 font-size: 24px; 190
163 border-bottom: 1px dotted #ccc; 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;
164 } 206 }
165 207
166 #todo-list li:last-child { 208 .edit-label {
167 border-bottom: none; 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;
168 } 218 }
169 219
170 #todo-list li.editing { 220 .edit-label {
171 border-bottom: none; 221 text-decoration: inherit;
172 padding: 0;
173 } 222 }
174 223
175 #footer { 224 #footer {
176 color: #777; 225 color: #777;
177 padding: 0 15px; 226 padding: 0 15px;
178 position: absolute; 227 position: absolute;
179 right: 0; 228 right: 0;
180 bottom: -31px; 229 bottom: -31px;
181 left: 0; 230 left: 0;
182 height: 20px;
183 z-index: 1; 231 z-index: 1;
184 text-align: center; 232 text-align: center;
185 } 233 }
186 234
187 #footer:before { 235 #footer:before {
188 content: ''; 236 content: '';
189 position: absolute; 237 position: absolute;
190 right: 0; 238 right: 0;
191 bottom: 31px; 239 bottom: 31px;
192 left: 0; 240 left: 0;
193 height: 50px; 241 height: 100px;
194 z-index: -1; 242 z-index: -1;
195 box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 243 box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3),
196 0 6px 0 -3px rgba(255, 255, 255, 0.8), 244 0 6px 0 -3px rgba(255, 255, 255, 0.8),
197 0 7px 1px -3px rgba(0, 0, 0, 0.3), 245 0 7px 1px -3px rgba(0, 0, 0, 0.3),
198 0 43px 0 -6px rgba(255, 255, 255, 0.8), 246 0 42px 0 -6px rgba(255, 255, 255, 0.8),
199 0 44px 2px -6px rgba(0, 0, 0, 0.2); 247 0 43px 2px -6px rgba(0, 0, 0, 0.2);
200 } 248 }
201 249
202 #todo-count { 250 #todo-count {
203 float: left; 251 float: left;
204 text-align: left; 252 text-align: left;
205 } 253 }
206 254
207 #filters { 255 #filters {
208 margin: 0; 256 margin: 0;
209 padding: 0; 257 padding: 0;
210 list-style: none; 258 list-style: none;
211 position: absolute; 259 position: absolute;
212 right: 0; 260 right: 0;
213 left: 0; 261 left: 0;
214 } 262 }
215 263
216 #filters li { 264 #filters li {
217 display: inline; 265 display: inline;
218 } 266 }
219 267
220 #filters li a { 268 #filters li a {
221 color: #83756f; 269 color: #83756f;
222 margin: 2px; 270 margin: 2px;
223 text-decoration: none; 271 text-decoration: none;
224 } 272 }
225 273
226 #filters li.polymer-selected a { 274 #filters li a.selected {
227 font-weight: bold; 275 font-weight: bold;
228 } 276 }
229 277
230 #clear-completed { 278 #clear-completed {
231 float: right; 279 float: right;
232 position: relative;
233 line-height: 20px; 280 line-height: 20px;
234 text-decoration: none; 281 text-decoration: none;
235 background: rgba(0, 0, 0, 0.1); 282 background: rgba(0, 0, 0, 0.1);
236 font-size: 11px; 283 font-size: 11px;
237 padding: 0 10px; 284 padding: 0 10px;
285 position: relative;
238 border-radius: 3px; 286 border-radius: 3px;
239 box-shadow: 0 -1px 0 0 rgba(0, 0, 0, 0.2); 287 box-shadow: 0 -1px 0 0 rgba(0, 0, 0, 0.2);
240 } 288 }
241 289
242 #clear-completed:hover { 290 #clear-completed:hover {
243 background: rgba(0, 0, 0, 0.15); 291 background: rgba(0, 0, 0, 0.15);
244 box-shadow: 0 -1px 0 0 rgba(0, 0, 0, 0.3); 292 box-shadow: 0 -1px 0 0 rgba(0, 0, 0, 0.3);
245 } 293 }
246 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 */
247 @media screen and (-webkit-min-device-pixel-ratio:0) { 311 @media screen and (-webkit-min-device-pixel-ratio:0) {
248 #toggle-all { 312 #toggle-all {
249 background: none; 313 background: none;
250 /*
251 ShadowDOM Polyfill work around for webkit/blink bug
252 https://code.google.com/p/chromium/issues/detail?id=251510
253 */
254 background-color: transparent;
255 } 314 }
256 315
257 #toggle-all { 316 #toggle-all {
258 top: -56px; 317 top: -56px;
259 left: -15px; 318 left: -15px;
260 width: 65px; 319 width: 65px;
261 height: 41px; 320 height: 41px;
262 -webkit-transform: rotate(90deg); 321 -webkit-transform: rotate(90deg);
263 transform: rotate(90deg); 322 transform: rotate(90deg);
264 -webkit-appearance: none; 323 -webkit-appearance: none;
265 appearance: none; 324 -moz-appearance: none;
325 -ms-appearance: none;
326 -o-appearance: none;
327 /*appearance: none; */
266 } 328 }
267 } 329 }
OLDNEW
« no previous file with comments | « samples/third_party/todomvc/web/app/bg.png ('k') | samples/third_party/todomvc/web/bg.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698