main.css 6.2 KB

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