React app
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 

263 řádky
5.4 KiB

  1. .modalHeader {
  2. background-color: var(--orange);
  3. display: flex;
  4. align-items: center;
  5. justify-content: center;
  6. padding-bottom: 4.5rem;
  7. padding-top: 0.5rem;
  8. h4 {
  9. flex-grow: 1;
  10. padding-left: 4rem;
  11. color: white;
  12. font-size: 1.5rem;
  13. text-align: center;
  14. font-weight: 500;
  15. }
  16. button {
  17. margin-left: auto;
  18. margin-right: 1rem;
  19. width: 4rem;
  20. height: 4rem;
  21. display: flex;
  22. align-items: center;
  23. justify-content: center;
  24. background-color: transparent;
  25. border: none;
  26. svg {
  27. width: 1.5rem;
  28. fill: white;
  29. }
  30. }
  31. }
  32. .form {
  33. border-radius: 3rem;
  34. background-color: var(--creamy-white);
  35. overflow: hidden;
  36. margin-top: -4rem;
  37. padding: 2rem;
  38. input {
  39. border: none;
  40. height: 4rem;
  41. width: 100%;
  42. display: block;
  43. border-radius: 3rem;
  44. box-shadow: 0px 2px 10px -5px inset var(--light-grey);
  45. padding: 0 1.5rem;
  46. font-size: 1.2rem;
  47. margin-bottom: 1.5rem;
  48. background-color: var(--form-input-bg);
  49. }
  50. textarea {
  51. background-color: var(--form-input-bg);
  52. font-size: 1.2rem;
  53. padding: 1rem 1.5rem;
  54. box-shadow: 0px 2px 10px -5px inset var(--light-grey);
  55. border: none;
  56. resize: none;
  57. display: block;
  58. width: 100%;
  59. height: 10rem;
  60. border-radius: 1.5rem;
  61. margin-bottom: 1.5rem;
  62. }
  63. }
  64. .blockHeader {
  65. display: flex;
  66. align-items: center;
  67. justify-content: flex-start;
  68. h5 {
  69. font-size: 1.2rem;
  70. font-weight: 600;
  71. color: var(--black);
  72. flex-grow: 1;
  73. svg {
  74. width: 2rem;
  75. height: 2rem;
  76. fill: var(--black);
  77. vertical-align: middle;
  78. margin-right: 1rem;
  79. }
  80. }
  81. button, a {
  82. background-color: var(--teal);
  83. width: 3rem;
  84. height: 3rem;
  85. border: none;
  86. border-radius: 50%;
  87. display: flex;
  88. align-items: center;
  89. justify-content: center;
  90. margin-left: 1rem;
  91. &.expandButton {
  92. background-color: var(--red);
  93. }
  94. svg {
  95. fill: white;
  96. width: 1.2rem;
  97. }
  98. }
  99. }
  100. .Grid {
  101. padding: 0 0.5rem;
  102. ul {
  103. list-style: none;
  104. display: grid;
  105. grid-template-columns: 1fr 1fr;
  106. }
  107. li {
  108. display: flex;
  109. justify-content: space-between;
  110. align-items: center;
  111. margin: 1rem 0;
  112. position: relative;
  113. transition: opacity 0.3s;
  114. &.inactive {
  115. opacity: 0.5;
  116. }
  117. .checkmark {
  118. position: absolute;
  119. left: 3.5rem;
  120. top: -0.3rem;
  121. width: 1.5rem;
  122. height: 1.5rem;
  123. background-color: var(--teal);
  124. border-radius: 50%;
  125. display: flex;
  126. align-items: center;
  127. justify-content: center;
  128. svg {
  129. width: 0.8rem;
  130. fill: white;
  131. }
  132. }
  133. &:nth-child(5n - 4) .icon {
  134. background-color: var(--orange);
  135. }
  136. &:nth-child(5n - 3) .icon {
  137. background-color: var(--blue);
  138. }
  139. &:nth-child(5n - 2) .icon {
  140. background-color: var(--red);
  141. }
  142. &:nth-child(5n - 1) .icon {
  143. background-color: var(--teal);
  144. }
  145. }
  146. .icon {
  147. width: 4.5rem;
  148. height: 4.5rem;
  149. background-color: var(--grey);
  150. display: flex;
  151. align-items: center;
  152. justify-content: center;
  153. border-radius: 1rem;
  154. svg {
  155. fill: white;
  156. width: 2rem;
  157. }
  158. }
  159. .info {
  160. width: calc(100% - 5.5rem);
  161. label, span {
  162. display: block;
  163. }
  164. label {
  165. font-size: 1.2rem;
  166. color: var(--black);
  167. font-weight: 700;
  168. }
  169. span {
  170. font-size: 1rem;
  171. color: var(--grey);
  172. }
  173. }
  174. }
  175. .toggleHolder {
  176. width: 100%;
  177. display: flex;
  178. align-items: center;
  179. justify-content: space-between;
  180. padding: 2rem 0.5rem;
  181. label {
  182. font-size: 1.2rem;
  183. color: var(--black);
  184. font-weight: 600;
  185. }
  186. .toggle {
  187. background-color: var(--form-input-bg);
  188. width: 4rem;
  189. height: 2rem;
  190. border-radius: 3rem;
  191. box-shadow: 0px 0px 10px -5px inset var(--light-grey);
  192. display: flex;
  193. align-items: center;
  194. justify-content: flex-start;
  195. &.on span {
  196. transform: translateX(2.2rem);
  197. background-color: var(--teal);
  198. }
  199. &.off span {
  200. transform: translateX(0.2rem);
  201. }
  202. span {
  203. cursor: pointer;
  204. width: 1.6rem;
  205. height: 1.6rem;
  206. background-color: var(--red);
  207. border-radius: 50%;
  208. display: block;
  209. transition: transform 0.3s, background-color 0.3s;
  210. }
  211. }
  212. }
  213. .publishButton {
  214. width: 9rem;
  215. height: 3.5rem;
  216. background-color: var(--teal);
  217. font-size: 1.2rem;
  218. font-weight: 500;
  219. color: white;
  220. display: block;
  221. margin: 2rem auto;
  222. border: none;
  223. border-radius: 3rem;
  224. position: fixed;
  225. left: calc(50% - 4.5rem);
  226. bottom: 1rem;
  227. z-index: 1;
  228. }