|
3 | 3 | line-height: 1.5; |
4 | 4 | font-weight: 400; |
5 | 5 |
|
6 | | - color-scheme: light dark; |
7 | | - color: rgba(255, 255, 255, 0.87); |
8 | | - background-color: #242424; |
| 6 | + color: #222; |
| 7 | + background-color: #ffffff; |
9 | 8 |
|
10 | 9 | font-synthesis: none; |
11 | 10 | text-rendering: optimizeLegibility; |
|
17 | 16 | body { |
18 | 17 | margin: 0; |
19 | 18 | display: flex; |
20 | | - place-items: center; |
21 | | - min-width: 320px; |
| 19 | + align-items: center; |
22 | 20 | min-height: 100vh; |
23 | 21 | } |
24 | 22 |
|
25 | | -a { |
26 | | - font-weight: 500; |
27 | | - color: #646cff; |
28 | | - text-decoration: inherit; |
29 | | -} |
30 | | -a:hover { |
31 | | - color: #535bf2; |
| 23 | +#app { |
| 24 | + max-width: 1280px; |
| 25 | + margin: 0 auto; |
| 26 | + text-align: center; |
32 | 27 | } |
33 | 28 |
|
34 | | -h1 { |
35 | | - font-size: 3.2em; |
36 | | - line-height: 1.1; |
| 29 | +img { |
| 30 | + margin-bottom: 1.5rem; |
37 | 31 | } |
38 | 32 |
|
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; |
| 33 | +img:hover { |
| 34 | + filter: drop-shadow(0 0 2em #673ab8aa); |
56 | 35 | } |
57 | 36 |
|
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 | | - } |
| 37 | +section { |
| 38 | + margin-top: 5rem; |
| 39 | + display: grid; |
| 40 | + grid-template-columns: repeat(3, 1fr); |
| 41 | + column-gap: 1.5rem; |
69 | 42 | } |
70 | 43 |
|
71 | | -#app { |
72 | | - max-width: 1280px; |
73 | | - margin: 0 auto; |
74 | | - padding: 2rem; |
75 | | - text-align: center; |
| 44 | +.resource { |
| 45 | + padding: 0.75rem 1.5rem; |
| 46 | + border-radius: 0.5rem; |
| 47 | + text-align: left; |
| 48 | + text-decoration: none; |
| 49 | + color: #222; |
| 50 | + background-color: #f1f1f1; |
| 51 | + border: 1px solid transparent; |
76 | 52 | } |
77 | 53 |
|
78 | | -.logo { |
79 | | - height: 6em; |
80 | | - padding: 1.5em; |
81 | | -} |
82 | | -.logo:hover { |
83 | | - filter: drop-shadow(0 0 2em #646cffaa); |
84 | | -} |
85 | | -.logo.preact:hover { |
86 | | - filter: drop-shadow(0 0 2em #673ab8aa); |
| 54 | +.resource:hover { |
| 55 | + border: 1px solid #000; |
| 56 | + box-shadow: 0 25px 50px -12px #673ab888; |
87 | 57 | } |
88 | 58 |
|
89 | | -.card { |
90 | | - padding: 2em; |
| 59 | +@media (max-width: 639px) { |
| 60 | + #app { |
| 61 | + margin: 2rem; |
| 62 | + } |
| 63 | + section { |
| 64 | + margin-top: 5rem; |
| 65 | + grid-template-columns: 1fr; |
| 66 | + row-gap: 1rem; |
| 67 | + } |
91 | 68 | } |
92 | 69 |
|
93 | | -.read-the-docs { |
94 | | - color: #888; |
| 70 | +@media (prefers-color-scheme: dark) { |
| 71 | + :root { |
| 72 | + color: #ccc; |
| 73 | + background-color: #1a1a1a; |
| 74 | + } |
| 75 | + .resource { |
| 76 | + color: #ccc; |
| 77 | + background-color: #161616; |
| 78 | + } |
| 79 | + .resource:hover { |
| 80 | + border: 1px solid #bbb; |
| 81 | + } |
95 | 82 | } |
0 commit comments