Skip to content

Commit d529a9e

Browse files
author
Hermes
committed
Refine hovered sponsor layout
1 parent 8e4b5d5 commit d529a9e

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

theme/pagetoc.css

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@
106106
overflow: auto;
107107
display: flex;
108108
flex-direction: column;
109-
gap:20px;
109+
gap:16px;
110110
background-color: transparent;
111111
}
112112
.pagetoc {
113-
max-height: 60%;
113+
max-height: 52%;
114114
overflow: auto;
115115
border-left: 1px solid color-mix(in srgb, var(--table-border-color) 70%, transparent);
116116
border-radius: 12px;
@@ -119,8 +119,8 @@
119119
padding: 4px 4px;
120120
}
121121
.sidesponsor {
122-
max-height: 40%;
123-
height: 40%;
122+
max-height: 48%;
123+
height: 48%;
124124
background-color: transparent;
125125
border: 1px solid color-mix(in srgb, var(--table-border-color) 70%, transparent);
126126
border-radius: 8px;
@@ -149,7 +149,7 @@
149149
width: 42px;
150150
padding: 4px;
151151
grid-area: sponsor-image;
152-
align-self: start;
152+
align-self: center;
153153
transition-duration: 0s;
154154
}
155155
.sidesponsor:hover {
@@ -162,7 +162,7 @@
162162
"sponsor-cta sponsor-cta";
163163
column-gap: 8px;
164164
row-gap: 8px;
165-
align-items: start;
165+
align-items: center;
166166
align-content: start;
167167
overflow: hidden;
168168
}
@@ -185,11 +185,12 @@
185185
.sidesponsor:hover .sponsor-title{
186186
grid-area: sponsor-title;
187187
margin-left: 0;
188-
margin-top: 6px;
188+
margin-top: 0;
189189
margin-bottom: 0;
190190
font-size: 1.55rem;
191191
line-height: 1.15;
192192
overflow-wrap: anywhere;
193+
align-self: center;
193194
}
194195
.sidesponsor .sponsor-description{
195196
display: block;
@@ -260,8 +261,8 @@
260261
}
261262
}
262263
.sidesponsor-bsa {
263-
max-height: 40%;
264-
height: 40%;
264+
max-height: 48%;
265+
height: 48%;
265266
background-color: transparent;
266267
border: 1px solid color-mix(in srgb, var(--table-border-color) 70%, transparent);
267268
border-radius: 8px;

0 commit comments

Comments
 (0)