-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Expand file tree
/
Copy pathstyle.css
More file actions
202 lines (175 loc) · 4.52 KB
/
style.css
File metadata and controls
202 lines (175 loc) · 4.52 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
/* Custom CSS for tooltip styling */
.tooltip {
font-weight: bold;
text-decoration: none !important;
position: relative;
}
.tooltip::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 1px;
border-bottom: 1px dotted rgba(0, 0, 0, 0.8);
}
/* Light mode - black text with 80% opacity */
:root .tooltip,
[data-theme="light"] .tooltip,
.light .tooltip {
color: rgba(0, 0, 0, 0.8);
}
:root .tooltip::after,
[data-theme="light"] .tooltip::after,
.light .tooltip::after {
border-bottom-color: rgba(0, 0, 0, 0.8);
}
/* Dark mode - white text with 80% opacity */
[data-theme="dark"] .tooltip,
.dark .tooltip {
color: rgba(255, 255, 255, 0.8);
}
[data-theme="dark"] .tooltip::after,
.dark .tooltip::after {
border-bottom-color: rgba(255, 255, 255, 0.8);
}
/* Alternative selectors for different theme implementations */
@media (prefers-color-scheme: light) {
.tooltip {
color: rgba(0, 0, 0, 0.8);
}
.tooltip::after {
border-bottom-color: rgba(0, 0, 0, 0.8);
}
}
@media (prefers-color-scheme: dark) {
.tooltip {
color: rgba(255, 255, 255, 0.8);
}
.tooltip::after {
border-bottom-color: rgba(255, 255, 255, 0.8);
}
}
/* Word wrap for code and pre elements in table cells */
td pre,
td code {
word-wrap: break-word;
overflow-wrap: break-word;
word-break: break-word;
}
td pre {
white-space: pre-wrap;
}
/* Increase width of table cells containing code to reduce aggressive wrapping */
td:has(pre),
td:has(code) {
min-width: 240px;
width: auto;
}
/* Alternative fallback for browsers without :has() support */
td pre {
min-width: 200px;
}
td code {
min-width: 150px;
}
/* Roobert font for headings and body */
@font-face {
font-family: "Roobert";
src:
url("https://assets.ngrok.com/fonts/roobert/roobert-proportional-vf.woff2")
format("woff2 supports variations"),
url("https://assets.ngrok.com/fonts/roobert/roobert-proportional-vf.woff2")
format("woff2-variations");
font-weight: 300 900;
font-display: swap;
font-style: normal;
}
/* JetBrains Mono font for code blocks */
@font-face {
font-family: "JetBrains Mono";
src:
url("https://assets.ngrok.com/fonts/jetbrains/jetbrainsmono-wght.woff2")
format("woff2 supports variations"),
url("https://assets.ngrok.com/fonts/jetbrains/jetbrainsmono-wght.woff2")
format("woff2-variations");
font-weight: 100 800;
font-display: swap;
font-style: normal;
}
@font-face {
font-family: "JetBrains Mono";
src:
url("https://assets.ngrok.com/fonts/jetbrains/jetbrainsmono-italic-wght.woff2")
format("woff2 supports variations"),
url("https://assets.ngrok.com/fonts/jetbrains/jetbrainsmono-italic-wght.woff2")
format("woff2-variations");
font-weight: 100 800;
font-display: swap;
font-style: italic;
}
/* Apply JetBrains Mono to code elements */
code,
pre,
pre code,
.hljs,
.token {
font-family:
"JetBrains Mono",
ui-monospace,
SFMono-Regular,
Menlo,
Monaco,
Consolas,
Liberation Mono,
Courier New,
monospace !important;
}
/* Sign up button styling - light mode: black bg, white text */
#topbar-cta-button span.bg-primary-dark {
background-color: #121212 !important;
transition: background-color !important;
}
#topbar-cta-button a:hover span.bg-primary-dark {
background-color: #171717 !important;
}
#topbar-cta-button span.text-white {
color: #fff !important;
}
/* Sign up button styling - dark mode: white bg, black text */
.dark #topbar-cta-button span.bg-primary-dark,
[data-theme="dark"] #topbar-cta-button span.bg-primary-dark {
background-color: rgba(255, 255, 255, 0.85) !important;
transition: background-color !important;
}
.dark #topbar-cta-button a:hover span.bg-primary-dark,
[data-theme="dark"] #topbar-cta-button a:hover span.bg-primary-dark {
background-color: #fff !important;
}
.dark #topbar-cta-button span.text-white,
[data-theme="dark"] #topbar-cta-button span.text-white {
color: #000 !important;
}
/* Sign up button arrow icon - light mode: white */
#topbar-cta-button svg {
color: #fff !important;
}
/* Sign up button arrow icon - dark mode: black */
.dark #topbar-cta-button svg,
[data-theme="dark"] #topbar-cta-button svg {
color: #000 !important;
}
/* Footer: links stay on one line and can overflow; only in 768–800px do they wrap */
footer#footer a {
overflow: visible;
text-overflow: clip;
white-space: nowrap;
}
@media (min-width: 768px) and (max-width: 880px) {
footer#footer a {
white-space: normal;
}
}
.nav-tabs-item > div.absolute.bottom-0 {
height: 2px !important;
}