|
| 1 | +:root { |
| 2 | + font-family: system-ui, Avenir, Helvetica, Arial, sans-serif; |
| 3 | + line-height: 1.5; |
| 4 | + font-weight: 400; |
| 5 | + |
| 6 | + color-scheme: light dark; |
| 7 | + color: rgba(255, 255, 255, 0.87); |
| 8 | + background-color: #242424; |
| 9 | + |
| 10 | + font-synthesis: none; |
| 11 | + text-rendering: optimizeLegibility; |
| 12 | + -webkit-font-smoothing: antialiased; |
| 13 | + -moz-osx-font-smoothing: grayscale; |
| 14 | +} |
| 15 | + |
| 16 | +a { |
| 17 | + font-weight: 500; |
| 18 | + color: #646cff; |
| 19 | + text-decoration: inherit; |
| 20 | +} |
| 21 | +a:hover { |
| 22 | + color: #535bf2; |
| 23 | +} |
| 24 | + |
| 25 | +body { |
| 26 | + margin: 0; |
| 27 | + display: flex; |
| 28 | + flex-flow: column; |
| 29 | + place-items: center; |
| 30 | + min-width: 320px; |
| 31 | + min-height: 100vh; |
| 32 | +} |
| 33 | + |
| 34 | +h1 { |
| 35 | + font-size: 3.2em; |
| 36 | + line-height: 1.1; |
| 37 | +} |
| 38 | + |
| 39 | +button { |
| 40 | + border-radius: 8px; |
| 41 | + border: 1px solid transparent; |
| 42 | + padding: 0.6em 1.2em; |
| 43 | + font-size: 1em; |
| 44 | + font-weight: 500; |
| 45 | + font-family: inherit; |
| 46 | + background-color: #1a1a1a; |
| 47 | + cursor: pointer; |
| 48 | + transition: border-color 0.25s; |
| 49 | +} |
| 50 | +button:hover { |
| 51 | + border-color: #646cff; |
| 52 | +} |
| 53 | +button:focus, |
| 54 | +button:focus-visible { |
| 55 | + outline: 4px auto -webkit-focus-ring-color; |
| 56 | +} |
| 57 | + |
| 58 | +@media (prefers-color-scheme: light) { |
| 59 | + :root { |
| 60 | + color: #213547; |
| 61 | + background-color: #ffffff; |
| 62 | + } |
| 63 | + a:hover { |
| 64 | + color: #747bff; |
| 65 | + } |
| 66 | + button { |
| 67 | + background-color: #f9f9f9; |
| 68 | + } |
| 69 | +} |
| 70 | + |
| 71 | +#root { |
| 72 | + max-width: 1280px; |
| 73 | + margin: 0 auto; |
| 74 | + padding: 2rem; |
| 75 | + text-align: center; |
| 76 | +} |
| 77 | + |
| 78 | +.logo { |
| 79 | + height: 6em; |
| 80 | + padding: 1.5em; |
| 81 | + will-change: filter; |
| 82 | + transition: filter 300ms; |
| 83 | +} |
| 84 | +.logo:hover { |
| 85 | + filter: drop-shadow(0 0 2em #646cffaa); |
| 86 | +} |
| 87 | +.logo.react:hover { |
| 88 | + filter: drop-shadow(0 0 2em #61dafbaa); |
| 89 | +} |
| 90 | + |
| 91 | +@keyframes logo-spin { |
| 92 | + from { |
| 93 | + transform: rotate(0deg); |
| 94 | + } |
| 95 | + to { |
| 96 | + transform: rotate(360deg); |
| 97 | + } |
| 98 | +} |
| 99 | + |
| 100 | +@media (prefers-reduced-motion: no-preference) { |
| 101 | + a:nth-of-type(2) .logo { |
| 102 | + animation: logo-spin infinite 20s linear; |
| 103 | + } |
| 104 | +} |
| 105 | + |
| 106 | +.card { |
| 107 | + padding: 1rem; |
| 108 | +} |
| 109 | + |
| 110 | +.read-the-docs { |
| 111 | + color: #888; |
| 112 | + text-align: left; |
| 113 | +} |
| 114 | + |
| 115 | +.app { |
| 116 | + border: 1px solid #ccc; |
| 117 | +} |
0 commit comments