Skip to content

Commit 2afd074

Browse files
committed
Prevent sponsor text CTA overlap
1 parent 4efde9f commit 2afd074

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

theme/pagetoc.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@
139139
transition-duration: .3s;
140140
}
141141
.sidesponsor:hover img{
142-
width: 52px;
143-
padding: 6px;
142+
width: 42px;
143+
padding: 4px;
144144
grid-area: sponsor-image;
145145
align-self: start;
146146
}
@@ -192,9 +192,11 @@
192192
display:block;
193193
grid-area: sponsor-description;
194194
min-height: 0;
195+
max-height: 100%;
195196
margin-top: 0;
196197
margin-bottom: 0;
197198
overflow: auto;
199+
overscroll-behavior: contain;
198200
}
199201
.sidesponsor .sponsor-cta{
200202
margin-top: auto;
@@ -210,6 +212,10 @@
210212
.sidesponsor:hover .sponsor-cta{
211213
grid-area: sponsor-cta;
212214
margin-top: 0;
215+
margin-bottom: 4px;
216+
padding: 4px 6px;
217+
font-size: 0.9rem;
218+
line-height: 1.1;
213219
}
214220
.sidesponsor-bsa {
215221
max-height: 40%;

0 commit comments

Comments
 (0)