app.css 1.8 KB

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