You are here

style.css in Decoupled Blocks 8

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: 100%;
  vertical-align: baseline;
  font-family: inherit;
  font-weight: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
  -webkit-font-smoothing: antialiased;
  -moz-font-smoothing: antialiased;
  font-smoothing: antialiased;
}

button,
input[type="checkbox"] {
  outline: none;
}

.hidden {
  display: none;
}

.todoapp {
  background: #fff;
  margin: 130px 0 40px 0;
  position: relative;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 25px 50px 0 rgba(0, 0, 0, 0.1);
}

.todoapp input::-webkit-input-placeholder {
  font-style: italic;
  font-weight: 300;
  color: #e6e6e6;
}

.todoapp input::-moz-placeholder {
  font-style: italic;
  font-weight: 300;
  color: #e6e6e6;
}

.todoapp input::input-placeholder {
  font-style: italic;
  font-weight: 300;
  color: #e6e6e6;
}

.todoapp h1 {
  position: absolute;
  top: -255px;
  width: 100%;
  font-size: 100px;
  font-weight: 100;
  text-align: center;
  color: rgba(175, 47, 47, 0.15);
  -webkit-text-rendering: optimizeLegibility;
  -moz-text-rendering: optimizeLegibility;
  text-rendering: optimizeLegibility;
}

.new-todo,
.edit {
  position: relative;
  margin: 0;
  width: 100%;
  font-size: 24px;
  font-family: inherit;
  font-weight: inherit;
  line-height: 1.4em;
  border: 0;
  outline: none;
  color: inherit;
  padding: 6px;
  border: 1px solid #999;
  box-shadow: inset 0 -1px 5px 0 rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-font-smoothing: antialiased;
  font-smoothing: antialiased;
}

.new-todo {
  padding: 16px 16px 16px 60px;
  border: none;
  background: rgba(0, 0, 0, 0.003);
  box-shadow: inset 0 -2px 1px rgba(0, 0, 0, 0.03);
}

.main {
  position: relative;
  z-index: 2;
  border-top: 1px solid #e6e6e6;
}

label[for='toggle-all'] {
  display: none;
}

.toggle-all {
  position: absolute;
  top: -55px;
  left: -12px;
  width: 60px;
  height: 34px;
  text-align: center;
  border: none; /* Mobile Safari */
}

.toggle-all:before {
  content: '❯';
  font-size: 22px;
  color: #e6e6e6;
  padding: 10px 27px 10px 27px;
}

.toggle-all:checked:before {
  color: #737373;
}

.todo-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.todo-list li {
  position: relative;
  font-size: 24px;
  border-bottom: 1px solid #ededed;
}

.todo-list li:last-child {
  border-bottom: none;
}

.todo-list li.editing {
  border-bottom: none;
  padding: 0;
}

.todo-list li.editing .edit {
  display: block;
  width: 506px;
  padding: 13px 17px 12px 17px;
  margin: 0 0 0 43px;
}

.todo-list li.editing .view {
  display: none;
}

.todo-list li .toggle {
  text-align: center;
  width: 40px;
  /* auto, since non-WebKit browsers doesn't support input styling */
  height: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto 0;
  border: none; /* Mobile Safari */
  -webkit-appearance: none;
  appearance: none;
}

.todo-list li .toggle:after {
  content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="-10 -18 100 135"><circle cx="50" cy="50" r="50" fill="none" stroke="#ededed" stroke-width="3"/></svg>');
}

.todo-list li .toggle:checked:after {
  content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="-10 -18 100 135"><circle cx="50" cy="50" r="50" fill="none" stroke="#bddad5" stroke-width="3"/><path fill="#5dc2af" d="M72 25L42 71 27 56l-4 4 20 20 34-52z"/></svg>');
}

.todo-list li label {
  white-space: pre-line;
  word-break: break-all;
  padding: 15px 60px 15px 15px;
  margin-left: 45px;
  display: block;
  line-height: 1.2;
  transition: color 0.4s;
}

.todo-list li.completed label {
  color: #d9d9d9;
  text-decoration: line-through;
}

.todo-list li .destroy {
  display: none;
  position: absolute;
  top: 0;
  right: 10px;
  bottom: 0;
  width: 40px;
  height: 40px;
  margin: auto 0;
  font-size: 30px;
  color: #cc9a9a;
  margin-bottom: 11px;
  transition: color 0.2s ease-out;
}

.todo-list li .destroy:hover {
  color: #af5b5e;
}

.todo-list li .destroy:after {
  content: '×';
}

.todo-list li:hover .destroy {
  display: block;
}

.todo-list li .edit {
  display: none;
}

.todo-list li.editing:last-child {
  margin-bottom: -1px;
}

.footer {
  color: #777;
  padding: 10px 15px;
  height: 20px;
  text-align: center;
  border-top: 1px solid #e6e6e6;
}

.footer:before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 50px;
  overflow: hidden;
  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);
}

.todo-count {
  float: left;
  text-align: left;
}

.todo-count strong {
  font-weight: 300;
}

.filters {
  margin: 0;
  padding: 0;
  list-style: none;
  position: absolute;
  right: 0;
  left: 0;
}

.filters li {
  display: inline;
}

.filters li a {
  color: inherit;
  margin: 3px;
  padding: 3px 7px;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 3px;
}

.filters li a.selected,
.filters li a:hover {
  border-color: rgba(175, 47, 47, 0.1);
}

.filters li a.selected {
  border-color: rgba(175, 47, 47, 0.2);
}

.clear-completed,
html .clear-completed:active {
  float: right;
  position: relative;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
}

.clear-completed:hover {
  text-decoration: underline;
}

.info {
  margin: 65px auto 0;
  color: #bfbfbf;
  font-size: 10px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  text-align: center;
}

.info p {
  line-height: 1;
}

.info a {
  color: inherit;
  text-decoration: none;
  font-weight: 400;
}

.info a:hover {
  text-decoration: underline;
}

/*
    Hack to remove background from Mobile Safari.
    Can't use it globally since it destroys checkboxes in Firefox
*/
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .toggle-all,
  .todo-list li .toggle {
    background: none;
  }

  .todo-list li .toggle {
    height: 40px;
  }

  .toggle-all {
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
    -webkit-appearance: none;
    appearance: none;
  }
}

@media (max-width: 430px) {
  .footer {
    height: 50px;
  }

  .filters {
    bottom: 10px;
  }
}

hr {
  margin: 20px 0;
  border: 0;
  border-top: 1px dashed #c5c5c5;
  border-bottom: 1px dashed #f7f7f7;
}

.learn a {
  font-weight: normal;
  text-decoration: none;
  color: #b83f45;
}

.learn a:hover {
  text-decoration: underline;
  color: #787e7e;
}

.learn h3,
.learn h4,
.learn h5 {
  margin: 10px 0;
  font-weight: 500;
  line-height: 1.2;
  color: #000;
}

.learn h3 {
  font-size: 24px;
}

.learn h4 {
  font-size: 18px;
}

.learn h5 {
  margin-bottom: 0;
  font-size: 14px;
}

.learn ul {
  padding: 0;
  margin: 0 0 30px 25px;
}

.learn li {
  line-height: 20px;
}

.learn p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 0;
}

#issue-count {
  display: none;
}

.quote {
  border: none;
  margin: 20px 0 60px 0;
}

.quote p {
  font-style: italic;
}

.quote p:before {
  content: '“';
  font-size: 50px;
  opacity: .15;
  position: absolute;
  top: -20px;
  left: 3px;
}

.quote p:after {
  content: '”';
  font-size: 50px;
  opacity: .15;
  position: absolute;
  bottom: -42px;
  right: 3px;
}

.quote footer {
  position: absolute;
  bottom: -40px;
  right: 0;
}

.quote footer img {
  border-radius: 3px;
}

.quote footer a {
  margin-left: 5px;
  vertical-align: middle;
}

.speech-bubble {
  position: relative;
  padding: 10px;
  background: rgba(0, 0, 0, .04);
  border-radius: 5px;
}

.speech-bubble:after {
  content: '';
  position: absolute;
  top: 100%;
  right: 30px;
  border: 13px solid transparent;
  border-top-color: rgba(0, 0, 0, .04);
}

.learn-bar > .learn {
  position: absolute;
  width: 272px;
  top: 8px;
  left: -300px;
  padding: 10px;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, .6);
  transition-property: left;
  transition-duration: 500ms;
}

@media (min-width: 899px) {
  .learn-bar {
    width: auto;
    padding-left: 300px;
  }

  .learn-bar > .learn {
    left: 8px;
  }
}

File

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