This repository was archived by the owner on Aug 1, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.css
More file actions
170 lines (163 loc) · 3.41 KB
/
tailwind.css
File metadata and controls
170 lines (163 loc) · 3.41 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
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
162
163
164
165
166
167
168
169
170
@import "./tailwind-notes.css";
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
/* links */
main a,
footer a {
@apply text-primary-500 dark:text-primary-400;
}
main a:hover,
footer a:hover {
@apply underline;
}
/* header */
header > *:not([class^="DocSearch"]) {
@apply text-primary-100 hover:text-primary-50;
}
header a {
@apply hover:no-underline
}
/* sidebar */
#sidebar div.group-title {
@apply uppercase font-semibold text-sm text-secondary-500 dark:text-secondary-200;
}
#sidebar ul {
@apply list-none p-0 mb-2;
}
#sidebar ul:last-child {
@apply mb-0;
}
#sidebar ul>li {
@apply my-1;
}
#sidebar ul>li:last-child {
@apply mb-0;
}
#sidebar ul>li>a {
@apply text-secondary-800 dark:text-secondary-300 px-2.5 py-1.5 no-underline font-medium;
}
#sidebar ul>li>a.active,
#sidebar ul>li>a:hover {
@apply rounded bg-primary-200 dark:text-secondary-800;
}
#sidebar ul>li>a.active {
@apply text-primary-700;
}
/* on this page */
main details li {
@apply m-2;
}
main details a,
main details a:hover {
@apply no-underline text-inherit;
}
/* article hx anchor */
article .anchor-title {
@apply pl-2;
}
article a.anchor-title {
@apply no-underline;
@apply text-primary-700 dark:text-primary-400;
@apply opacity-75;
}
article a.anchor-title:hover {
@apply no-underline;
@apply opacity-100;
}
/* on this page ToC */
#on-this-page ul {
@apply list-none;
}
#on-this-page-toc {
@apply text-primary-700 dark:text-primary-400;
}
#on-this-page-toc a {
@apply text-primary-700 dark:text-primary-400;
}
}
@layer components {
/* selectors */
.formselect {
@apply p-1 border rounded-sm border-primary-50 border-opacity-25;
}
#sidebar .formselect {
@apply border-none;
}
.selector {
@apply bg-transparent border-0 text-inherit cursor-pointer;
}
.selector:hover {
@apply text-inherit;
}
.selector option {
@apply text-primary-950;
}
}
/* DocSearch */
/* should usse variables? https://github.com/algolia/docsearch/blob/df60b8ebe89c80ce3d00b80d94e95b6fd86edd19/packages/docsearch-css/src/_variables.css */
.DocSearch.DocSearch-Button {
@apply w-full lg:w-48 rounded m-0 lg:px-4 py-2 bg-primary-800 focus:outline-none focus:bg-primary-700 shadow-inner cursor-pointer;
@apply max-lg:bg-transparent;
@apply max-lg:shadow-none;
}
.DocSearch .DocSearch-Button-Placeholder {
@apply text-primary-100 font-light;
@apply pl-3;
}
.DocSearch-Button-Keys {
display: none;
}
.DocSearch-Button .DocSearch-Search-Icon,
.DocSearch-Search-Icon {
@apply text-primary-100;
}
.DocSearch-Form {
@apply text-primary-100 bg-primary-800 shadow-none;
}
.DocSearch-Input {
@apply text-primary-100;
}
.DocSearch-Input::placeholder {
@apply text-primary-100;
}
.DocSearch-Cancel {
@apply text-primary-800;
}
.DocSearch-Hit-source {
@apply text-primary-800;
}
.DocSearch-Hit[aria-selected=true] a {
@apply bg-primary-800;
}
.DocSearch-Hits mark {
@apply text-primary-800;
}
/* highlight code */
.hljs {
@apply bg-transparent;
}
code.hljs {
@apply p-0;
}
pre code.hljs {
@apply p-0;
}
/* tocbot */
.toc-list {
@apply pl-0;
}
.toc-list .is-collapsible {
@apply pl-[10px];
}
.toc-link::before {
@apply hidden;
}
.is-active-link {
@apply font-semibold;
}
/* mermaid */
pre:has(> code.language-mermaid) {
background-color: inherit;
}