-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtablet-width.css
More file actions
80 lines (69 loc) · 1.81 KB
/
tablet-width.css
File metadata and controls
80 lines (69 loc) · 1.81 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
/* These rules allow us to retain most elements of the desktop view between 880px and 1024px.
* We could extend these all the way to the traditional 768px breakpoint,
* but the width of our current left sidebar makes that undesirable.
*
* Mintlify provides an id for most of the areas we want to fix up.
* For the rest, they use a `lg:hidden` class on the element to be shown at desktop
* resolutions, and a just plain `hidden` class on the element to be shown at
* mobile resolution.
*
* Unfortunately in some cases we do need to select elements by using a few of classes.
* Ideally we'd have id's for these too.
*/
@media (min-width: 880px) {
/* Retain the left sidebar, but make it a little narrower */
#sidebar {
display: block;
width: 16rem;
}
/* Retain left padding in main section so it doesn't overlap with the sidebar.
* Don't introduce new left margin in main section.
*/
#content-area {
padding-left: 21.5rem;
margin-left: -3rem;
}
/* Keep left sidebar font at 14px */
#sidebar-content {
font-size: .875em;
}
/* Retain full searchbar */
@supports selector(:has()) {
div:has(> #search-bar-entry) {
display: block;
}
}
@supports not selector(:has()) {
#navbar .h-full .hidden.flex-1.justify-center {
display: block;
}
}
/* Hide little search control */
#search-bar-entry-mobile {
display: none;
}
/* Retain tabs */
@supports selector(:has()) {
div:has(> .nav-tabs) {
display: block;
}
}
@supports not selector(:has()) {
#navbar .hidden.px-12.h-12 {
display: block;
}
}
/* Hide mobile menu */
#navbar button.lg\:hidden {
display: none;
}
}
@media (min-width: 1024px) {
/* Use Mintlify's default styles at this width */
#content-area {
padding-left: 23.7rem;
}
#sidebar {
width: 18rem;
}
}