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