forked from docsifyjs/docsify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_mq.css
72 lines (61 loc) · 1.14 KB
/
_mq.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
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
/* Media */
/* ========================================================================== */
:root {
--_mobile-breakpoint: 640px; /* JS Accessible. Match with MQ below. */
}
@media (prefers-reduced-motion) {
:root {
--duration-slow: 0s;
--duration-medium: 0s;
--duration-fast: 0s;
}
}
@media print {
.app-nav,
.github-corner,
.sidebar,
.sidebar-toggle {
display: none;
}
}
/* Mobile */
@media screen and (max-width: 640px) {
.app-nav-merged {
display: block;
}
body:has(.sidebar.show) {
.app-nav,
.github-corner {
pointer-events: none;
}
.app-nav {
left: 0;
}
main {
&::before {
width: 100%;
background: rgba(0, 0, 0, 0.15);
transition:
width 0s,
background var(--duration-medium);
}
}
.sidebar-toggle {
width: calc(100% - var(--sidebar-width));
&:hover {
background: transparent;
}
}
main > .content {
left: 0;
}
}
body:has(.app-nav-merged) {
.app-nav {
display: none;
}
.markdown-section {
margin-top: var(--content-margin-inline);
}
}
}