-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme.css
More file actions
288 lines (277 loc) · 6.76 KB
/
Copy paththeme.css
File metadata and controls
288 lines (277 loc) · 6.76 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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
/*
* @ebuildy/docusaurus-plugin-gitlab — optional card theme.
*
* Minimal, light/dark-aware styling for the <Gitlab*> components. It uses
* Infima (Docusaurus) CSS variables, so it tracks your site's active theme
* automatically. Apply it by adding this file to your preset's
* `theme.customCss`, or copy it into your own stylesheet and tweak freely.
*/
/* Project overview card */
.gitlab-card {
border: 1px solid var(--ifm-color-emphasis-200);
border-radius: 10px;
padding: 1rem;
margin: 1rem 0;
background: var(--ifm-background-surface-color);
box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 2px 8px rgb(0 0 0 / 0.04);
transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.gitlab-card:hover {
border-color: var(--ifm-color-primary);
}
.gitlab-card-header {
display: flex;
align-items: center;
gap: 0.6rem;
}
.gitlab-avatar {
width: 32px;
height: 32px;
border-radius: 8px;
object-fit: cover;
flex: none;
}
.gitlab-title {
font-weight: 600;
}
.gitlab-title a {
color: var(--ifm-color-primary);
}
.gitlab-muted {
color: var(--ifm-color-emphasis-600);
}
.gitlab-stats {
display: flex;
gap: 1rem;
margin-top: 0.5rem;
}
/* Badges: topics, tags, labels, release assets */
.gitlab-badge {
display: inline-block;
padding: 0 0.5rem;
margin-right: 0.25rem;
border-radius: 999px;
background: var(--ifm-color-emphasis-100);
color: var(--ifm-color-primary);
font-size: 0.85em;
}
/* Scoped labels/topics ("scope::value") render as two joined segments:
the scope keeps its color, the value gets a dark-gray treatment. */
.gitlab-label--scoped,
.gitlab-topic--scoped {
display: inline-flex;
align-items: stretch;
padding: 0;
overflow: hidden;
/* framed in the scope color: set inline for labels, primary for topics */
border: 1px solid;
}
.gitlab-topic--scoped {
border-color: var(--ifm-color-primary);
}
.gitlab-label-scope,
.gitlab-label-value {
display: inline-flex;
align-items: center;
padding: 0 0.5rem;
}
/* Scoped topics carry no per-label color, so give the scope the badge default. */
.gitlab-topic--scoped .gitlab-label-scope {
background: var(--ifm-color-emphasis-100);
color: var(--ifm-color-primary);
}
.gitlab-label-value {
background: #4c4c4c;
color: #fff;
}
.gitlab-topic--scoped .gitlab-count-bubble {
padding: 0 0.4rem;
}
/* Labels — cards layout: a responsive grid of project-style cards. */
.gitlab-label-cards {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 0.75rem;
margin: 1rem 0;
}
/* Reuse .gitlab-card (border + shadow + hover) but reset link chrome and the
card's default block margin so it sits flush in the grid. */
.gitlab-label-card {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 0.4rem;
margin: 0;
color: inherit;
text-decoration: none;
}
.gitlab-label-card:hover {
text-decoration: none;
}
.gitlab-label-card-desc {
margin: 0;
font-size: 0.85em;
color: var(--ifm-color-emphasis-700);
}
/* Issues list */
.gitlab-issues {
list-style: none;
padding: 0;
margin: 1rem 0;
}
.gitlab-issue {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0.4rem;
padding: 0.6rem 0;
border-bottom: 1px solid var(--ifm-color-emphasis-200);
}
.gitlab-issue:last-child {
border-bottom: 0;
}
.gitlab-issue-title {
font-weight: 500;
}
.gitlab-issue-state {
display: inline-block;
padding: 0 0.5rem;
border-radius: 999px;
font-size: 0.8em;
font-weight: 600;
text-transform: capitalize;
color: #fff;
background: var(--ifm-color-emphasis-500);
}
.gitlab-issue-state[data-state="opened"] {
background: var(--ifm-color-success);
}
.gitlab-issue-state[data-state="closed"] {
background: var(--ifm-color-danger);
}
/* Releases: a vertical timeline of release cards */
.gitlab-releases {
position: relative;
list-style: none;
margin: 1.5rem 0;
padding: 0 0 0 28px;
display: flex;
flex-direction: column;
gap: 1.25rem;
}
/* the timeline rail */
.gitlab-releases::before {
content: "";
position: absolute;
top: 6px;
bottom: 6px;
left: 6px;
width: 2px;
border-radius: 1px;
background: linear-gradient(to bottom, var(--ifm-color-primary), var(--ifm-color-emphasis-300));
}
.gitlab-release {
position: relative;
border: 1px solid var(--ifm-color-emphasis-200);
border-radius: 10px;
padding: 1rem 1.25rem;
background: var(--ifm-background-surface-color);
box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 2px 8px rgb(0 0 0 / 0.04);
transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.gitlab-release:hover {
border-color: var(--ifm-color-primary);
transform: translateX(2px);
}
/* the node sitting on the rail */
.gitlab-release::before {
content: "";
position: absolute;
top: 18px;
left: -28px;
width: 14px;
height: 14px;
border-radius: 50%;
background: var(--ifm-color-primary);
border: 2px solid var(--ifm-background-surface-color);
box-shadow: 0 0 0 2px var(--ifm-color-primary);
}
/* the connector from the rail to the card */
.gitlab-release::after {
content: "";
position: absolute;
top: 24px;
left: -14px;
width: 14px;
height: 2px;
background: var(--ifm-color-emphasis-300);
}
/* make the latest release pop */
.gitlab-release:first-child::before {
box-shadow: 0 0 0 2px var(--ifm-color-primary), 0 0 9px 1px var(--ifm-color-primary);
}
.gitlab-release-notes {
margin-top: 0.5rem;
color: var(--ifm-color-emphasis-800);
}
.gitlab-release-notes > :first-child {
margin-top: 0;
}
.gitlab-release-notes > :last-child {
margin-bottom: 0;
}
.gitlab-release-notes img {
max-width: 100%;
}
.gitlab-release-assets {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
margin-top: 0.75rem;
}
/* README / markdown file embed */
.gitlab-readme img {
max-width: 100%;
}
/* Error fallback */
.gitlab-fallback {
border-left: 4px solid var(--ifm-color-warning);
padding: 0.75rem 1rem;
margin: 1rem 0;
background: var(--ifm-color-warning-contrast-background);
}
/* Code file embed */
.gitlab-code {
margin: 1rem 0;
border: 1px solid var(--ifm-color-emphasis-200);
border-radius: 8px;
overflow: hidden;
}
.gitlab-code-title {
padding: 0.4rem 1rem;
font-family: var(--ifm-font-family-monospace);
font-size: 0.85em;
color: var(--ifm-color-emphasis-700);
background: var(--ifm-color-emphasis-100);
border-bottom: 1px solid var(--ifm-color-emphasis-200);
}
.gitlab-code-pre {
margin: 0;
padding: 1rem;
overflow: auto;
font-size: var(--ifm-code-font-size, 90%);
}
/* Slightly stronger shadows so cards stay legible in dark mode */
[data-theme='dark'] .gitlab-card,
[data-theme='dark'] .gitlab-release {
box-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 2px 10px rgb(0 0 0 / 0.25);
}
/* Generated [[_TOC_]] table of contents */
.gitlab-md-toc ul {
margin: 0;
padding-left: 1.25rem;
}
.gitlab-md-toc > ul {
padding-left: 0;
list-style: none;
}