main.css 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  1. @tailwind base;
  2. html {
  3. line-height: 1.15;
  4. }
  5. @tailwind components;
  6. :not(input) {
  7. user-select: none;
  8. }
  9. :root {
  10. --violet-gradient: linear-gradient(
  11. -180deg,
  12. rgb(144 89 255 / 80%) 0%,
  13. rgb(144 89 255 / 40%) 100%
  14. );
  15. }
  16. a {
  17. color: inherit;
  18. text-decoration: none;
  19. }
  20. a:focus {
  21. outline: 1px dotted grey;
  22. }
  23. body {
  24. background-image: url('../assets/bg.svg');
  25. background-position: center;
  26. background-repeat: no-repeat;
  27. background-size: cover;
  28. overflow-x: hidden;
  29. }
  30. .btn {
  31. @apply bg-primary;
  32. @apply text-white;
  33. @apply cursor-pointer;
  34. @apply py-4;
  35. @apply px-6;
  36. @apply font-semibold;
  37. }
  38. .btn:hover {
  39. @apply bg-primary_accent;
  40. }
  41. .btn:focus {
  42. @apply bg-primary_accent;
  43. }
  44. .checkbox {
  45. @apply leading-normal;
  46. @apply select-none;
  47. }
  48. .checkbox > input[type='checkbox'] {
  49. @apply absolute;
  50. @apply opacity-0;
  51. }
  52. .checkbox > label {
  53. @apply cursor-pointer;
  54. }
  55. .checkbox > label::before {
  56. /* @apply bg-grey-10; */
  57. @apply border-default;
  58. @apply rounded-sm;
  59. content: '';
  60. height: 1.5rem;
  61. width: 1.5rem;
  62. margin-right: 0.5rem;
  63. float: left;
  64. }
  65. .checkbox > label:hover::before {
  66. @apply border-primary;
  67. }
  68. .checkbox > input:focus + label::before {
  69. @apply border-primary;
  70. }
  71. .checkbox > input:checked + label::before {
  72. @apply bg-primary;
  73. @apply border-primary;
  74. background-image: url('../assets/lock.svg');
  75. background-position: center;
  76. background-size: 1.25rem;
  77. background-repeat: no-repeat;
  78. }
  79. .checkbox > input:disabled + label {
  80. cursor: auto;
  81. }
  82. .checkbox > input:disabled + label::before {
  83. @apply bg-primary;
  84. @apply border-primary;
  85. background-image: url('../assets/lock.svg');
  86. background-position: center;
  87. background-size: 1.25rem;
  88. background-repeat: no-repeat;
  89. cursor: auto;
  90. }
  91. details {
  92. overflow: hidden;
  93. }
  94. details > summary::marker {
  95. display: none;
  96. }
  97. details > summary > svg {
  98. transition: all 0.25s cubic-bezier(0.07, 0.95, 0, 1);
  99. }
  100. details[open] {
  101. overflow-y: auto;
  102. }
  103. details[open] > summary > svg {
  104. transform: rotate(90deg);
  105. }
  106. footer li a:hover {
  107. text-decoration: underline;
  108. }
  109. .feedback-link {
  110. background-color: #000;
  111. background-image: url('../assets/feedback.svg');
  112. background-position: 0.125rem 0.25rem;
  113. background-repeat: no-repeat;
  114. background-size: 1.125rem;
  115. color: #fff;
  116. display: block;
  117. font-size: 0.75rem;
  118. line-height: 0.75rem;
  119. padding: 0.375rem 0.375rem 0.375rem 1.25rem;
  120. text-indent: 0.125rem;
  121. white-space: nowrap;
  122. }
  123. .link-primary {
  124. @apply text-primary;
  125. }
  126. .link-primary:hover {
  127. @apply text-primary_accent;
  128. }
  129. .link-primary:focus {
  130. @apply text-primary_accent;
  131. }
  132. .main-header img {
  133. height: 32px;
  134. width: auto;
  135. }
  136. .main {
  137. display: flex;
  138. position: relative;
  139. max-width: 64rem;
  140. width: 100%;
  141. }
  142. .main > section {
  143. @apply bg-white;
  144. }
  145. #password-msg::after {
  146. content: '\200b';
  147. }
  148. progress {
  149. @apply bg-grey-30;
  150. @apply rounded-sm;
  151. @apply w-full;
  152. @apply h-1;
  153. }
  154. progress::-webkit-progress-bar {
  155. @apply bg-grey-30;
  156. @apply rounded-sm;
  157. @apply w-full;
  158. @apply h-1;
  159. }
  160. progress::-webkit-progress-value {
  161. /* stylelint-disable */
  162. background-image: -webkit-linear-gradient(
  163. -45deg,
  164. transparent 20%,
  165. rgb(255 255 255 / 40%) 20%,
  166. rgb(255 255 255 / 40%) 40%,
  167. transparent 40%,
  168. transparent 60%,
  169. rgb(255 255 255 / 40%) 60%,
  170. rgb(255 255 255 / 40%) 80%,
  171. transparent 80%
  172. ),
  173. -webkit-linear-gradient(left, var(--color-primary), var(--color-primary));
  174. /* stylelint-enable */
  175. border-radius: 2px;
  176. background-size: 21px 20px, 100% 100%, 100% 100%;
  177. }
  178. progress::-moz-progress-bar {
  179. /* stylelint-disable */
  180. background-image: -moz-linear-gradient(
  181. 135deg,
  182. transparent 20%,
  183. rgb(255 255 255 / 40%) 20%,
  184. rgb(255 255 255 / 40%) 40%,
  185. transparent 40%,
  186. transparent 60%,
  187. rgb(255 255 255 / 40%) 60%,
  188. rgb(255 255 255 / 40%) 80%,
  189. transparent 80%
  190. ),
  191. -moz-linear-gradient(left, var(--color-primary), var(--color-primary));
  192. /* stylelint-enable */
  193. border-radius: 2px;
  194. background-size: 21px 20px, 100% 100%, 100% 100%;
  195. animation: animate-stripes 1s linear infinite;
  196. }
  197. @keyframes animate-stripes {
  198. 100% {
  199. background-position: -21px 0;
  200. }
  201. }
  202. select {
  203. background-image: url('../assets/select-arrow.svg');
  204. background-position: calc(100% - 0.75rem);
  205. background-repeat: no-repeat;
  206. }
  207. @screen md {
  208. .main-header img {
  209. height: 48px;
  210. width: auto;
  211. }
  212. .main {
  213. @apply flex-1;
  214. @apply self-center;
  215. @apply items-center;
  216. @apply m-auto;
  217. @apply py-8;
  218. max-height: 42rem;
  219. width: calc(100% - 3rem);
  220. }
  221. }
  222. @screen dark {
  223. body {
  224. @apply text-grey-10;
  225. background-image: unset;
  226. }
  227. .btn {
  228. @apply bg-primary;
  229. @apply text-white;
  230. }
  231. .btn:hover {
  232. @apply bg-primary_accent;
  233. }
  234. .btn:focus {
  235. @apply bg-primary_accent;
  236. }
  237. .link-primary {
  238. @apply text-primary;
  239. }
  240. .link-primary:hover {
  241. @apply text-primary_accent;
  242. }
  243. .link-primary:focus {
  244. @apply text-primary_accent;
  245. }
  246. .main > section {
  247. @apply bg-grey-90;
  248. }
  249. @screen md {
  250. .main > section {
  251. @apply border-default;
  252. @apply border-grey-80;
  253. }
  254. }
  255. }
  256. @tailwind utilities;
  257. @responsive {
  258. .shadow-light {
  259. box-shadow: 0 0 8px 0 rgb(12 12 13 / 10%);
  260. }
  261. .shadow-big {
  262. box-shadow: 0 12px 18px 2px rgb(34 0 51 / 4%),
  263. 0 6px 22px 4px rgb(7 48 114 / 12%), 0 6px 10px -4px rgb(14 13 26 / 12%);
  264. }
  265. }
  266. @variants focus {
  267. .outline {
  268. outline: 1px dotted grey;
  269. }
  270. }
  271. .word-break-all {
  272. word-break: break-all;
  273. line-break: anywhere;
  274. }
  275. .signin {
  276. backface-visibility: hidden;
  277. border-radius: 6px;
  278. transition-property: transform, background-color;
  279. transition-duration: 250ms;
  280. transition-timing-function: cubic-bezier(0.07, 0.95, 0, 1);
  281. }
  282. .signin:hover,
  283. .signin:focus {
  284. transform: scale(1.0625);
  285. }
  286. .signin:hover:active {
  287. transform: scale(0.9375);
  288. }
  289. /* begin signin button color experiment */
  290. .white-primary {
  291. @apply border-primary;
  292. @apply border-2;
  293. @apply text-primary;
  294. }
  295. .white-primary:hover,
  296. .white-primary:focus {
  297. @apply bg-primary;
  298. @apply text-white;
  299. }
  300. .primary {
  301. @apply bg-primary;
  302. @apply text-white;
  303. }
  304. .white-violet {
  305. @apply border-violet;
  306. @apply border-2;
  307. @apply text-violet;
  308. }
  309. .white-violet:hover,
  310. .white-violet:focus {
  311. @apply bg-violet;
  312. @apply text-white;
  313. background-image: var(--violet-gradient);
  314. }
  315. .violet {
  316. @apply bg-violet;
  317. @apply text-white;
  318. }
  319. .violet:hover,
  320. .violet:focus {
  321. background-image: var(--violet-gradient);
  322. }
  323. /* end signin button color experiment */