-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.css
174 lines (168 loc) · 3.66 KB
/
tailwind.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
162
163
164
165
166
167
168
169
170
171
172
173
174
@import "./tailwind-notes.css";
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
/* links */
main a,
footer a {
@apply text-primary-700 dark:text-primary-400;
}
main a:hover,
footer a:hover {
@apply underline;
}
/* hx */
h1, h2, h3, h4 {
@apply text-primary-950;
@apply dark:text-secondary-100;
}
/* header */
header a {
@apply hover:no-underline hover:opacity-75
}
header .navbar-item {
@apply text-primary-100 hover:text-primary-50;
}
/* sidebar */
#sidebar div.group-title {
@apply uppercase font-semibold text-sm text-secondary-600 dark:text-secondary-200;
}
#sidebar ol {
@apply list-none p-0 mb-2;
}
#sidebar ol:last-child {
@apply mb-0;
}
#sidebar li {
@apply my-1;
}
#sidebar li:last-child {
@apply mb-0;
}
#sidebar li>a {
@apply text-secondary-800 dark:text-secondary-300 px-2.5 py-1.5 no-underline font-medium;
}
#sidebar li>a.active,
#sidebar li>a:hover {
@apply rounded bg-primary-200 dark:text-secondary-800;
}
#sidebar 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 */
article.markdown figcaption,
article.markdown .note a {
@apply text-inherit;
}
article .anchor-title {
@apply pl-2;
}
article.markdown img {
@apply mx-auto;
}
article.markdown figcaption {
@apply text-center;
}
/* on this page ToC */
#on-this-page ul {
@apply list-none;
}
#on-this-page-toc,
#on-this-page-toc a {
@apply text-primary-700 dark:text-primary-400;
}
}
@layer components {
/* buttons */
.button {
@apply px-6 py-2.5 rounded-full hover:no-underline transition-colors duration-300 ease-in-out;
@apply bg-primary-700 hover:bg-primary-900 text-white dark:text-white hover:text-white hover:dark:text-white text-base font-bold;
}
/* selectors */
.formselect {
@apply p-1 border rounded-sm border-primary-50 border-opacity-25;
}
#sidebar .formselect {
@apply border-none;
}
.selector {
@apply border-0 cursor-pointer bg-inherit text-inherit;
}
.selector:hover {
@apply text-inherit;
}
.selector option {
@apply bg-primary-50 dark:bg-primary-950 text-primary-950 dark:text-secondary-100;
}
}
/* 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 focus-visible:outline-none;
}
.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;
}