|
128 | 128 | display: none; /*changed via JS once ad is loaded*/ |
129 | 129 | flex-direction: column; |
130 | 130 | text-decoration: none !important; |
| 131 | + overflow: hidden; |
131 | 132 | backdrop-filter: blur(6px); |
132 | 133 | } |
133 | 134 | .sidesponsor img { |
|
159 | 160 | overflow: hidden; |
160 | 161 | } |
161 | 162 | .sidesponsor .sponsor-title{ |
162 | | - margin-top: 5px; |
163 | | - margin-bottom: 5px; |
| 163 | + margin-top: 3px; |
| 164 | + margin-bottom: 3px; |
164 | 165 | margin-left: 15px; |
165 | 166 | margin-right: 15px; |
166 | 167 | font-weight: 800; |
167 | 168 | font-size: 2rem; |
| 169 | + line-height: 1.08; |
168 | 170 | color: var(--sponsor-fg); |
169 | 171 | } |
170 | 172 | .sidesponsor:hover .sponsor-title{ |
|
175 | 177 | font-size: 1.55rem; |
176 | 178 | line-height: 1.15; |
177 | 179 | overflow-wrap: anywhere; |
| 180 | + animation: sponsorTextReveal .3s ease .12s both; |
178 | 181 | } |
179 | 182 | .sidesponsor .sponsor-description{ |
180 | | - display:none; |
| 183 | + display: block; |
181 | 184 | margin-top: 5px; |
182 | 185 | margin-bottom: 15px; |
183 | 186 | margin-left: 15px; |
184 | 187 | margin-right: 15px; |
185 | 188 | color: var(--sponsor-fg); |
186 | | - transition-property: all; |
187 | | - transition-timing-function: cubic-bezier(.4,0,.2,1); |
188 | | - transition-duration: .3s; |
189 | | - overflow: scroll; |
| 189 | + max-height: 0; |
| 190 | + opacity: 0; |
| 191 | + visibility: hidden; |
| 192 | + overflow: hidden; |
| 193 | + transition: |
| 194 | + opacity .18s ease .14s, |
| 195 | + visibility 0s linear .32s; |
190 | 196 | } |
191 | 197 | .sidesponsor:hover .sponsor-description{ |
192 | | - display:block; |
193 | 198 | grid-area: sponsor-description; |
194 | 199 | min-height: 0; |
195 | 200 | max-height: 100%; |
196 | 201 | margin-top: 0; |
197 | 202 | margin-bottom: 0; |
198 | 203 | font-size: calc(1em - 1px); |
| 204 | + opacity: 1; |
| 205 | + visibility: visible; |
199 | 206 | overflow: auto; |
200 | 207 | overscroll-behavior: contain; |
| 208 | + transition: |
| 209 | + opacity .18s ease .14s, |
| 210 | + visibility 0s linear 0s; |
201 | 211 | } |
202 | 212 | .sidesponsor .sponsor-cta{ |
203 | 213 | margin-top: auto; |
|
209 | 219 | border-radius: 8px; |
210 | 220 | background-color: var(--fg); |
211 | 221 | color: var(--bg); |
| 222 | + font-weight: 800; |
212 | 223 | } |
213 | 224 | .sidesponsor:hover .sponsor-cta{ |
214 | 225 | grid-area: sponsor-cta; |
215 | 226 | margin-top: 0; |
216 | 227 | margin-bottom: 4px; |
217 | | - padding: 7px 10px; |
| 228 | + padding: 10px 14px; |
218 | 229 | box-sizing: border-box; |
219 | 230 | max-width: 100%; |
220 | 231 | overflow: hidden; |
221 | 232 | text-overflow: ellipsis; |
222 | 233 | white-space: nowrap; |
223 | | - font-size: 1.08rem; |
224 | | - font-weight: 700; |
| 234 | + font-size: 1.2rem; |
| 235 | + font-weight: 800; |
225 | 236 | line-height: 1.1; |
| 237 | + animation: sponsorTextReveal .3s ease .12s both; |
| 238 | + } |
| 239 | + @keyframes sponsorTextReveal { |
| 240 | + 0%, 45% { |
| 241 | + opacity: 0; |
| 242 | + } |
| 243 | + 100% { |
| 244 | + opacity: 1; |
| 245 | + } |
226 | 246 | } |
227 | 247 | .sidesponsor-bsa { |
228 | 248 | max-height: 40%; |
|
0 commit comments