|
1 | 1 | .footer { |
2 | | - border-top: 1px solid var(--ifm-color-emphasis-200); |
3 | | - background: #ffffff; |
| 2 | + --footer-bg: var(--ifm-color-emphasis-300); |
| 3 | + --footer-text: var(--ifm-color-emphasis-800); |
| 4 | + --footer-link: var(--ifm-color-emphasis-800); |
| 5 | + --footer-gap: 2rem; |
| 6 | + --footer-radius: 1rem; |
| 7 | + --footer-padding: 2rem 1.5rem; |
| 8 | + margin: 1rem; |
| 9 | + border-radius: var(--footer-radius); |
| 10 | + background: var(--footer-bg); |
| 11 | +} |
| 12 | + |
| 13 | +:global([data-theme='dark']) .footer { |
| 14 | + --footer-bg: var(--ifm-color-emphasis-100); |
| 15 | + --footer-text: var(--ifm-color-emphasis-900); |
| 16 | + --footer-link: var(--ifm-color-emphasis-900); |
| 17 | +} |
| 18 | + |
| 19 | +@media (min-width: 997px) { |
| 20 | + .footer { |
| 21 | + margin: 2rem; |
| 22 | + } |
4 | 23 | } |
5 | 24 |
|
6 | 25 | .inner { |
7 | | - display: flex; |
8 | | - align-items: center; |
9 | | - justify-content: space-between; |
10 | | - gap: 2rem; |
11 | | - max-width: 1200px; |
12 | | - margin: 0 auto; |
13 | | - padding: 2rem 1.5rem; |
| 26 | + display: flex; |
| 27 | + align-items: center; |
| 28 | + justify-content: space-between; |
| 29 | + padding: var(--footer-padding); |
14 | 30 | } |
15 | 31 |
|
16 | | -.left { |
17 | | - display: flex; |
18 | | - align-items: center; |
19 | | - gap: 2rem; |
20 | | - flex-wrap: wrap; |
| 32 | +.group { |
| 33 | + display: flex; |
| 34 | + align-items: center; |
| 35 | + gap: calc(var(--footer-gap) * 2); |
| 36 | + flex-wrap: wrap; |
21 | 37 | } |
22 | 38 |
|
23 | 39 | .social { |
24 | | - display: flex; |
25 | | - gap: 0.75rem; |
| 40 | + display: flex; |
| 41 | + gap: 0.75rem; |
26 | 42 | } |
27 | 43 |
|
28 | 44 | .iconLink { |
29 | | - display: inline-flex; |
30 | | - align-items: center; |
31 | | - justify-content: center; |
32 | | - width: 36px; |
33 | | - height: 36px; |
34 | | - border-radius: 10px; |
35 | | - background: #e9edf3; |
36 | | - color: #445066; |
| 45 | + display: inline-flex; |
| 46 | + align-items: center; |
| 47 | + justify-content: center; |
| 48 | + width: 2rem; |
| 49 | + height: 2rem; |
| 50 | + border-radius: 0.5rem; |
| 51 | + color: var(--footer-text); |
37 | 52 | } |
38 | 53 |
|
39 | 54 | .icon { |
40 | | - font-size: 18px; |
41 | | - display: block; |
42 | | - color: currentColor; |
| 55 | + font-size: 18px; |
| 56 | + display: block; |
| 57 | + color: currentColor; |
43 | 58 | } |
44 | 59 |
|
45 | 60 | .nav { |
46 | | - display: flex; |
47 | | - gap: 1.5rem; |
48 | | - flex-wrap: wrap; |
| 61 | + display: flex; |
| 62 | + gap: 1.5rem; |
| 63 | + flex-wrap: wrap; |
49 | 64 | } |
50 | 65 |
|
51 | 66 | .navLink { |
52 | | - color: #445066; |
53 | | - font-weight: 600; |
54 | | - text-decoration: none; |
| 67 | + color: var(--footer-link); |
| 68 | + font-weight: 600; |
| 69 | + text-decoration: none; |
55 | 70 | } |
56 | 71 |
|
57 | | -.right { |
58 | | - display: flex; |
59 | | - align-items: center; |
60 | | - gap: 2rem; |
61 | | - flex-wrap: wrap; |
62 | | -} |
63 | | - |
64 | | -.copy { |
65 | | - color: #445066; |
66 | | - font-weight: 600; |
| 72 | +.copyright { |
| 73 | + color: var(--footer-link); |
| 74 | + font-weight: 600; |
| 75 | + margin-left: var(--footer-gap); |
67 | 76 | } |
68 | 77 |
|
69 | 78 | @media (max-width: 900px) { |
70 | | - .inner { |
71 | | - flex-direction: column; |
72 | | - align-items: flex-start; |
73 | | - } |
| 79 | + .inner { |
| 80 | + flex-direction: column; |
| 81 | + align-items: flex-start; |
| 82 | + } |
| 83 | + |
| 84 | + .group { |
| 85 | + gap: 1.5rem; |
| 86 | + } |
| 87 | + |
| 88 | + .copyright { |
| 89 | + margin-left: 0; |
| 90 | + } |
74 | 91 | } |
0 commit comments