|
15 | 15 |
|
16 | 16 | :root, |
17 | 17 | [data-bs-theme="light"] { |
| 18 | + --restish-sponsor-height: 3.5rem; |
18 | 19 | --restish-pink: #ff4dbd; |
19 | 20 | --restish-teal: #2dd4bf; |
20 | 21 | --restish-amber: #fbbf24; |
|
103 | 104 | box-shadow: 0 1px 0 rgba(23, 21, 17, 0.08); |
104 | 105 | } |
105 | 106 |
|
| 107 | +.restish-sponsor { |
| 108 | + background: linear-gradient(117deg, #377fea 0%, #6937ea 100%); |
| 109 | + color: #fff; |
| 110 | +} |
| 111 | + |
| 112 | +.restish-sponsor__link { |
| 113 | + display: flex; |
| 114 | + align-items: center; |
| 115 | + gap: 1rem; |
| 116 | + width: calc(100% - 2rem); |
| 117 | + max-width: 86rem; |
| 118 | + min-height: var(--restish-sponsor-height); |
| 119 | + margin: 0 auto; |
| 120 | + padding: 0.65rem 0; |
| 121 | + color: #fff; |
| 122 | + text-decoration: none; |
| 123 | +} |
| 124 | + |
| 125 | +.restish-sponsor__link:hover, |
| 126 | +.restish-sponsor__link:focus { |
| 127 | + color: #fff; |
| 128 | + text-decoration: none; |
| 129 | +} |
| 130 | + |
| 131 | +.restish-sponsor__link:focus-visible { |
| 132 | + outline: 2px solid #fff; |
| 133 | + outline-offset: -3px; |
| 134 | +} |
| 135 | + |
| 136 | +.restish-sponsor__label { |
| 137 | + flex: 0 0 auto; |
| 138 | + padding: 0.2rem 0.45rem; |
| 139 | + border: 1px solid rgba(255, 255, 255, 0.55); |
| 140 | + border-radius: 999px; |
| 141 | + font-size: 0.7rem; |
| 142 | + font-weight: 700; |
| 143 | + letter-spacing: 0.06em; |
| 144 | + line-height: 1; |
| 145 | + text-transform: uppercase; |
| 146 | +} |
| 147 | + |
| 148 | +.restish-sponsor__logo { |
| 149 | + flex: 0 0 auto; |
| 150 | + width: 7.5rem; |
| 151 | + height: auto; |
| 152 | +} |
| 153 | + |
| 154 | +.restish-sponsor__copy { |
| 155 | + display: flex; |
| 156 | + flex: 1 1 auto; |
| 157 | + flex-direction: column; |
| 158 | + min-width: 0; |
| 159 | + font-size: 0.82rem; |
| 160 | + line-height: 1.25; |
| 161 | +} |
| 162 | + |
| 163 | +.restish-sponsor__copy strong { |
| 164 | + font-size: 0.95rem; |
| 165 | +} |
| 166 | + |
| 167 | +.restish-sponsor__cta { |
| 168 | + flex: 0 0 auto; |
| 169 | + font-size: 0.82rem; |
| 170 | + font-weight: 700; |
| 171 | + white-space: nowrap; |
| 172 | +} |
| 173 | + |
| 174 | +@media (min-width: 768px) { |
| 175 | + .restish-sponsor { |
| 176 | + position: fixed; |
| 177 | + top: 4rem; |
| 178 | + left: 0; |
| 179 | + z-index: 31; |
| 180 | + width: 100%; |
| 181 | + min-height: var(--restish-sponsor-height); |
| 182 | + } |
| 183 | + |
| 184 | + .td-404 main, |
| 185 | + .td-main main { |
| 186 | + padding-top: calc(var(--td-main-padding-top) + 4rem + var(--restish-sponsor-height)); |
| 187 | + } |
| 188 | + |
| 189 | + .td-sidebar { |
| 190 | + margin-top: calc(4rem + var(--restish-sponsor-height)); |
| 191 | + } |
| 192 | + |
| 193 | + .td-sidebar__inner { |
| 194 | + top: calc(4rem + var(--restish-sponsor-height)); |
| 195 | + } |
| 196 | + |
| 197 | + .td-sidebar-toc { |
| 198 | + top: calc(4rem + var(--restish-sponsor-height)); |
| 199 | + height: calc(100vh - 4rem - var(--restish-sponsor-height)); |
| 200 | + margin-top: calc(4rem + var(--restish-sponsor-height)); |
| 201 | + } |
| 202 | + |
| 203 | +} |
| 204 | + |
| 205 | +@media (max-width: 767.98px) { |
| 206 | + .restish-sponsor__link { |
| 207 | + gap: 0.7rem; |
| 208 | + min-height: 3.5rem; |
| 209 | + } |
| 210 | + |
| 211 | + .restish-sponsor__label, |
| 212 | + .restish-sponsor__copy > span, |
| 213 | + .restish-sponsor__cta { |
| 214 | + display: none; |
| 215 | + } |
| 216 | + |
| 217 | + .restish-sponsor__logo { |
| 218 | + width: 6.5rem; |
| 219 | + } |
| 220 | + |
| 221 | + .restish-sponsor__copy strong { |
| 222 | + font-size: 0.82rem; |
| 223 | + } |
| 224 | +} |
| 225 | + |
106 | 226 | .td-content a { |
107 | 227 | color: var(--restish-link-color); |
108 | 228 | text-decoration-color: rgba(255, 95, 135, 0.35); |
@@ -2538,6 +2658,21 @@ body.td-home .td-default main > section.restish-hero:first-of-type { |
2538 | 2658 | padding: clamp(3.75rem, 7vw, 5.75rem) clamp(1rem, 2vw, 1.75rem) clamp(1rem, 2vw, 1.75rem); |
2539 | 2659 | } |
2540 | 2660 |
|
| 2661 | +@media (min-width: 768px) { |
| 2662 | + body.td-home .td-default main > section.restish-hero:first-of-type { |
| 2663 | + padding-top: calc(clamp(3.75rem, 7vw, 5.75rem) + var(--restish-sponsor-height)); |
| 2664 | + } |
| 2665 | + |
| 2666 | + .td-content h1[id], |
| 2667 | + .td-content h2[id], |
| 2668 | + .td-content h3[id], |
| 2669 | + .td-content h4[id], |
| 2670 | + .td-content h5[id], |
| 2671 | + .td-content h6[id] { |
| 2672 | + scroll-margin-top: calc(5.5rem + var(--restish-sponsor-height)); |
| 2673 | + } |
| 2674 | +} |
| 2675 | + |
2541 | 2676 | .restish-hero__shell { |
2542 | 2677 | position: relative; |
2543 | 2678 | overflow: hidden; |
|
0 commit comments