|
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; |
| 5 | +} |
| 6 | + |
| 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; |
8 | 15 | } |
9 | 16 |
|
10 | | -.button-links > p { |
| 17 | +.button-links > p, |
| 18 | +.button-links-outlined > p { |
11 | 19 | width: 100%; |
12 | | - margin: 0; |
13 | 20 | } |
14 | 21 |
|
15 | 22 | .button-links a, |
16 | 23 | .button-links > p a, |
17 | 24 | .button-links a:link, |
18 | 25 | .button-links > p a:link, |
19 | 26 | .button-links a:visited, |
20 | | -.button-links > p a:visited { |
| 27 | +.button-links > p a:visited, |
| 28 | +.button-links-outlined a, |
| 29 | +.button-links-outlined > p a, |
| 30 | +.button-links-outlined a:link, |
| 31 | +.button-links-outlined > p a:link, |
| 32 | +.button-links-outlined a:visited, |
| 33 | +.button-links-outlined > p a:visited { |
| 34 | + @apply docsBodyText; |
21 | 35 | text-decoration: none; |
22 | | - box-sizing: content-box; |
23 | 36 | font-weight: 700; |
24 | | - color: var(--button-nav-fg); |
25 | | - background-color: var(--button-nav-bg); |
26 | 37 | border-radius: 9999px; |
27 | 38 | user-select: none; |
28 | | - padding: 20px 10%; |
29 | | - margin: 10px; |
30 | 39 | display: flex; |
31 | | - font-size: 20px; |
32 | 40 | flex: 0.5; |
33 | 41 | transition: none; |
34 | 42 | justify-content: center; |
35 | 43 | align-items: center; |
36 | 44 | text-align: center; |
37 | 45 | white-space: nowrap; |
| 46 | + max-width: 388px; |
| 47 | + width: 100%; |
| 48 | +} |
| 49 | + |
| 50 | +.button-links a, |
| 51 | +.button-links > p a, |
| 52 | +.button-links a:link, |
| 53 | +.button-links > p a:link, |
| 54 | +.button-links a:visited, |
| 55 | +.button-links > p a:visited { |
| 56 | + padding: 12px 10%; |
| 57 | + color: var(--button-nav-fg); |
| 58 | + background-color: var(--button-nav-bg); |
| 59 | +} |
| 60 | + |
| 61 | +.button-links-outlined a, |
| 62 | +.button-links-outlined > p a, |
| 63 | +.button-links-outlined a:link, |
| 64 | +.button-links-outlined > p a:link, |
| 65 | +.button-links-outlined a:visited, |
| 66 | +.button-links-outlined > p a:visited { |
| 67 | + padding: 8px 10%; |
| 68 | + color: var(--button-outlined-text); |
| 69 | + border: 2px solid var(--button-outlined-border); |
| 70 | + background: var(--button-outlined-bg); |
38 | 71 | } |
39 | 72 |
|
40 | 73 | @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; |
| 74 | + .button-links, |
| 75 | + .button-links > p, |
| 76 | + .button-links-outlined, |
| 77 | + .button-links-outlined > p { |
| 78 | + grid-template-columns: 1fr; |
50 | 79 | } |
51 | 80 | } |
52 | 81 |
|
53 | | -@media screen and (max-width: 400px) { |
| 82 | +@media screen and (max-width: 1080px) { |
54 | 83 | .button-links a, |
55 | 84 | .button-links > p a, |
56 | 85 | .button-links a:link, |
57 | | - .button-links > p a:link { |
58 | | - box-sizing: border-box; |
59 | | - margin: 10px 6px; |
60 | | - flex: 0 0 100%; |
| 86 | + .button-links > p a:link, |
| 87 | + .button-links-outlined a, |
| 88 | + .button-links-outlined > p a, |
| 89 | + .button-links-outlined a:link, |
| 90 | + .button-links-outlined > p a:link { |
61 | 91 | width: 100%; |
62 | 92 | white-space: normal; |
63 | 93 | } |
|
71 | 101 | color: var(--button-nav-hover-fg); |
72 | 102 | background: var(--button-nav-hover-bg); |
73 | 103 | } |
| 104 | + |
| 105 | +.button-links-outlined a:hover, |
| 106 | +.button-links-outlined > p a:hover, |
| 107 | +.button-links-outlined a:visited:hover, |
| 108 | +.button-links-outlined > p a:visited:hover { |
| 109 | + text-decoration: none; |
| 110 | + color: var(--button-outlined-hover-text); |
| 111 | + border: 2px solid var(--button-outlined-hover-border); |
| 112 | +} |
0 commit comments