| 1 |
.logo { |
| 2 |
width: 300px; |
| 3 |
} |
| 4 |
hr { |
| 5 |
margin: 20px 0; |
| 6 |
border: 0; |
| 7 |
border-top: 1px dashed #c5c5c5; |
| 8 |
border-bottom: 1px dashed #f7f7f7; |
| 9 |
} |
| 10 |
|
| 11 |
.learn a { |
| 12 |
font-weight: normal; |
| 13 |
text-decoration: none; |
| 14 |
color: #b83f45; |
| 15 |
} |
| 16 |
|
| 17 |
.learn a:hover { |
| 18 |
text-decoration: underline; |
| 19 |
color: #787e7e; |
| 20 |
} |
| 21 |
|
| 22 |
.learn h3, |
| 23 |
.learn h4, |
| 24 |
.learn h5 { |
| 25 |
margin: 10px 0; |
| 26 |
font-weight: 500; |
| 27 |
line-height: 1.2; |
| 28 |
color: #000; |
| 29 |
} |
| 30 |
|
| 31 |
.learn h3 { |
| 32 |
font-size: 24px; |
| 33 |
} |
| 34 |
|
| 35 |
.learn h4 { |
| 36 |
font-size: 18px; |
| 37 |
} |
| 38 |
|
| 39 |
.learn h5 { |
| 40 |
margin-bottom: 0; |
| 41 |
font-size: 14px; |
| 42 |
} |
| 43 |
|
| 44 |
.learn ul { |
| 45 |
padding: 0; |
| 46 |
margin: 0 0 30px 25px; |
| 47 |
} |
| 48 |
|
| 49 |
.learn li { |
| 50 |
line-height: 20px; |
| 51 |
} |
| 52 |
|
| 53 |
.learn p { |
| 54 |
font-size: 15px; |
| 55 |
font-weight: 300; |
| 56 |
line-height: 1.3; |
| 57 |
margin-top: 0; |
| 58 |
margin-bottom: 0; |
| 59 |
} |
| 60 |
|
| 61 |
#issue-count { |
| 62 |
display: none; |
| 63 |
} |
| 64 |
|
| 65 |
.quote { |
| 66 |
border: none; |
| 67 |
margin: 20px 0 60px 0; |
| 68 |
} |
| 69 |
|
| 70 |
.quote p { |
| 71 |
font-style: italic; |
| 72 |
} |
| 73 |
|
| 74 |
.quote p:before { |
| 75 |
content: '“'; |
| 76 |
font-size: 50px; |
| 77 |
opacity: .15; |
| 78 |
position: absolute; |
| 79 |
top: -20px; |
| 80 |
left: 3px; |
| 81 |
} |
| 82 |
|
| 83 |
.quote p:after { |
| 84 |
content: '”'; |
| 85 |
font-size: 50px; |
| 86 |
opacity: .15; |
| 87 |
position: absolute; |
| 88 |
bottom: -42px; |
| 89 |
right: 3px; |
| 90 |
} |
| 91 |
|
| 92 |
.quote footer { |
| 93 |
position: absolute; |
| 94 |
bottom: -40px; |
| 95 |
right: 0; |
| 96 |
} |
| 97 |
|
| 98 |
.quote footer img { |
| 99 |
border-radius: 3px; |
| 100 |
} |
| 101 |
|
| 102 |
.quote footer a { |
| 103 |
margin-left: 5px; |
| 104 |
vertical-align: middle; |
| 105 |
} |
| 106 |
|
| 107 |
.speech-bubble { |
| 108 |
position: relative; |
| 109 |
padding: 10px; |
| 110 |
background: rgba(0, 0, 0, .04); |
| 111 |
border-radius: 5px; |
| 112 |
} |
| 113 |
|
| 114 |
.speech-bubble:after { |
| 115 |
content: ''; |
| 116 |
position: absolute; |
| 117 |
top: 100%; |
| 118 |
right: 30px; |
| 119 |
border: 13px solid transparent; |
| 120 |
border-top-color: rgba(0, 0, 0, .04); |
| 121 |
} |
| 122 |
|
| 123 |
.learn-bar > .learn { |
| 124 |
position: absolute; |
| 125 |
width: 272px; |
| 126 |
top: 8px; |
| 127 |
left: -300px; |
| 128 |
padding: 10px; |
| 129 |
border-radius: 5px; |
| 130 |
background-color: rgba(255, 255, 255, .6); |
| 131 |
transition-property: left; |
| 132 |
transition-duration: 500ms; |
| 133 |
} |
| 134 |
|
| 135 |
@media (min-width: 899px) { |
| 136 |
.learn-bar { |
| 137 |
width: auto; |
| 138 |
padding-left: 300px; |
| 139 |
} |
| 140 |
|
| 141 |
.learn-bar > .learn { |
| 142 |
left: 8px; |
| 143 |
} |
| 144 |
} |
| 145 |
|
| 146 |
|
| 147 |
html, |
| 148 |
body { |
| 149 |
margin: 0; |
| 150 |
padding: 0; |
| 151 |
} |
| 152 |
|
| 153 |
.button { |
| 154 |
margin: 0; |
| 155 |
padding: 0; |
| 156 |
border: 0; |
| 157 |
background: none; |
| 158 |
font-size: 100%; |
| 159 |
vertical-align: baseline; |
| 160 |
font-family: inherit; |
| 161 |
font-weight: inherit; |
| 162 |
color: inherit; |
| 163 |
-webkit-appearance: none; |
| 164 |
appearance: none; |
| 165 |
-webkit-font-smoothing: antialiased; |
| 166 |
-moz-osx-font-smoothing: grayscale; |
| 167 |
} |
| 168 |
|
| 169 |
body { |
| 170 |
font: 14px 'Helvetica Neue', Helvetica, Arial, sans-serif; |
| 171 |
line-height: 1.4em; |
| 172 |
background: #f5f5f5; |
| 173 |
color: #4d4d4d; |
| 174 |
min-width: 230px; |
| 175 |
max-width: 550px; |
| 176 |
margin: 0 auto; |
| 177 |
-webkit-font-smoothing: antialiased; |
| 178 |
-moz-osx-font-smoothing: grayscale; |
| 179 |
font-weight: 300; |
| 180 |
} |
| 181 |
|
| 182 |
:focus { |
| 183 |
outline: 0; |
| 184 |
} |
| 185 |
|
| 186 |
.hidden { |
| 187 |
display: none; |
| 188 |
} |
| 189 |
|
| 190 |
.todoapp { |
| 191 |
background: #fff; |
| 192 |
margin: 130px 0 40px 0; |
| 193 |
position: relative; |
| 194 |
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), |
| 195 |
0 25px 50px 0 rgba(0, 0, 0, 0.1); |
| 196 |
} |
| 197 |
|
| 198 |
.todoapp input::-webkit-input-placeholder { |
| 199 |
font-style: italic; |
| 200 |
font-weight: 300; |
| 201 |
color: #e6e6e6; |
| 202 |
} |
| 203 |
|
| 204 |
.todoapp input::-moz-placeholder { |
| 205 |
font-style: italic; |
| 206 |
font-weight: 300; |
| 207 |
color: #e6e6e6; |
| 208 |
} |
| 209 |
|
| 210 |
.todoapp input::input-placeholder { |
| 211 |
font-style: italic; |
| 212 |
font-weight: 300; |
| 213 |
color: #e6e6e6; |
| 214 |
} |
| 215 |
|
| 216 |
.todoapp h1 { |
| 217 |
position: absolute; |
| 218 |
top: -155px; |
| 219 |
width: 100%; |
| 220 |
font-size: 100px; |
| 221 |
font-weight: 100; |
| 222 |
text-align: center; |
| 223 |
color: rgba(175, 47, 47, 0.15); |
| 224 |
-webkit-text-rendering: optimizeLegibility; |
| 225 |
-moz-text-rendering: optimizeLegibility; |
| 226 |
text-rendering: optimizeLegibility; |
| 227 |
} |
| 228 |
|
| 229 |
.new-todo, |
| 230 |
.edit { |
| 231 |
position: relative; |
| 232 |
margin: 0; |
| 233 |
width: 100%; |
| 234 |
font-size: 24px; |
| 235 |
font-family: inherit; |
| 236 |
font-weight: inherit; |
| 237 |
line-height: 1.4em; |
| 238 |
border: 0; |
| 239 |
color: inherit; |
| 240 |
padding: 6px; |
| 241 |
border: 1px solid #999; |
| 242 |
box-shadow: inset 0 -1px 5px 0 rgba(0, 0, 0, 0.2); |
| 243 |
box-sizing: border-box; |
| 244 |
-webkit-font-smoothing: antialiased; |
| 245 |
-moz-osx-font-smoothing: grayscale; |
| 246 |
} |
| 247 |
|
| 248 |
.new-todo { |
| 249 |
padding: 16px 16px 16px 60px; |
| 250 |
border: none; |
| 251 |
background: rgba(0, 0, 0, 0.003); |
| 252 |
box-shadow: inset 0 -2px 1px rgba(0,0,0,0.03); |
| 253 |
} |
| 254 |
|
| 255 |
.main { |
| 256 |
position: relative; |
| 257 |
z-index: 2; |
| 258 |
border-top: 1px solid #e6e6e6; |
| 259 |
} |
| 260 |
|
| 261 |
.toggle-all { |
| 262 |
text-align: center; |
| 263 |
border: none; /* Mobile Safari */ |
| 264 |
opacity: 0; |
| 265 |
position: absolute; |
| 266 |
} |
| 267 |
|
| 268 |
.toggle-all + label { |
| 269 |
width: 60px; |
| 270 |
height: 34px; |
| 271 |
font-size: 0; |
| 272 |
position: absolute; |
| 273 |
top: -52px; |
| 274 |
left: -13px; |
| 275 |
-webkit-transform: rotate(90deg); |
| 276 |
transform: rotate(90deg); |
| 277 |
} |
| 278 |
|
| 279 |
.toggle-all + label:before { |
| 280 |
content: '❯'; |
| 281 |
font-size: 22px; |
| 282 |
color: #e6e6e6; |
| 283 |
padding: 10px 27px 10px 27px; |
| 284 |
} |
| 285 |
|
| 286 |
.toggle-all:checked + label:before { |
| 287 |
color: #737373; |
| 288 |
} |
| 289 |
|
| 290 |
.todo-list { |
| 291 |
margin: 0; |
| 292 |
padding: 0; |
| 293 |
list-style: none; |
| 294 |
} |
| 295 |
|
| 296 |
.todo-list li { |
| 297 |
position: relative; |
| 298 |
font-size: 24px; |
| 299 |
border-bottom: 1px solid #ededed; |
| 300 |
} |
| 301 |
|
| 302 |
.todo-list li:last-child { |
| 303 |
border-bottom: none; |
| 304 |
} |
| 305 |
|
| 306 |
.todo-list li.editing { |
| 307 |
border-bottom: none; |
| 308 |
padding: 0; |
| 309 |
} |
| 310 |
|
| 311 |
.todo-list li.editing .edit { |
| 312 |
display: block; |
| 313 |
width: 506px; |
| 314 |
padding: 12px 16px; |
| 315 |
margin: 0 0 0 43px; |
| 316 |
} |
| 317 |
|
| 318 |
.todo-list li.editing .view { |
| 319 |
display: none; |
| 320 |
} |
| 321 |
|
| 322 |
.todo-list li .toggle { |
| 323 |
text-align: center; |
| 324 |
width: 40px; |
| 325 |
/* auto, since non-WebKit browsers doesn't support input styling */ |
| 326 |
height: auto; |
| 327 |
position: absolute; |
| 328 |
top: 0; |
| 329 |
bottom: 0; |
| 330 |
margin: auto 0; |
| 331 |
border: none; /* Mobile Safari */ |
| 332 |
-webkit-appearance: none; |
| 333 |
appearance: none; |
| 334 |
} |
| 335 |
|
| 336 |
.todo-list li .toggle { |
| 337 |
opacity: 0; |
| 338 |
} |
| 339 |
|
| 340 |
.todo-list li .toggle + label { |
| 341 |
/* |
| 342 |
Firefox requires `#` to be escaped - https://bugzilla.mozilla.org/show_bug.cgi?id=922433 |
| 343 |
IE and Edge requires *everything* to be escaped to render, so we do that instead of just the `#` - https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/7157459/ |
| 344 |
*/ |
| 345 |
background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2240%22%20height%3D%2240%22%20viewBox%3D%22-10%20-18%20100%20135%22%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2250%22%20fill%3D%22none%22%20stroke%3D%22%23ededed%22%20stroke-width%3D%223%22/%3E%3C/svg%3E'); |
| 346 |
background-repeat: no-repeat; |
| 347 |
background-position: center left; |
| 348 |
} |
| 349 |
|
| 350 |
.todo-list li .toggle:checked + label { |
| 351 |
background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2240%22%20height%3D%2240%22%20viewBox%3D%22-10%20-18%20100%20135%22%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2250%22%20fill%3D%22none%22%20stroke%3D%22%23bddad5%22%20stroke-width%3D%223%22/%3E%3Cpath%20fill%3D%22%235dc2af%22%20d%3D%22M72%2025L42%2071%2027%2056l-4%204%2020%2020%2034-52z%22/%3E%3C/svg%3E'); |
| 352 |
} |
| 353 |
|
| 354 |
.todo-list li label { |
| 355 |
word-break: break-all; |
| 356 |
padding: 15px 15px 15px 60px; |
| 357 |
display: block; |
| 358 |
line-height: 1.2; |
| 359 |
transition: color 0.4s; |
| 360 |
} |
| 361 |
|
| 362 |
.todo-list li.completed label { |
| 363 |
color: #d9d9d9; |
| 364 |
text-decoration: line-through; |
| 365 |
} |
| 366 |
|
| 367 |
.todo-list li .destroy { |
| 368 |
display: none; |
| 369 |
position: absolute; |
| 370 |
top: 0; |
| 371 |
right: 10px; |
| 372 |
bottom: 0; |
| 373 |
width: 40px; |
| 374 |
height: 40px; |
| 375 |
margin: auto 0; |
| 376 |
font-size: 30px; |
| 377 |
color: #cc9a9a; |
| 378 |
margin-bottom: 11px; |
| 379 |
transition: color 0.2s ease-out; |
| 380 |
} |
| 381 |
|
| 382 |
.todo-list li .destroy:hover { |
| 383 |
color: #af5b5e; |
| 384 |
} |
| 385 |
|
| 386 |
.todo-list li .destroy:after { |
| 387 |
content: '×'; |
| 388 |
} |
| 389 |
|
| 390 |
.todo-list li:hover .destroy { |
| 391 |
display: block; |
| 392 |
} |
| 393 |
|
| 394 |
.todo-list li .edit { |
| 395 |
display: none; |
| 396 |
} |
| 397 |
|
| 398 |
.todo-list li.editing:last-child { |
| 399 |
margin-bottom: -1px; |
| 400 |
} |
| 401 |
|
| 402 |
.footer { |
| 403 |
color: #777; |
| 404 |
padding: 10px 15px; |
| 405 |
height: 20px; |
| 406 |
text-align: center; |
| 407 |
border-top: 1px solid #e6e6e6; |
| 408 |
} |
| 409 |
|
| 410 |
.footer:before { |
| 411 |
content: ''; |
| 412 |
position: absolute; |
| 413 |
right: 0; |
| 414 |
bottom: 0; |
| 415 |
left: 0; |
| 416 |
height: 50px; |
| 417 |
overflow: hidden; |
| 418 |
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), |
| 419 |
0 8px 0 -3px #f6f6f6, |
| 420 |
0 9px 1px -3px rgba(0, 0, 0, 0.2), |
| 421 |
0 16px 0 -6px #f6f6f6, |
| 422 |
0 17px 2px -6px rgba(0, 0, 0, 0.2); |
| 423 |
} |
| 424 |
|
| 425 |
.todo-count { |
| 426 |
float: left; |
| 427 |
text-align: left; |
| 428 |
} |
| 429 |
|
| 430 |
.todo-count strong { |
| 431 |
font-weight: 300; |
| 432 |
} |
| 433 |
|
| 434 |
.filters { |
| 435 |
margin: 0; |
| 436 |
padding: 0; |
| 437 |
list-style: none; |
| 438 |
position: absolute; |
| 439 |
right: 0; |
| 440 |
left: 0; |
| 441 |
} |
| 442 |
|
| 443 |
.filters li { |
| 444 |
display: inline; |
| 445 |
} |
| 446 |
|
| 447 |
.filters li a { |
| 448 |
color: inherit; |
| 449 |
margin: 3px; |
| 450 |
padding: 3px 7px; |
| 451 |
text-decoration: none; |
| 452 |
border: 1px solid transparent; |
| 453 |
border-radius: 3px; |
| 454 |
} |
| 455 |
|
| 456 |
.filters li a:hover { |
| 457 |
border-color: rgba(175, 47, 47, 0.1); |
| 458 |
} |
| 459 |
|
| 460 |
.filters li a.selected { |
| 461 |
border-color: rgba(175, 47, 47, 0.2); |
| 462 |
} |
| 463 |
|
| 464 |
.clear-completed, |
| 465 |
html .clear-completed:active { |
| 466 |
float: right; |
| 467 |
position: relative; |
| 468 |
line-height: 20px; |
| 469 |
text-decoration: none; |
| 470 |
cursor: pointer; |
| 471 |
} |
| 472 |
|
| 473 |
.clear-completed:hover { |
| 474 |
text-decoration: underline; |
| 475 |
} |
| 476 |
|
| 477 |
.info { |
| 478 |
margin: 65px auto 0; |
| 479 |
color: #bfbfbf; |
| 480 |
font-size: 10px; |
| 481 |
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); |
| 482 |
text-align: center; |
| 483 |
} |
| 484 |
|
| 485 |
.info p { |
| 486 |
line-height: 1; |
| 487 |
} |
| 488 |
|
| 489 |
.info a { |
| 490 |
color: inherit; |
| 491 |
text-decoration: none; |
| 492 |
font-weight: 400; |
| 493 |
} |
| 494 |
|
| 495 |
.info a:hover { |
| 496 |
text-decoration: underline; |
| 497 |
} |
| 498 |
|
| 499 |
/* |
| 500 |
Hack to remove background from Mobile Safari. |
| 501 |
Can't use it globally since it destroys checkboxes in Firefox |
| 502 |
*/ |
| 503 |
@media screen and (-webkit-min-device-pixel-ratio:0) { |
| 504 |
.toggle-all, |
| 505 |
.todo-list li .toggle { |
| 506 |
background: none; |
| 507 |
} |
| 508 |
|
| 509 |
.todo-list li .toggle { |
| 510 |
height: 40px; |
| 511 |
} |
| 512 |
} |
| 513 |
|
| 514 |
@media (max-width: 430px) { |
| 515 |
.footer { |
| 516 |
height: 50px; |
| 517 |
} |
| 518 |
|
| 519 |
.filters { |
| 520 |
bottom: 10px; |
| 521 |
} |
| 522 |
} |
| 523 |
|
| 524 |
.logo { text-align: center; max-width: 300px; margin: 30px auto 0 auto; } .logo img { width: 300px; opacity: 0.9 } |
| 525 |
|
| 526 |
.button-container button { |
| 527 |
font-variant: small-caps; |
| 528 |
font-size: 18px; |
| 529 |
color: inherit; |
| 530 |
margin: 3px; |
| 531 |
padding: 5px 7px; |
| 532 |
text-decoration: none; |
| 533 |
border: 1px solid transparent; |
| 534 |
border-radius: 3px; |
| 535 |
background-color: transparent; |
| 536 |
} |
| 537 |
|
| 538 |
.button-container button:hover { |
| 539 |
border-color: rgba(175, 47, 47, 0.2); |
| 540 |
} |