forked from denoland/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoverrides.css
161 lines (130 loc) · 3.05 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
/* Deno Doc Overrides */
div.ddoc {
@apply flex h-screen p-4 pt-2 lg:p-2 lg:pt-0;
}
/* First column: fixed width of 290px */
.ddoc > :first-child {
@apply w-[290px] flex-shrink-0;
}
/* Second column: takes up the remaining space */
.ddoc > :nth-child(2) {
@apply flex-grow;
}
.toc {
@apply hidden;
}
.ddoc > .toc {
@apply hidden md:flex md:flex-col !important;
}
.ddoc > div > div#content > div.toc {
@apply hidden xl:flex xl:flex-col !important;
}
.ddoc > .toc {
@apply h-full max-h-screen border-r border-gray-000;
}
.ddoc .documentNavigation > h3 {
margin: 0.75rem 0.75rem 0.5rem !important;
padding-bottom: 0.1rem;
@apply text-gray-4 font-normal text-xs border-b border-gray-000 leading-normal uppercase !important;
}
.ddoc .documentNavigation > ul {
@apply flex-grow overflow-y-auto;
}
.ddoc .documentNavigation > ul > li {
@apply mt-0.5 mx-3;
}
.ddoc .documentNavigation > ul > li > a {
@apply text-gray-3 text-sm py-1.5 px-3.5 hover:bg-blue-50 rounded-lg hover:no-underline !important;
}
.ddoc > div:not(.toc) {
@apply flex flex-col;
}
#content {
@apply mt-4 flex flex-row justify-between !important;
}
#content > main {
@apply pb-0 flex flex-col gap-3 flex-grow !important;
}
#content > .toc {
@apply flex-shrink-0 min-w-[250px] max-w-[300px] !important;
}
#content > main > section + div {
@apply max-w-[75ch] !important;
}
.ddoc .markdown {
@apply max-w-[40ch] sm:max-w-screen-sm md:max-w-screen-md lg:max-w-[75ch] !important;
}
/* This comes from gfm css, should be replaced with something in our color palette once we establish it. */
.ddoc .markdown :not(pre) > code {
background-color: var(--color-neutral-muted) !important;
}
.ddoc .markdown pre {
@apply border-gray-000 !important;
}
.ddoc .max-w-prose {
@apply max-w-[75ch] !important;
}
.ddoc > div > div#content > div.toc > div > nav.documentNavigation > h3 {
@apply hidden !important;
}
.ddoc > div > div#content > div.toc > div > nav.documentNavigation > ul {
@apply border-l border-gray-000 text-gray-1 text-[.8rem] leading-none !important;
}
.ddoc
> div
> div#content
> div.toc
> div
> nav.documentNavigation
> ul
> li:has(> a) {
@apply pb-0 !important;
}
.ddoc nav.documentNavigation li:has(> ul) {
@apply mt-0 !important;
/* CSS styles here */
}
.ddoc
> div
> div#content
> div.toc
> div
> nav.documentNavigation
> ul
> li
> ul
> li {
@apply mt-1 !important;
}
.ddoc
> div
> div#content
> div.toc
> div
> nav.documentNavigation
> ul
> li
> ul
> li
> a {
@apply hover:bg-blue-50 rounded-lg hover:no-underline p-1 !important;
}
@media (min-width: 1024px) {
.ddoc:not(:has(> div.toc)),
.ddoc:has(> div.toc) > div:not(.toc) {
padding-top: 0.25rem !important;
padding-left: 0.5rem !important;
}
}
.ddoc .usageContent {
@apply bg-primary/5 border-primary/25 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;
}