Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.54 KB | None | 0 0
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. }
  5.  
  6. input:focus,
  7. select:focus,
  8. textarea:focus,
  9. button:focus {
  10. outline: none;
  11. }
  12.  
  13. body {
  14. display: grid;
  15. grid-template-rows: 150px 1fr;
  16. background-color: #202124;
  17. font-family: 'Ubuntu Mono', monospace;
  18. }
  19.  
  20. header {
  21. display: grid;
  22. border-bottom: 1px solid #5f6368;
  23. color: white;
  24. }
  25.  
  26. header h1 {
  27. place-self: center;
  28. }
  29.  
  30. #app-todolist {
  31. place-self: center;
  32. }
  33.  
  34. #commands {
  35. place-self: center;
  36. display: grid;
  37. grid-template-columns: 1fr auto;
  38. padding: 10px;
  39. margin-top: 30px;
  40. box-shadow: 0 1px 2px 0 rgba(0,0,0,0.6), 0 2px 6px 2px rgba(0,0,0,0.302);
  41. }
  42.  
  43. #commands input {
  44. border: none;
  45. background: #2d2e30;
  46. color: white;
  47. padding-left: 5px;
  48. font-size: 18px;
  49. }
  50.  
  51. a {
  52. color: #5f6368;
  53. text-decoration: none;
  54. padding: 2px;
  55. margin-left: 5px;
  56. font-weight: bold;
  57. font-size: 22px;
  58. transition: color 0.5s ease;
  59. }
  60.  
  61. a:active {
  62. color: #5f6368;
  63. }
  64.  
  65. a:hover {
  66. color: white;
  67. }
  68.  
  69. #main-content {
  70. place-self: center;
  71. margin-top: 30px;
  72. }
  73.  
  74. .todo-item, #commands {
  75. background: #2d2e30;
  76. width: 450px;
  77. border-radius: 8px;
  78. border: 1px solid #5f6368;
  79. align-items: center;
  80. }
  81.  
  82. .todo-item {
  83. list-style: none;
  84. color: white;
  85. padding: 10px 10px;
  86. margin-bottom: 10px;
  87. display: grid;
  88. grid-template-columns: auto 1fr auto;
  89. }
  90.  
  91. .todo-text span {
  92. overflow-wrap: break-word;
  93. }
  94.  
  95. .completed {
  96. text-decoration: line-through;
  97. color: #5f6368;
  98. transition: color 0.4s ease;
  99. }
  100.  
  101. .todo-check {
  102. margin-right: 10px;
  103. place-self: center;
  104. display: block;
  105. user-select: none;
  106. -webkit-user-select: none;
  107. -moz-user-select: none;
  108. -ms-user-select: none;
  109. cursor: pointer;
  110. }
  111.  
  112. .todo-check input {
  113. position: absolute;
  114. opacity: 0;
  115. cursor: pointer;
  116. height: 0;
  117. width: 0;
  118. }
  119.  
  120. .checkmark {
  121. display: block;
  122. height: 18px;
  123. width: 18px;
  124. background-color: transparent;
  125. border: 2px solid #5f6368;
  126. border-radius: 3px;
  127. transition: all 0.5s ease;
  128. }
  129.  
  130. .todo-check:hover, .checkmark:hover, .checkmark:hover:after {
  131. color: white;
  132. border-color: white !important;
  133. transition: all 0.5s ease;
  134. }
  135.  
  136. .checkmark:after {
  137. content: "";
  138. position: relative;
  139. display: none;
  140. }
  141.  
  142. .todo-check input:checked ~ .checkmark:after {
  143. display: block;
  144. }
  145.  
  146. .todo-check .checkmark:after {
  147. left: 5px;
  148. top: 1px;
  149. width: 5px;
  150. height: 10px;
  151. border: solid #5f6368;
  152. border-width: 0 3px 3px 0;
  153. -webkit-transform: rotate(45deg);
  154. -ms-transform: rotate(45deg);
  155. transform: rotate(45deg);
  156. transition: all 0.5s ease;
  157. }
  158.  
  159. .todo-item-animated {
  160. transition: all 0.5s;
  161. }
  162.  
  163. .list-animation-enter, .list-animation-leave-to {
  164. opacity: 0;
  165. transform: translateY(30px);
  166. }
  167.  
  168. .list-animation-leave-active {
  169. position: absolute;
  170. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement