base.css 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556
  1. html,
  2. body {
  3. margin: 0;
  4. padding: 0;
  5. }
  6. button {
  7. margin: 0;
  8. padding: 0;
  9. border: 0;
  10. background: none;
  11. font-size: 100%;
  12. vertical-align: baseline;
  13. font-family: inherit;
  14. color: inherit;
  15. -webkit-appearance: none;
  16. -ms-appearance: none;
  17. -o-appearance: none;
  18. appearance: none;
  19. }
  20. body {
  21. font: 14px 'Helvetica Neue', Helvetica, Arial, sans-serif;
  22. line-height: 1.4em;
  23. background: #eaeaea url('bg.png');
  24. color: #4d4d4d;
  25. width: 550px;
  26. margin: 0 auto;
  27. -webkit-font-smoothing: antialiased;
  28. -moz-font-smoothing: antialiased;
  29. -ms-font-smoothing: antialiased;
  30. -o-font-smoothing: antialiased;
  31. font-smoothing: antialiased;
  32. }
  33. button,
  34. input[type="checkbox"] {
  35. outline: none;
  36. }
  37. #todoapp {
  38. background: #fff;
  39. background: rgba(255, 255, 255, 0.9);
  40. margin: 130px 0 40px 0;
  41. border: 1px solid #ccc;
  42. position: relative;
  43. border-top-left-radius: 2px;
  44. border-top-right-radius: 2px;
  45. box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2),
  46. 0 25px 50px 0 rgba(0, 0, 0, 0.15);
  47. }
  48. #todoapp:before {
  49. content: '';
  50. border-left: 1px solid #f5d6d6;
  51. border-right: 1px solid #f5d6d6;
  52. width: 2px;
  53. position: absolute;
  54. top: 0;
  55. left: 40px;
  56. height: 100%;
  57. }
  58. #todoapp input::-webkit-input-placeholder {
  59. font-style: italic;
  60. }
  61. #todoapp input::-moz-placeholder {
  62. font-style: italic;
  63. color: #a9a9a9;
  64. }
  65. #todoapp h1 {
  66. position: absolute;
  67. top: -120px;
  68. width: 100%;
  69. font-size: 70px;
  70. font-weight: bold;
  71. text-align: center;
  72. color: #b3b3b3;
  73. color: rgba(255, 255, 255, 0.3);
  74. text-shadow: -1px -1px rgba(0, 0, 0, 0.2);
  75. -webkit-text-rendering: optimizeLegibility;
  76. -moz-text-rendering: optimizeLegibility;
  77. -ms-text-rendering: optimizeLegibility;
  78. -o-text-rendering: optimizeLegibility;
  79. text-rendering: optimizeLegibility;
  80. }
  81. #header {
  82. padding-top: 15px;
  83. border-radius: inherit;
  84. }
  85. #header:before {
  86. content: '';
  87. position: absolute;
  88. top: 0;
  89. right: 0;
  90. left: 0;
  91. height: 15px;
  92. z-index: 2;
  93. border-bottom: 1px solid #6c615c;
  94. background: #8d7d77;
  95. background: -webkit-gradient(linear, left top, left bottom, from(rgba(132, 110, 100, 0.8)),to(rgba(101, 84, 76, 0.8)));
  96. background: -webkit-linear-gradient(top, rgba(132, 110, 100, 0.8), rgba(101, 84, 76, 0.8));
  97. background: linear-gradient(top, rgba(132, 110, 100, 0.8), rgba(101, 84, 76, 0.8));
  98. filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr='#9d8b83', EndColorStr='#847670');
  99. border-top-left-radius: 1px;
  100. border-top-right-radius: 1px;
  101. }
  102. #new-todo,
  103. .edit {
  104. position: relative;
  105. margin: 0;
  106. width: 100%;
  107. font-size: 24px;
  108. font-family: inherit;
  109. line-height: 1.4em;
  110. border: 0;
  111. outline: none;
  112. color: inherit;
  113. padding: 6px;
  114. border: 1px solid #999;
  115. box-shadow: inset 0 -1px 5px 0 rgba(0, 0, 0, 0.2);
  116. -moz-box-sizing: border-box;
  117. -ms-box-sizing: border-box;
  118. -o-box-sizing: border-box;
  119. box-sizing: border-box;
  120. -webkit-font-smoothing: antialiased;
  121. -moz-font-smoothing: antialiased;
  122. -ms-font-smoothing: antialiased;
  123. -o-font-smoothing: antialiased;
  124. font-smoothing: antialiased;
  125. }
  126. #new-todo {
  127. padding: 16px 16px 16px 60px;
  128. border: none;
  129. background: rgba(0, 0, 0, 0.02);
  130. z-index: 2;
  131. box-shadow: none;
  132. }
  133. #main {
  134. position: relative;
  135. z-index: 2;
  136. border-top: 1px dotted #adadad;
  137. }
  138. label[for='toggle-all'] {
  139. display: none;
  140. }
  141. #toggle-all {
  142. position: absolute;
  143. top: -42px;
  144. left: -4px;
  145. width: 40px;
  146. text-align: center;
  147. /* Mobile Safari */
  148. border: none;
  149. }
  150. #toggle-all:before {
  151. content: '»';
  152. font-size: 28px;
  153. color: #d9d9d9;
  154. padding: 0 25px 7px;
  155. }
  156. #toggle-all:checked:before {
  157. color: #737373;
  158. }
  159. #todo-list {
  160. margin: 0;
  161. padding: 0;
  162. list-style: none;
  163. }
  164. #todo-list li {
  165. position: relative;
  166. font-size: 24px;
  167. border-bottom: 1px dotted #ccc;
  168. }
  169. #todo-list li:last-child {
  170. border-bottom: none;
  171. }
  172. #todo-list li.editing {
  173. border-bottom: none;
  174. padding: 0;
  175. }
  176. #todo-list li.editing .edit {
  177. display: block;
  178. width: 506px;
  179. padding: 13px 17px 12px 17px;
  180. margin: 0 0 0 43px;
  181. }
  182. #todo-list li.editing .view {
  183. display: none;
  184. }
  185. #todo-list li .toggle {
  186. text-align: center;
  187. width: 40px;
  188. /* auto, since non-WebKit browsers doesn't support input styling */
  189. height: auto;
  190. position: absolute;
  191. top: 0;
  192. bottom: 0;
  193. margin: auto 0;
  194. /* Mobile Safari */
  195. border: none;
  196. -webkit-appearance: none;
  197. -ms-appearance: none;
  198. -o-appearance: none;
  199. appearance: none;
  200. }
  201. #todo-list li .toggle:after {
  202. content: '✔';
  203. /* 40 + a couple of pixels visual adjustment */
  204. line-height: 43px;
  205. font-size: 20px;
  206. color: #d9d9d9;
  207. text-shadow: 0 -1px 0 #bfbfbf;
  208. }
  209. #todo-list li .toggle:checked:after {
  210. color: #85ada7;
  211. text-shadow: 0 1px 0 #669991;
  212. bottom: 1px;
  213. position: relative;
  214. }
  215. #todo-list li label {
  216. white-space: pre;
  217. word-break: break-word;
  218. padding: 15px 60px 15px 15px;
  219. margin-left: 45px;
  220. display: block;
  221. line-height: 1.2;
  222. -webkit-transition: color 0.4s;
  223. transition: color 0.4s;
  224. }
  225. #todo-list li.completed label {
  226. color: #a9a9a9;
  227. text-decoration: line-through;
  228. }
  229. #todo-list li .destroy {
  230. display: none;
  231. position: absolute;
  232. top: 0;
  233. right: 10px;
  234. bottom: 0;
  235. width: 40px;
  236. height: 40px;
  237. margin: auto 0;
  238. font-size: 22px;
  239. color: #a88a8a;
  240. -webkit-transition: all 0.2s;
  241. transition: all 0.2s;
  242. }
  243. #todo-list li .destroy:hover {
  244. text-shadow: 0 0 1px #000,
  245. 0 0 10px rgba(199, 107, 107, 0.8);
  246. -webkit-transform: scale(1.3);
  247. -ms-transform: scale(1.3);
  248. transform: scale(1.3);
  249. }
  250. #todo-list li .destroy:after {
  251. content: '✖';
  252. }
  253. #todo-list li:hover .destroy {
  254. display: block;
  255. }
  256. #todo-list li .edit {
  257. display: none;
  258. }
  259. #todo-list li.editing:last-child {
  260. margin-bottom: -1px;
  261. }
  262. #footer {
  263. color: #777;
  264. padding: 0 15px;
  265. position: absolute;
  266. right: 0;
  267. bottom: -31px;
  268. left: 0;
  269. height: 20px;
  270. z-index: 1;
  271. text-align: center;
  272. }
  273. #footer:before {
  274. content: '';
  275. position: absolute;
  276. right: 0;
  277. bottom: 31px;
  278. left: 0;
  279. height: 50px;
  280. z-index: -1;
  281. box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3),
  282. 0 6px 0 -3px rgba(255, 255, 255, 0.8),
  283. 0 7px 1px -3px rgba(0, 0, 0, 0.3),
  284. 0 43px 0 -6px rgba(255, 255, 255, 0.8),
  285. 0 44px 2px -6px rgba(0, 0, 0, 0.2);
  286. }
  287. #todo-count {
  288. float: left;
  289. text-align: left;
  290. }
  291. #filters {
  292. margin: 0;
  293. padding: 0;
  294. list-style: none;
  295. position: absolute;
  296. right: 0;
  297. left: 0;
  298. }
  299. #filters li {
  300. display: inline;
  301. }
  302. #filters li a {
  303. color: #83756f;
  304. margin: 2px;
  305. text-decoration: none;
  306. }
  307. #filters li a.selected {
  308. font-weight: bold;
  309. }
  310. #clear-completed {
  311. float: right;
  312. position: relative;
  313. line-height: 20px;
  314. text-decoration: none;
  315. background: rgba(0, 0, 0, 0.1);
  316. font-size: 11px;
  317. padding: 0 10px;
  318. border-radius: 3px;
  319. box-shadow: 0 -1px 0 0 rgba(0, 0, 0, 0.2);
  320. }
  321. #clear-completed:hover {
  322. background: rgba(0, 0, 0, 0.15);
  323. box-shadow: 0 -1px 0 0 rgba(0, 0, 0, 0.3);
  324. }
  325. #info {
  326. margin: 65px auto 0;
  327. color: #a6a6a6;
  328. font-size: 12px;
  329. text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  330. text-align: center;
  331. }
  332. #info a {
  333. color: inherit;
  334. }
  335. /*
  336. Hack to remove background from Mobile Safari.
  337. Can't use it globally since it destroys checkboxes in Firefox and Opera
  338. */
  339. @media screen and (-webkit-min-device-pixel-ratio:0) {
  340. #toggle-all,
  341. #todo-list li .toggle {
  342. background: none;
  343. }
  344. #todo-list li .toggle {
  345. height: 40px;
  346. }
  347. #toggle-all {
  348. top: -56px;
  349. left: -15px;
  350. width: 65px;
  351. height: 41px;
  352. -webkit-transform: rotate(90deg);
  353. -ms-transform: rotate(90deg);
  354. transform: rotate(90deg);
  355. -webkit-appearance: none;
  356. appearance: none;
  357. }
  358. }
  359. .hidden {
  360. display: none;
  361. }
  362. hr {
  363. margin: 20px 0;
  364. border: 0;
  365. border-top: 1px dashed #C5C5C5;
  366. border-bottom: 1px dashed #F7F7F7;
  367. }
  368. .learn a {
  369. font-weight: normal;
  370. text-decoration: none;
  371. color: #b83f45;
  372. }
  373. .learn a:hover {
  374. text-decoration: underline;
  375. color: #787e7e;
  376. }
  377. .learn h3,
  378. .learn h4,
  379. .learn h5 {
  380. margin: 10px 0;
  381. font-weight: 500;
  382. line-height: 1.2;
  383. color: #000;
  384. }
  385. .learn h3 {
  386. font-size: 24px;
  387. }
  388. .learn h4 {
  389. font-size: 18px;
  390. }
  391. .learn h5 {
  392. margin-bottom: 0;
  393. font-size: 14px;
  394. }
  395. .learn ul {
  396. padding: 0;
  397. margin: 0 0 30px 25px;
  398. }
  399. .learn li {
  400. line-height: 20px;
  401. }
  402. .learn p {
  403. font-size: 15px;
  404. font-weight: 300;
  405. line-height: 1.3;
  406. margin-top: 0;
  407. margin-bottom: 0;
  408. }
  409. .quote {
  410. border: none;
  411. margin: 20px 0 60px 0;
  412. }
  413. .quote p {
  414. font-style: italic;
  415. }
  416. .quote p:before {
  417. content: '“';
  418. font-size: 50px;
  419. opacity: .15;
  420. position: absolute;
  421. top: -20px;
  422. left: 3px;
  423. }
  424. .quote p:after {
  425. content: '”';
  426. font-size: 50px;
  427. opacity: .15;
  428. position: absolute;
  429. bottom: -42px;
  430. right: 3px;
  431. }
  432. .quote footer {
  433. position: absolute;
  434. bottom: -40px;
  435. right: 0;
  436. }
  437. .quote footer img {
  438. border-radius: 3px;
  439. }
  440. .quote footer a {
  441. margin-left: 5px;
  442. vertical-align: middle;
  443. }
  444. .speech-bubble {
  445. position: relative;
  446. padding: 10px;
  447. background: rgba(0, 0, 0, .04);
  448. border-radius: 5px;
  449. }
  450. .speech-bubble:after {
  451. content: '';
  452. position: absolute;
  453. top: 100%;
  454. right: 30px;
  455. border: 13px solid transparent;
  456. border-top-color: rgba(0, 0, 0, .04);
  457. }
  458. .learn-bar > .learn {
  459. position: absolute;
  460. width: 272px;
  461. top: 8px;
  462. left: -300px;
  463. padding: 10px;
  464. border-radius: 5px;
  465. background-color: rgba(255, 255, 255, .6);
  466. -webkit-transition-property: left;
  467. transition-property: left;
  468. -webkit-transition-duration: 500ms;
  469. transition-duration: 500ms;
  470. }
  471. @media (min-width: 899px) {
  472. .learn-bar {
  473. width: auto;
  474. margin: 0 0 0 300px;
  475. }
  476. .learn-bar > .learn {
  477. left: 8px;
  478. }
  479. .learn-bar #todoapp {
  480. width: 550px;
  481. margin: 130px auto 40px auto;
  482. }
  483. }