|
| 1 | +@import '@fontsource/fira-mono'; |
| 2 | + |
| 3 | +:root { |
| 4 | + font-family: Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, |
| 5 | + Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; |
| 6 | + --font-mono: 'Fira Mono', monospace; |
| 7 | + --pure-white: #ffffff; |
| 8 | + --primary-color: #b9c6d2; |
| 9 | + --secondary-color: #d0dde9; |
| 10 | + --tertiary-color: #edf0f8; |
| 11 | + --accent-color: #ff3e00; |
| 12 | + --heading-color: rgba(0, 0, 0, 0.7); |
| 13 | + --text-color: #444444; |
| 14 | + --background-without-opacity: rgba(255, 255, 255, 0.7); |
| 15 | + --column-width: 42rem; |
| 16 | + --column-margin-top: 4rem; |
| 17 | +} |
| 18 | + |
| 19 | +body { |
| 20 | + min-height: 100vh; |
| 21 | + margin: 0; |
| 22 | + background-color: var(--primary-color); |
| 23 | + background: linear-gradient( |
| 24 | + 180deg, |
| 25 | + var(--primary-color) 0%, |
| 26 | + var(--secondary-color) 10.45%, |
| 27 | + var(--tertiary-color) 41.35% |
| 28 | + ); |
| 29 | +} |
| 30 | + |
| 31 | +body::before { |
| 32 | + content: ''; |
| 33 | + width: 80vw; |
| 34 | + height: 100vh; |
| 35 | + position: absolute; |
| 36 | + top: 0; |
| 37 | + left: 10vw; |
| 38 | + z-index: -1; |
| 39 | + background: radial-gradient( |
| 40 | + 50% 50% at 50% 50%, |
| 41 | + var(--pure-white) 0%, |
| 42 | + rgba(255, 255, 255, 0) 100% |
| 43 | + ); |
| 44 | + opacity: 0.05; |
| 45 | +} |
| 46 | + |
| 47 | +#svelte { |
| 48 | + min-height: 100vh; |
| 49 | + display: flex; |
| 50 | + flex-direction: column; |
| 51 | +} |
| 52 | + |
| 53 | +h1, |
| 54 | +h2, |
| 55 | +p { |
| 56 | + font-weight: 400; |
| 57 | + color: var(--heading-color); |
| 58 | +} |
| 59 | + |
| 60 | +p { |
| 61 | + line-height: 1.5; |
| 62 | +} |
| 63 | + |
| 64 | +a { |
| 65 | + color: var(--accent-color); |
| 66 | + text-decoration: none; |
| 67 | +} |
| 68 | + |
| 69 | +a:hover { |
| 70 | + text-decoration: underline; |
| 71 | +} |
| 72 | + |
| 73 | +h1 { |
| 74 | + font-size: 2rem; |
| 75 | + text-align: center; |
| 76 | +} |
| 77 | + |
| 78 | +h2 { |
| 79 | + font-size: 1rem; |
| 80 | +} |
| 81 | + |
| 82 | +pre { |
| 83 | + font-size: 16px; |
| 84 | + font-family: var(--font-mono); |
| 85 | + background-color: rgba(255, 255, 255, 0.45); |
| 86 | + border-radius: 3px; |
| 87 | + box-shadow: 2px 2px 6px rgb(255 255 255 / 25%); |
| 88 | + padding: 0.5em; |
| 89 | + overflow-x: auto; |
| 90 | + color: var(--text-color); |
| 91 | +} |
| 92 | + |
| 93 | +input, |
| 94 | +button { |
| 95 | + font-size: inherit; |
| 96 | + font-family: inherit; |
| 97 | +} |
| 98 | + |
| 99 | +button:focus:not(:focus-visible) { |
| 100 | + outline: none; |
| 101 | +} |
| 102 | + |
| 103 | +@media (min-width: 720px) { |
| 104 | + h1 { |
| 105 | + font-size: 2.4rem; |
| 106 | + } |
| 107 | +} |
0 commit comments