forked from denoland/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
overrides.css
80 lines (59 loc) · 1.45 KB
/
overrides.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
73
74
75
76
77
78
79
80
/* Deno Doc Overrides */
#content > main > section + div {
@apply max-w-[75ch] !important;
}
/* Align content with the top of the TOC now that it has no header */
#content {
@apply mt-2 !important;
}
#topnav {
@apply md:mt-1 !important;
}
.ddoc {
@apply gap-8 !important;
}
/* Adjust spacing to account for removed header */
.ddoc .toc .documentNavigation {
@apply md:mt-4 !important;
}
.ddoc .toc .documentNavigation > ul li {
@apply ml-1 !important;
}
.doc .toc :not(.documentNavigation) > a {
@apply text-xl !important;
}
.ddoc .usageContent {
@apply bg-primary/5 border-primary/25 max-w-[75ch] pt-3.5 pb-4 !important;
}
.ddoc .usageContent > h3 {
@apply font-semibold ml-1.5 mb-1.5 !important;
}
.ddoc .usageContent > .markdown {
@apply max-w-full !important;
}
.ddoc .context_button:hover {
@apply bg-gray-000/25 !important;
}
/* Single column APIs */
.ddoc .namespaceSection {
@apply grid-cols-1 gap-1 mt-4 !important;
}
.ddoc .section {
@apply max-w-[75ch] !important;
}
.ddoc .namespaceSection .namespaceItem {
@apply min-h-0 mb-4 !important;
}
.ddoc .section > div:first-child > h2 {
@apply mb-0 !important;
}
/* This section attempts to style the headings on the category index pages differently from the symbol detail pages */
.ddoc .space-y-7 > .section {
@apply mt-4 !important;
}
.ddoc .space-y-7 > .section:first-child {
@apply mt-0 !important;
}
.ddoc .space-y-7 > .section .markdown {
@apply mb-6 !important;
}