|
1 | 1 | .button-links, |
2 | | -.button-links > p { |
3 | | - display: flex; |
4 | | - justify-content: space-around; |
5 | | - align-content: center; |
6 | | - align-items: stretch; |
7 | | - flex-wrap: wrap; |
| 2 | +.button-links-outlined { |
| 3 | + max-width: 800px; |
| 4 | + margin: 48px auto 0 auto; |
8 | 5 | } |
9 | 6 |
|
10 | | -.button-links > p { |
11 | | - width: 100%; |
| 7 | +.button-links, |
| 8 | +.button-links > p, |
| 9 | +.button-links-outlined, |
| 10 | +.button-links-outlined > p { |
| 11 | + display: grid; |
| 12 | + grid-template-columns: 1fr 1fr; |
| 13 | + place-items: center; |
| 14 | + gap: 24px; |
| 15 | +} |
| 16 | + |
| 17 | +/* center when there's only one child */ |
| 18 | +.button-links:has(> :only-child), |
| 19 | +.button-links-outlined:has(> :only-child) { |
| 20 | + grid-template-columns: 1fr; |
| 21 | + justify-items: center; |
12 | 22 | margin: 0; |
| 23 | + max-width: 400px; |
| 24 | +} |
| 25 | + |
| 26 | +.button-links > p, |
| 27 | +.button-links-outlined > p { |
| 28 | + width: 100%; |
13 | 29 | } |
14 | 30 |
|
15 | 31 | .button-links a, |
16 | 32 | .button-links > p a, |
17 | 33 | .button-links a:link, |
18 | 34 | .button-links > p a:link, |
19 | 35 | .button-links a:visited, |
20 | | -.button-links > p a:visited { |
| 36 | +.button-links > p a:visited, |
| 37 | +.button-links-outlined a, |
| 38 | +.button-links-outlined > p a, |
| 39 | +.button-links-outlined a:link, |
| 40 | +.button-links-outlined > p a:link, |
| 41 | +.button-links-outlined a:visited, |
| 42 | +.button-links-outlined > p a:visited { |
| 43 | + @apply docsBodyText; |
21 | 44 | text-decoration: none; |
22 | | - box-sizing: content-box; |
23 | 45 | font-weight: 700; |
24 | | - color: var(--button-nav-fg); |
25 | | - background-color: var(--button-nav-bg); |
26 | 46 | border-radius: 9999px; |
27 | 47 | user-select: none; |
28 | | - padding: 20px 10%; |
29 | | - margin: 10px; |
30 | 48 | display: flex; |
31 | | - font-size: 20px; |
32 | 49 | flex: 0.5; |
33 | 50 | transition: none; |
34 | 51 | justify-content: center; |
35 | 52 | align-items: center; |
36 | 53 | text-align: center; |
37 | 54 | white-space: nowrap; |
| 55 | + max-width: 388px; |
| 56 | + width: 100%; |
| 57 | +} |
| 58 | + |
| 59 | +.button-links a, |
| 60 | +.button-links > p a, |
| 61 | +.button-links a:link, |
| 62 | +.button-links > p a:link, |
| 63 | +.button-links a:visited, |
| 64 | +.button-links > p a:visited { |
| 65 | + padding: 12px 10%; |
| 66 | + color: var(--button-nav-fg); |
| 67 | + background-color: var(--button-nav-bg); |
| 68 | +} |
| 69 | + |
| 70 | +.button-links-outlined a, |
| 71 | +.button-links-outlined > p a, |
| 72 | +.button-links-outlined a:link, |
| 73 | +.button-links-outlined > p a:link, |
| 74 | +.button-links-outlined a:visited, |
| 75 | +.button-links-outlined > p a:visited { |
| 76 | + padding: 8px 10%; |
| 77 | + color: var(--button-outlined-text); |
| 78 | + border: 2px solid var(--button-outlined-border); |
| 79 | + background: var(--button-outlined-bg); |
38 | 80 | } |
39 | 81 |
|
40 | 82 | @media screen and (max-width: 1080px) { |
41 | | - .button-links a, |
42 | | - .button-links > p a, |
43 | | - .button-links a:link, |
44 | | - .button-links > p a:link { |
45 | | - box-sizing: border-box; |
46 | | - margin: 10px 6px; |
47 | | - flex: 0 0 90%; |
48 | | - width: 100%; |
49 | | - white-space: normal; |
| 83 | + .button-links, |
| 84 | + .button-links > p, |
| 85 | + .button-links-outlined, |
| 86 | + .button-links-outlined > p { |
| 87 | + grid-template-columns: 1fr; |
50 | 88 | } |
51 | 89 | } |
52 | 90 |
|
53 | | -@media screen and (max-width: 400px) { |
| 91 | +@media screen and (max-width: 1080px) { |
54 | 92 | .button-links a, |
55 | 93 | .button-links > p a, |
56 | 94 | .button-links a:link, |
57 | | - .button-links > p a:link { |
58 | | - box-sizing: border-box; |
59 | | - margin: 10px 6px; |
60 | | - flex: 0 0 100%; |
| 95 | + .button-links > p a:link, |
| 96 | + .button-links-outlined a, |
| 97 | + .button-links-outlined > p a, |
| 98 | + .button-links-outlined a:link, |
| 99 | + .button-links-outlined > p a:link { |
61 | 100 | width: 100%; |
62 | 101 | white-space: normal; |
63 | 102 | } |
|
71 | 110 | color: var(--button-nav-hover-fg); |
72 | 111 | background: var(--button-nav-hover-bg); |
73 | 112 | } |
| 113 | + |
| 114 | +.button-links-outlined a:hover, |
| 115 | +.button-links-outlined > p a:hover, |
| 116 | +.button-links-outlined a:visited:hover, |
| 117 | +.button-links-outlined > p a:visited:hover { |
| 118 | + text-decoration: none; |
| 119 | + color: var(--button-outlined-hover-text); |
| 120 | + border: 2px solid var(--button-outlined-hover-border); |
| 121 | +} |
0 commit comments