-
Notifications
You must be signed in to change notification settings - Fork 67
/
sandbox.css
43 lines (38 loc) · 1.29 KB
/
sandbox.css
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
:is(.admonition):is(.admonish-sandbox) {
transition-property: width, margin-left;
transition-duration: 300ms;
transition-timing-function: ease-out;
margin-left: 0;
position: relative;
box-sizing: border-box;
max-width: 1380px;
}
@media only screen and (min-width: 1081px) {
:is(.admonition):is(.admonish-sandbox):is([open]) {
--sandbox-width: calc(
100vw - var(--sidebar-width) - calc(var(--page-padding) + 1.2rem) *
2 - 6px - 4px
);
width: var(--sandbox-width);
margin-left: calc(calc(min(var(--sandbox-width), 1380px) - 100%) / 2 * -1 + 4px);
z-index: 10;
}
body.sidebar-hidden :is(.admonition):is(.admonish-sandbox):is([open]) {
--sandbox-width: calc(
100vw - calc(var(--page-padding) + 1.2rem) * 2 - 4px
);
}
}
@media only screen and (min-width: 1380px) {
:is(.admonition):is(.admonish-sandbox):is([open]) {
--sandbox-width: calc(
100vw - var(--sidebar-width) -
calc(var(--page-padding) + 1.2rem + 90px) * 2 - 6px - 4px
);
}
body.sidebar-hidden :is(.admonition):is(.admonish-sandbox):is([open]) {
--sandbox-width: calc(
100vw - calc(var(--page-padding) + 1.2rem + 90px) * 2 - 4px
);
}
}