ae224ce7880d252adaeb893a014932c92d9e93d5.svn-base 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  1. .todoapp {
  2. font: 14px 'Helvetica Neue', Helvetica, Arial, sans-serif;
  3. line-height: 1.4em;
  4. color: #4d4d4d;
  5. min-width: 230px;
  6. max-width: 550px;
  7. margin: 0 auto ;
  8. -webkit-font-smoothing: antialiased;
  9. -moz-osx-font-smoothing: grayscale;
  10. font-weight: 300;
  11. background: #fff;
  12. z-index: 1;
  13. position: relative;
  14. button {
  15. margin: 0;
  16. padding: 0;
  17. border: 0;
  18. background: none;
  19. font-size: 100%;
  20. vertical-align: baseline;
  21. font-family: inherit;
  22. font-weight: inherit;
  23. color: inherit;
  24. -webkit-appearance: none;
  25. appearance: none;
  26. -webkit-font-smoothing: antialiased;
  27. -moz-osx-font-smoothing: grayscale;
  28. }
  29. :focus {
  30. outline: 0;
  31. }
  32. .hidden {
  33. display: none;
  34. }
  35. .todoapp {
  36. background: #fff;
  37. margin: 130px 0 40px 0;
  38. position: relative;
  39. box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 25px 50px 0 rgba(0, 0, 0, 0.1);
  40. }
  41. .todoapp input::-webkit-input-placeholder {
  42. font-style: italic;
  43. font-weight: 300;
  44. color: #e6e6e6;
  45. }
  46. .todoapp input::-moz-placeholder {
  47. font-style: italic;
  48. font-weight: 300;
  49. color: #e6e6e6;
  50. }
  51. .todoapp input::input-placeholder {
  52. font-style: italic;
  53. font-weight: 300;
  54. color: #e6e6e6;
  55. }
  56. .todoapp h1 {
  57. position: absolute;
  58. top: -155px;
  59. width: 100%;
  60. font-size: 100px;
  61. font-weight: 100;
  62. text-align: center;
  63. color: rgba(175, 47, 47, 0.15);
  64. -webkit-text-rendering: optimizeLegibility;
  65. -moz-text-rendering: optimizeLegibility;
  66. text-rendering: optimizeLegibility;
  67. }
  68. .new-todo,
  69. .edit {
  70. position: relative;
  71. margin: 0;
  72. width: 100%;
  73. font-size: 18px;
  74. font-family: inherit;
  75. font-weight: inherit;
  76. line-height: 1.4em;
  77. border: 0;
  78. color: inherit;
  79. padding: 6px;
  80. border: 1px solid #999;
  81. box-shadow: inset 0 -1px 5px 0 rgba(0, 0, 0, 0.2);
  82. box-sizing: border-box;
  83. -webkit-font-smoothing: antialiased;
  84. -moz-osx-font-smoothing: grayscale;
  85. }
  86. .new-todo {
  87. padding: 10px 16px 16px 60px;
  88. border: none;
  89. background: rgba(0, 0, 0, 0.003);
  90. box-shadow: inset 0 -2px 1px rgba(0, 0, 0, 0.03);
  91. }
  92. .main {
  93. position: relative;
  94. z-index: 2;
  95. border-top: 1px solid #e6e6e6;
  96. }
  97. .toggle-all {
  98. text-align: center;
  99. border: none;
  100. /* Mobile Safari */
  101. opacity: 0;
  102. position: absolute;
  103. }
  104. .toggle-all+label {
  105. width: 60px;
  106. height: 34px;
  107. font-size: 0;
  108. position: absolute;
  109. top: -52px;
  110. left: -13px;
  111. -webkit-transform: rotate(90deg);
  112. transform: rotate(90deg);
  113. }
  114. .toggle-all+label:before {
  115. content: '❯';
  116. font-size: 22px;
  117. color: #e6e6e6;
  118. padding: 10px 27px 10px 27px;
  119. }
  120. .toggle-all:checked+label:before {
  121. color: #737373;
  122. }
  123. .todo-list {
  124. margin: 0;
  125. padding: 0;
  126. list-style: none;
  127. }
  128. .todo-list li {
  129. position: relative;
  130. font-size: 24px;
  131. border-bottom: 1px solid #ededed;
  132. }
  133. .todo-list li:last-child {
  134. border-bottom: none;
  135. }
  136. .todo-list li.editing {
  137. border-bottom: none;
  138. padding: 0;
  139. }
  140. .todo-list li.editing .edit {
  141. display: block;
  142. width: 506px;
  143. padding: 12px 16px;
  144. margin: 0 0 0 43px;
  145. }
  146. .todo-list li.editing .view {
  147. display: none;
  148. }
  149. .todo-list li .toggle {
  150. text-align: center;
  151. width: 40px;
  152. /* auto, since non-WebKit browsers doesn't support input styling */
  153. height: auto;
  154. position: absolute;
  155. top: 0;
  156. bottom: 0;
  157. margin: auto 0;
  158. border: none;
  159. /* Mobile Safari */
  160. -webkit-appearance: none;
  161. appearance: none;
  162. }
  163. .todo-list li .toggle {
  164. opacity: 0;
  165. }
  166. .todo-list li .toggle+label {
  167. /*
  168. Firefox requires `#` to be escaped - https://bugzilla.mozilla.org/show_bug.cgi?id=922433
  169. 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/
  170. */
  171. background-image: url('data:image/svg+xml;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');
  172. background-repeat: no-repeat;
  173. background-position: center left;
  174. background-size: 36px;
  175. }
  176. .todo-list li .toggle:checked+label {
  177. background-size: 36px;
  178. background-image: url('data:image/svg+xml;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');
  179. }
  180. .todo-list li label {
  181. word-break: break-all;
  182. padding: 15px 15px 15px 50px;
  183. display: block;
  184. line-height: 1.0;
  185. font-size: 14px;
  186. transition: color 0.4s;
  187. }
  188. .todo-list li.completed label {
  189. color: #d9d9d9;
  190. text-decoration: line-through;
  191. }
  192. .todo-list li .destroy {
  193. display: none;
  194. position: absolute;
  195. top: 0;
  196. right: 10px;
  197. bottom: 0;
  198. width: 40px;
  199. height: 40px;
  200. margin: auto 0;
  201. font-size: 30px;
  202. color: #cc9a9a;
  203. transition: color 0.2s ease-out;
  204. cursor: pointer;
  205. }
  206. .todo-list li .destroy:hover {
  207. color: #af5b5e;
  208. }
  209. .todo-list li .destroy:after {
  210. content: '×';
  211. }
  212. .todo-list li:hover .destroy {
  213. display: block;
  214. }
  215. .todo-list li .edit {
  216. display: none;
  217. }
  218. .todo-list li.editing:last-child {
  219. margin-bottom: -1px;
  220. }
  221. .footer {
  222. color: #777;
  223. position: relative;
  224. padding: 10px 15px;
  225. height: 40px;
  226. text-align: center;
  227. border-top: 1px solid #e6e6e6;
  228. }
  229. .footer:before {
  230. content: '';
  231. position: absolute;
  232. right: 0;
  233. bottom: 0;
  234. left: 0;
  235. height: 40px;
  236. overflow: hidden;
  237. box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 8px 0 -3px #f6f6f6, 0 9px 1px -3px rgba(0, 0, 0, 0.2), 0 16px 0 -6px #f6f6f6, 0 17px 2px -6px rgba(0, 0, 0, 0.2);
  238. }
  239. .todo-count {
  240. float: left;
  241. text-align: left;
  242. }
  243. .todo-count strong {
  244. font-weight: 300;
  245. }
  246. .filters {
  247. margin: 0;
  248. padding: 0;
  249. position: relative;
  250. z-index: 1;
  251. list-style: none;
  252. }
  253. .filters li {
  254. display: inline;
  255. }
  256. .filters li a {
  257. color: inherit;
  258. font-size: 12px;
  259. padding: 3px 7px;
  260. text-decoration: none;
  261. border: 1px solid transparent;
  262. border-radius: 3px;
  263. }
  264. .filters li a:hover {
  265. border-color: rgba(175, 47, 47, 0.1);
  266. }
  267. .filters li a.selected {
  268. border-color: rgba(175, 47, 47, 0.2);
  269. }
  270. .clear-completed,
  271. html .clear-completed:active {
  272. float: right;
  273. position: relative;
  274. line-height: 20px;
  275. text-decoration: none;
  276. cursor: pointer;
  277. }
  278. .clear-completed:hover {
  279. text-decoration: underline;
  280. }
  281. .info {
  282. margin: 65px auto 0;
  283. color: #bfbfbf;
  284. font-size: 10px;
  285. text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  286. text-align: center;
  287. }
  288. .info p {
  289. line-height: 1;
  290. }
  291. .info a {
  292. color: inherit;
  293. text-decoration: none;
  294. font-weight: 400;
  295. }
  296. .info a:hover {
  297. text-decoration: underline;
  298. }
  299. /*
  300. Hack to remove background from Mobile Safari.
  301. Can't use it globally since it destroys checkboxes in Firefox
  302. */
  303. @media screen and (-webkit-min-device-pixel-ratio:0) {
  304. .toggle-all,
  305. .todo-list li .toggle {
  306. background: none;
  307. }
  308. .todo-list li .toggle {
  309. height: 40px;
  310. }
  311. }
  312. @media (max-width: 430px) {
  313. .footer {
  314. height: 50px;
  315. }
  316. .filters {
  317. bottom: 10px;
  318. }
  319. }
  320. }