Skip to content

Commit 8c607a7

Browse files
committed
version table mobile/width fix
1 parent 1e7d59f commit 8c607a7

File tree

1 file changed

+57
-3
lines changed

1 file changed

+57
-3
lines changed

src/styles/custom.css

Lines changed: 57 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,18 +107,18 @@
107107

108108
.vt-left & {
109109
right: calc(var(--vt-offset) * -1);
110-
transform: translate(50%, 10%);
110+
transform: translate(50%, 12%);
111111
}
112112

113113
.vt-right & {
114114
left: calc(var(--vt-offset) * -1);
115-
transform: translate(-50%, 10%);
115+
transform: translate(-50%, 12%);
116116
}
117117
}
118118

119119
.vt-entry {
120120
display: flex;
121-
min-width: 13rem;
121+
min-width: 14rem;
122122
align-items: center;
123123
justify-content: space-between;
124124
padding: 0.4rem 0.75rem;
@@ -258,3 +258,57 @@
258258
p[id^='starlight__on-this-page'] {
259259
display: none;
260260
}
261+
262+
@media (max-width: 47.95rem) {
263+
.vt-timeline {
264+
max-width: 100%;
265+
gap: 0.4rem;
266+
267+
&::before {
268+
left: 1rem;
269+
transform: none;
270+
}
271+
}
272+
273+
.vt-card-wrap {
274+
width: calc(100% - 1rem - var(--vt-offset));
275+
margin-inline-start: calc(1rem + var(--vt-offset)) !important;
276+
margin-inline-end: 0 !important;
277+
278+
.vt-card {
279+
margin-top: 0 !important;
280+
}
281+
282+
.vt-card::after {
283+
left: calc(var(--vt-offset) * -1) !important;
284+
right: auto !important;
285+
width: var(--vt-offset);
286+
}
287+
}
288+
289+
.vt-year-stem {
290+
left: calc((1rem + var(--vt-offset)) * -1) !important;
291+
right: auto !important;
292+
transform: translate(-19%, -48%) !important;
293+
}
294+
295+
.vt-entry {
296+
min-width: 14rem;
297+
}
298+
299+
.vt-right .vt-entry {
300+
flex-direction: row;
301+
302+
.vt-name {
303+
flex-direction: row-reverse;
304+
305+
.vt-name-caret {
306+
transform: scaleX(-1);
307+
}
308+
}
309+
310+
.vt-id {
311+
flex-direction: row;
312+
}
313+
}
314+
}

0 commit comments

Comments
 (0)