Repository navigation
Expand file tree
/
Copy pathcomponents.css
More file actions
72 lines (67 loc) · 2.23 KB
/
Copy pathcomponents.css
File metadata and controls
72 lines (67 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/* Overrides for specific Starlight components and page furniture.
Loaded last, after tokens.css and base.css. */
/* ---- Homepage links below the feature cards ---- */
.home-links {
text-align: center;
margin-top: var(--xnat-space-7);
}
.home-links p {
margin: var(--xnat-space-1) 0;
}
.home-links__heading {
font-weight: 600;
}
.home-links__heading span {
color: var(--sl-color-gray-3);
font-weight: 400;
}
.home-links__repos a {
margin: 0 0.6rem;
}
/* Sidebar: keep only the top-level headers bold/large. Normalise every nested
expandable group label so it matches the plain single-page links beside it.
(`.top-level ul .large` excludes the top headers, whose label sits in the
summary, not inside a nested list.) */
.top-level ul .large {
font-size: var(--sl-text-base);
font-weight: 400;
}
@media (min-width: 50rem) {
.top-level ul .large {
font-size: var(--sl-text-sm);
}
}
/* Starlight only positions the content column correctly when a TOC is present.
The tabbed Getting Started page disables its (duplicate-heading) TOC, which
left the content centred. Give the no-TOC main pane the same geometry as the
with-TOC pages so the content sits in the identical position. */
@media (min-width: 72rem) {
[data-has-sidebar]:not([data-has-toc]) .main-pane {
--sl-content-margin-inline: auto 0;
width: calc(
var(--sl-content-width) + (100% - var(--sl-content-width) - var(--sl-sidebar-width)) / 2
);
}
}
/* Hero logo: the XNAT mark has a white background, so frame it as a tidy badge
that reads on both light and dark mode. Rendered via hero.image.html so it
keeps its true aspect ratio (Starlight's default image box would crop it). */
.hero .hero-html {
width: min(100%, 22rem);
}
.hero img {
display: block;
width: 100%;
height: auto;
box-sizing: border-box;
background: #fff;
padding: var(--xnat-space-4) var(--xnat-space-5);
border-radius: var(--xnat-radius-lg);
border: 1px solid var(--xnat-surface-border);
box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}
/* Hero and link buttons. Starlight makes these full pills (999rem); square them
off to match the cards and framed screenshots. */
.sl-link-button:is(.primary, .secondary, .minimal) {
border-radius: var(--xnat-radius-md);
}