-
Notifications
You must be signed in to change notification settings - Fork 519
Expand file tree
/
Copy pathglobals.css
More file actions
213 lines (183 loc) · 4.98 KB
/
globals.css
File metadata and controls
213 lines (183 loc) · 4.98 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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
@import url('https://fonts.googleapis.com/css2?family=Domine:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
.prose-compact {
& > * + * {
margin-top: 0.75em;
margin-bottom: 0;
}
& h2 {
margin-top: 1.5em;
}
}
/* Feature section headers */
h2.feature-heading {
@apply text-4xl md:text-5xl lg:text-[56px] font-medium;
font-family: 'Domine', serif;
}
:root {
--background: 240 10% 3.9%;
--foreground: 0 0% 98%;
--card: 240 10% 3.9%;
--card-foreground: 0 0% 98%;
--popover: 240 10% 3.9%;
--popover-foreground: 0 0% 98%;
--primary: 0 0% 98%;
--primary-foreground: 240 5.9% 10%;
--secondary: 240 3.7% 15.9%;
--secondary-foreground: 0 0% 98%;
--muted: 240 3.7% 15.9%;
--muted-foreground: 240 5% 64.9%;
--accent: 240 3.7% 15.9%;
--accent-foreground: 240 4.8% 95.9%;
--destructive: 0 62.8% 30.6%;
--destructive-foreground: 0 0% 98%;
--border: 240 3.7% 15.9%;
--input: 240 3.7% 15.9%;
--ring: 240 4.9% 83.9%;
--sidebar-background: 240 5.9% 10%;
--sidebar-foreground: 240 4.8% 95.9%;
--sidebar-primary: 224.3 76.3% 48%;
--sidebar-primary-foreground: 0 0% 100%;
--sidebar-accent: 240 3.7% 15.9%;
--sidebar-accent-foreground: 240 4.8% 95.9%;
--sidebar-border: 240 3.7% 15.9%;
--sidebar-ring: 217.2 91.2% 59.8%;
}
}
@layer base {
* {
@apply border-border;
}
body {
@apply bg-background text-foreground;
}
}
/* Custom styles for the terminal */
.terminal {
@apply bg-black border border-zinc-800 rounded-md font-mono text-sm p-4;
text-shadow: 0 0 4px rgba(170, 255, 51, 0.1);
}
.terminal-command {
@apply flex items-center gap-2 text-white;
}
/* Codebuff specific styles */
.codebuff-container {
@apply max-w-7xl mx-auto px-4 sm:px-6 lg:px-8;
}
/* Full-width section styles */
.full-width-section {
@apply w-full;
margin-left: calc(-50vw + 50%);
margin-right: calc(-50vw + 50%);
padding-left: calc(50vw - 50%);
padding-right: calc(50vw - 50%);
}
.hero-heading {
@apply text-4xl md:text-5xl lg:text-6xl xl:text-7xl font-medium;
font-family: 'Domine', serif;
letter-spacing: 0.005em;
word-spacing: 0.005em;
/* Enable proper text shaping */
font-kerning: normal;
font-feature-settings: "kern" 1, "liga" 1;
text-rendering: optimizeLegibility;
}
.hero-subtext {
@apply text-lg md:text-xl text-zinc-300 max-w-3xl mx-auto font-paragraph;
}
/* Terminal demo section */
.terminal-demo-section {
@apply relative w-full flex justify-center text-left mt-12;
}
/* Glowing effect for primary elements */
.glow-effect {
box-shadow: 0 0 15px rgba(170, 255, 51, 0.5);
}
/* Code highlighting */
.highlight-line {
@apply relative;
}
.highlight-line::before {
content: '';
@apply absolute left-0 top-0 h-full w-1 bg-primary rounded-sm;
}
/* Custom terminal scrollbar */
.terminal-code::-webkit-scrollbar {
width: 8px;
height: 8px;
}
.terminal-code::-webkit-scrollbar-track {
@apply bg-zinc-900 rounded-md;
}
.terminal-code::-webkit-scrollbar-thumb {
@apply bg-zinc-700 rounded-md;
}
.terminal-code::-webkit-scrollbar-thumb:hover {
@apply bg-zinc-600;
}
/* Enhanced docs sidebar scrollbar */
.custom-scrollbar::-webkit-scrollbar {
width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
@apply bg-transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
@apply bg-border/60 rounded-full;
transition: background-color 0.2s ease;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
@apply bg-border;
}
.custom-scrollbar::-webkit-scrollbar-thumb:active {
@apply bg-foreground/20;
}
/* Firefox scrollbar */
.custom-scrollbar {
scrollbar-width: thin;
scrollbar-color: hsl(var(--border) / 0.6) transparent;
}
/* Code blocks within headings - lighter styling to prevent mobile layout issues */
:where(h1, h2, h3, h4, h5, h6) code {
@apply border-0 text-current;
padding: 0.15em 0.75em;
margin: 0 0.4em;
font-size: 0.9em;
font-weight: inherit;
border-radius: 2px;
background-color: rgba(255, 255, 255, 0.1);
}
/* Ensure proper text wrapping in headings on mobile */
@media (max-width: 767px) {
:where(h1, h2, h3, h4, h5, h6) {
/* Revert to normal text flow for proper kerning */
display: block;
line-height: 1.2;
margin-top: 0rem;
/* Enable proper text shaping and kerning */
font-kerning: normal;
font-feature-settings: "kern" 1, "liga" 1;
text-rendering: optimizeLegibility;
}
/* Keep code snippets from breaking on mobile */
:where(h1, h2, h3, h4, h5, h6) code {
white-space: nowrap;
}
/* Specific spacing fixes for hero text */
.hero-heading {
line-height: 1.15;
margin-bottom: 2rem;
text-wrap: balance;
}
.hero-subtext {
line-height: 1.5;
margin-bottom: 2rem;
letter-spacing: 0.015em;
word-spacing: 0.01em;
}
}