-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
190 lines (148 loc) · 3.78 KB
/
style.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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
@tailwind base;
@tailwind components;
@tailwind utilities;
[type="search"]::-webkit-search-decoration,
[type="search"]::-webkit-search-cancel-button {
appearance: none;
}
@layer base {
:root {
--background: 0 0% 100%;
--foreground: 0 0% 3.9%;
--card: 0 0% 100%;
--card-foreground: 0 0% 3.9%;
--popover: 0 0% 100%;
--popover-foreground: 0 0% 3.9%;
--primary: 0 0% 9%;
--primary-foreground: 0 0% 98%;
--secondary: 0 0% 96.1%;
--secondary-foreground: 0 0% 9%;
--muted: 0 0% 96.1%;
--muted-foreground: 0 0% 45.1%;
--accent: 0 0% 96.1%;
--accent-foreground: 0 0% 9%;
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 0 0% 98%;
--border: 0 0% 89.8%;
--input: 0 0% 89.8%;
--ring: 0 0% 3.9%;
--radius: 0.5rem;
}
.dark {
--background: 0 0% 3.9%;
--foreground: 0 0% 98%;
--card: 0 0% 3.9%;
--card-foreground: 0 0% 98%;
--popover: 0 0% 3.9%;
--popover-foreground: 0 0% 98%;
--primary: 0 0% 98%;
--primary-foreground: 0 0% 9%;
--secondary: 0 0% 14.9%;
--secondary-foreground: 0 0% 98%;
--muted: 0 0% 14.9%;
--muted-foreground: 0 0% 63.9%;
--accent: 0 0% 14.9%;
--accent-foreground: 0 0% 98%;
--destructive: 0 62.8% 30.6%;
--destructive-foreground: 0 0% 98%;
--border: 0 0% 14.9%;
--input: 0 0% 14.9%;
--ring: 0 0% 83.1%;
}
}
@layer base {
:root {
--default-sans-serif: system-ui, -apple-system, BlinkMacSystemFont,
"Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
"Helvetica Neue", sans-serif;
@apply bg-black;
}
/* In order not to alter the font style on pages other than the landing page,
we are currently only applying this class name to the landing page. */
.landing-page-root {
font-family: Poppins, var(--default-sans-serif);
}
.landing-page-root code {
overflow-x: auto;
}
.btn {
@apply p-2 px-4 rounded;
}
.btn-black {
@apply dark:text-black dark:bg-white dark:border-black bg-black text-white transition-shadow;
}
.link {
border-bottom: 0.05em solid;
border-color: currentColor;
border-radius: 0;
opacity: 0.7;
font-weight: 600;
}
.btn-black:hover {
box-shadow: 0 0 30px 4px rgba(0, 0, 0, 0.2);
}
.dark .btn-black:hover {
box-shadow: 0 0 30px 4px rgba(255, 255, 255, 0.2);
}
.blur-light {
filter: blur(100px);
opacity: 0.8;
}
.nextra-scrollbar {
scrollbar-width: thin; /* Firefox */
scrollbar-color: oklch(55.55% 0 0 / 40%) transparent; /* Firefox */
scrollbar-gutter: stable;
&::-webkit-scrollbar {
@apply w-3 h-3;
}
&::-webkit-scrollbar-track {
@apply bg-transparent;
}
&::-webkit-scrollbar-thumb {
@apply rounded-[10px];
}
&:hover::-webkit-scrollbar-thumb {
border: 3px solid transparent;
background-color: var(--tw-shadow-color);
background-clip: content-box;
@apply shadow-neutral-500/20 hover:shadow-neutral-500/40;
}
@media (max-width: 767px) {
.nextra-container & {
scrollbar-gutter: auto;
}
}
}
}
@layer components {
.excalidraw-example {
@apply flex p-5 flex-col items-start gap-5 rounded-[40px] bg-example aspect-square;
}
.excalidraw-example header {
@apply pl-3 w-full pb-5 border-b border-white/10;
}
.excalidraw-example header .caption {
@apply text-white text-base font-extrabold leading-normal;
}
.excalidraw-example main {
@apply w-full flex flex-col flex-1;
}
}
img {
border-radius: 8px;
}
.caption p {
line-height: 1.5 !important;
}
.dark a {
color: currentColor;
}
.dark a:hover {
color: rgb(133, 223, 237);
}
article main aside {
@apply bg-neutral-100 dark:bg-neutral-800 p-4 rounded-lg mt-4 mb-4;
}
article main li > ul.nx-list-disc {
@apply mt-0;
}