Skip to content

Commit b505d03

Browse files
committed
sync styles to django
1 parent 106a128 commit b505d03

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

docs/src/static/css/extra.css

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
/* General admonition styling */
2626
/* TODO: Write this in a way that supports the light theme */
27+
[data-md-color-scheme="slate"] .md-typeset details,
2728
[data-md-color-scheme="slate"] .md-typeset .admonition {
2829
border-color: transparent !important;
2930
}
@@ -36,6 +37,11 @@
3637
font-size: 0.7rem;
3738
}
3839

40+
.md-typeset .admonition:focus-within,
41+
.md-typeset details:focus-within {
42+
box-shadow: var(--md-shadow-z1) !important;
43+
}
44+
3945
/* Colors for "summary" admonition */
4046
[data-md-color-scheme="slate"] .md-typeset .admonition.summary {
4147
background: #353a45;
@@ -227,6 +233,7 @@
227233
margin: 0;
228234
border-radius: 0 10px 10px 0;
229235
font-weight: 600;
236+
overflow: hidden;
230237
}
231238

232239
.md-sidebar__scrollwrap {
@@ -341,15 +348,15 @@ h2#overview {
341348
}
342349

343350
.md-typeset .tabbed-block {
344-
border-bottom-left-radius: 16px;
345-
border-bottom-right-radius: 16px;
346-
border-bottom: 20px solid var(--tabbed-labels-color);
351+
border-bottom-left-radius: 8px;
352+
border-bottom-right-radius: 8px;
353+
overflow: hidden;
347354
}
348355

349356
.js .md-typeset .tabbed-labels {
350357
background: var(--tabbed-labels-color);
351-
border-top-left-radius: 16px;
352-
border-top-right-radius: 16px;
358+
border-top-left-radius: 8px;
359+
border-top-right-radius: 8px;
353360
}
354361

355362
.md-typeset .tabbed-labels > label {
@@ -362,3 +369,8 @@ h2#overview {
362369
.md-typeset pre > code {
363370
max-height: var(--code-max-height);
364371
}
372+
373+
/* Reduce height of outdated banner */
374+
.md-banner__inner {
375+
margin: 0.45rem auto;
376+
}

0 commit comments

Comments
 (0)