forked from SiriusSoftwareLtd/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcustom.css
More file actions
214 lines (191 loc) · 5.12 KB
/
Copy pathcustom.css
File metadata and controls
214 lines (191 loc) · 5.12 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
/* ── Unica77 medium/light weights (regular loaded via docs.json) ── */
@font-face {
font-family: 'Unica77';
src: url('/fonts/Unica77LL-Medium.woff2') format('woff2');
font-weight: 500;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Unica77';
src: url('/fonts/Unica77LL-Light.woff2') format('woff2');
font-weight: 300;
font-style: normal;
font-display: swap;
}
/* ── Sidebar group headers vs page links ─────────────────── */
/* Group headers are not <a> tags — make them small, muted, uppercase */
aside p,
aside button > p,
aside nav > div > p,
aside nav div > p {
font-size: 0.7rem !important;
font-weight: 600 !important;
letter-spacing: 0.07em !important;
text-transform: uppercase !important;
opacity: 0.45 !important;
}
/* Page links are <a> tags — keep normal size, add subtle indent */
aside a {
font-size: 0.875rem !important;
padding-left: 0.5rem !important;
}
/* ── Headings: lighter weight, a touch more tracking ─────── */
/* The default headings render very heavy with tight tracking, which reads as
cramped. Drop to medium and let the letters breathe. */
h1,
.prose h1 {
font-weight: 500 !important;
letter-spacing: -0.005em !important;
}
h2,
h3,
h4,
.prose h2,
.prose h3,
.prose h4 {
font-weight: 500 !important;
letter-spacing: 0 !important;
}
/* ── Discord navbar button: one flat neutral pill ────────── */
/* Style the anchor and flatten every nested layer so it reads as a single
dark pill instead of two stacked rounded backgrounds. */
header a[href="https://discord.sirius.menu"] {
background-color: #1c1c1f !important;
border: 1px solid #2a2a2e !important;
border-radius: 0.6rem !important;
color: #ededed !important;
}
header a[href="https://discord.sirius.menu"] * {
background-color: transparent !important;
box-shadow: none !important;
}
header a[href="https://discord.sirius.menu"]:hover {
background-color: #26262a !important;
border-color: #34343a !important;
}
/* ── Sentivel cross-promo banner ─────────────────────────── */
/* A slim bar pinned above the content on Rayfield and Gen2 pages. The bare
Sentivel mark sits in a soft white bloom, with a solid white pill for the
action, so it reads as a recommendation rather than an ad unit. No borders —
a grey stroke fights the glow. No hover animation. */
a.sv-banner {
position: relative;
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0.55rem 1rem;
margin: 0 0 1.75rem;
padding: 0.8rem 0.85rem 0.8rem 1.15rem;
overflow: hidden;
background: linear-gradient(100deg, #17171a 0%, #121214 45%, #0f0f11 100%);
border: 1px solid transparent;
border-radius: 0.85rem;
text-decoration: none !important;
}
/* The bloom. Anchored behind the mark and breathing slowly, so the banner has a
light source instead of a flat fill. */
a.sv-banner::before {
content: "";
position: absolute;
top: 50%;
left: 0;
width: 15rem;
height: 15rem;
transform: translate(-40%, -50%);
background: radial-gradient(
circle,
rgba(255, 255, 255, 0.16) 0%,
rgba(255, 255, 255, 0.06) 34%,
rgba(255, 255, 255, 0) 66%
);
pointer-events: none;
animation: sv-banner-bloom 7s ease-in-out infinite;
}
/* Children are positioned so they paint above the bloom. */
.sv-banner-mark,
.sv-banner-copy,
.sv-banner-cta {
position: relative;
}
.sv-banner-mark {
flex: none;
display: grid;
place-items: center;
color: #ffffff;
}
.sv-banner-mark svg {
display: block;
width: auto;
height: 1.5rem;
filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.45));
}
.sv-banner-copy {
flex: 1 1 16rem;
display: flex;
flex-direction: column;
gap: 0.15rem;
min-width: 0;
}
/* MDX wraps multi-line inline content in an inner `span[data-as="p"]`, so the
flex row has to be declared on that wrapper too — otherwise the gap lands on
the wrapper and the badge sits on raw whitespace. */
.sv-banner-title,
.sv-banner-title > span:not(.sv-banner-badge) {
display: inline-flex;
align-items: center;
flex-wrap: wrap;
gap: 0.85rem;
}
.sv-banner-title {
color: #f4f4f5;
font-size: 0.85rem;
font-weight: 500;
letter-spacing: -0.005em;
}
.sv-banner-badge {
color: #a9a9b2;
font-size: 0.68rem;
font-weight: 400;
letter-spacing: 0.01em;
padding: 0.1rem 0.42rem;
background: rgba(255, 255, 255, 0.07);
border-radius: 0.35rem;
}
.sv-banner-sub {
color: #90909a;
font-size: 0.79rem;
line-height: 1.4;
}
.sv-banner-cta,
.sv-banner-cta > span:not(.sv-banner-arrow) {
display: inline-flex;
align-items: center;
gap: 0.35rem;
}
.sv-banner-cta {
flex: none;
padding: 0.42rem 0.8rem;
color: #0a0a0a !important;
font-size: 0.79rem;
font-weight: 500;
white-space: nowrap;
background: #ffffff;
border-radius: 0.55rem;
}
@keyframes sv-banner-bloom {
0%,
100% {
opacity: 0.75;
transform: translate(-40%, -50%) scale(1);
}
50% {
opacity: 1;
transform: translate(-40%, -50%) scale(1.08);
}
}
@media (prefers-reduced-motion: reduce) {
a.sv-banner::before {
animation: none;
}
}