app.css 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. @import '@fontsource/fira-mono';
  2. :root {
  3. --font-body: 'Roboto', Arial, AppleGothic, serif;
  4. --font-mono: 'Fira Mono', monospace;
  5. --color-bg-0: rgb(202, 216, 228);
  6. --color-bg-1: hsl(209, 36%, 86%);
  7. --color-bg-2: hsl(224, 44%, 95%);
  8. --color-theme-1: #4b6584;
  9. --color-theme-2: #4075a6;
  10. --color-text: rgba(0, 0, 0, 0.7);
  11. --column-width: 42rem;
  12. --column-margin-top: 4rem;
  13. font-family: var(--font-body);
  14. color: var(--color-text);
  15. }
  16. body {
  17. min-height: 100vh;
  18. margin: 0;
  19. background-attachment: fixed;
  20. background-color: var(--color-bg-1);
  21. background-size: 100vw 100vh;
  22. background-image:
  23. radial-gradient(50% 50% at 50% 50%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 100%),
  24. linear-gradient(180deg, var(--color-bg-0) 0%, var(--color-bg-1) 15%, var(--color-bg-2) 50%);
  25. }
  26. h1,
  27. h2,
  28. p {
  29. font-weight: 400;
  30. }
  31. p {
  32. line-height: 1.5;
  33. }
  34. a {
  35. color: var(--color-theme-1);
  36. text-decoration: none;
  37. }
  38. a:hover {
  39. text-decoration: underline;
  40. }
  41. h1 {
  42. font-size: 2rem;
  43. text-align: center;
  44. }
  45. h2 {
  46. font-size: 1rem;
  47. }
  48. pre {
  49. font-size: 16px;
  50. font-family: var(--font-mono);
  51. background-color: rgba(255, 255, 255, 0.45);
  52. border-radius: 3px;
  53. box-shadow: 2px 2px 6px rgb(255 255 255 / 25%);
  54. padding: 0.5em;
  55. overflow-x: auto;
  56. color: var(--color-text);
  57. }
  58. .text-column {
  59. display: flex;
  60. max-width: 48rem;
  61. flex: 0.6;
  62. flex-direction: column;
  63. justify-content: center;
  64. margin: 0 auto;
  65. }
  66. input,
  67. button {
  68. font-size: inherit;
  69. font-family: inherit;
  70. }
  71. button:focus:not(:focus-visible) {
  72. outline: none;
  73. }
  74. @media (min-width: 720px) {
  75. h1 {
  76. font-size: 2.4rem;
  77. }
  78. }
  79. .visually-hidden {
  80. border: 0;
  81. clip: rect(0 0 0 0);
  82. height: auto;
  83. margin: 0;
  84. overflow: hidden;
  85. padding: 0;
  86. position: absolute;
  87. width: 1px;
  88. white-space: nowrap;
  89. }