forked from hashgraph/hedera-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
274 lines (231 loc) · 6.48 KB
/
Copy pathstyle.css
File metadata and controls
274 lines (231 loc) · 6.48 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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
/* =========================
Hedera Styrene Webfonts
========================= */
@font-face {
font-family: "Styrene Light Web";
src: url("/public/fonts/styrene/StyreneA-Light-Web.woff2") format("woff2");
font-weight: 500;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Styrene A Medium";
src: url("/public/fonts/styrene/StyreneA-Medium-Web.woff2") format("woff2");
font-weight: 600;
font-style: normal;
font-display: swap;
}
/* 1. Fix the @font-face weight mapping for the Bold variant */
@font-face {
font-family: "Styrene Bold";
src: url("/public/fonts/styrene/StyreneA-Bold-Web.woff2") format("woff2");
font-weight: 700; /* was 600 — now correctly mapped to bold */
font-style: normal;
font-display: swap;
}
/* 2. Restore bold rendering for strong and b elements */
strong, b,
.prose strong, .prose b {
font-family: "Styrene Bold", sans-serif !important;
font-weight: 700 !important;
}
/* =========================
Global Font Setup
========================= */
:root {
--font-body: "Styrene Light Web";
--font-heading: "Styrene A Medium";
}
html, body {
font-family: var(--font-body);
font-weight: 500;
letter-spacing: -0.01em;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
/* =========================
Hedera type weight rules
========================= */
/* headings should use Styrene A Medium */
h1, h2, h3, h4, h5, h6,
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
font-family: "Styrene A Medium", sans-serif !important;
font-weight: 400 !important; /* medium */
letter-spacing: -0.015em !important;
line-height: 1.3 !important;
color: inherit;
}
/* body and list text stay light */
p, li, span, .prose p, .prose li {
font-weight: 400 !important; /* light */
letter-spacing: -0.01em;
}
/* =========================
Existing Layout + Color Rules
========================= */
/* card image sizing */
.card img {
max-height: 200px;
}
.sm\:grid-cols-3 .card img {
max-height: 120px;
}
/* normalize layout and spacing */
nav.text-sm {
display: flex !important;
align-items: center !important;
gap: 4px !important;
}
nav.text-sm ul > * {
margin: 4px !important;
}
/* shared button styling */
nav.text-sm a[href*="hackathon"],
nav.text-sm a[href*="portal"] {
display: inline-flex !important;
align-items: center;
justify-content: center;
border-radius: 12px !important;
font-size: 14px !important;
font-weight: 400 !important;
line-height: 20px !important;
height: 34px !important;
padding: 6px 16px !important;
text-decoration: none !important;
transition: all 0.15s ease !important;
box-shadow: none !important;
}
/* hackathon — transparent */
nav.text-sm a[href*="hackathon"],
nav.text-sm li a[href*="hackathon"],
nav.text-sm ul li a[href*="hackathon"] {
background-color: transparent !important;
color: #000000 !important;
border: 1px solid rgba(0, 0, 0, 0.3) !important; /* darker gray border */
}
nav.text-sm a[href*="hackathon"]:hover,
nav.text-sm li a[href*="hackathon"]:hover,
nav.text-sm ul li a[href*="hackathon"]:hover {
background-color: rgba(0, 0, 0, 0.08) !important;
border: 1px solid rgba(0, 0, 0, 0.5) !important; /* darker hover border */
}
/* ===============================
DARK MODE — transparent buttons
=============================== */
/* hackathon */
.dark nav.text-sm a[href*="hackathon"],
[data-theme='dark'] nav.text-sm a[href*="hackathon"] {
background-color: transparent !important;
color: #f3f4f6 !important; /* gray-100 */
border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.dark nav.text-sm a[href*="hackathon"]:hover,
[data-theme='dark'] nav.text-sm a[href*="hackathon"]:hover {
background-color: rgba(255, 255, 255, 0.08) !important; /* subtle glow */
border: 1px solid rgba(255, 255, 255, 0.15) !important;
color: #ffffff !important;
}
/* icon fix — ensure visibility in dark mode */
.dark nav.text-sm a svg,
[data-theme='dark'] nav.text-sm a svg {
filter: brightness(1.5) contrast(1.3) !important;
opacity: 1 !important;
}
/* make hackathon icon white only in dark mode */
.dark nav.text-sm a[href*="hackathon"] img,
.dark nav.text-sm a[href*="hackathon"] svg,
[data-theme='dark'] nav.text-sm a[href*="hackathon"] img,
[data-theme='dark'] nav.text-sm a[href*="hackathon"] svg {
filter: brightness(0) invert(1) !important; /* turns dark icons white */
opacity: 1 !important;
}
/* Hiero CLI feature coverage heatmap (feature-coverage-gap-report.mdx) */
.hiero-cli-coverage-heatmap-wrap {
margin: 1.5rem 0;
overflow-x: auto;
border-radius: 8px;
border: 1px solid rgb(229 231 235);
background: rgb(249 250 251);
}
.dark .hiero-cli-coverage-heatmap-wrap,
[data-theme='dark'] .hiero-cli-coverage-heatmap-wrap {
border-color: rgb(55 65 81);
background: rgb(17 24 39 / 0.35);
}
.hiero-cli-coverage-heatmap {
display: flex;
flex-direction: column;
gap: 10px;
padding: 16px;
min-width: min(100%, 720px);
}
.hiero-cli-coverage-heatmap-row {
display: grid;
grid-template-columns: minmax(160px, 220px) 1fr;
gap: 12px;
align-items: center;
}
@media (max-width: 640px) {
.hiero-cli-coverage-heatmap-row {
grid-template-columns: 1fr;
}
}
.hiero-cli-coverage-heatmap-area {
font-size: 0.875rem;
font-weight: 600;
line-height: 1.3;
}
.hiero-cli-coverage-heatmap-strip {
display: flex;
flex-wrap: wrap;
gap: 4px;
align-items: center;
}
.hiero-cli-coverage-dot {
flex: 0 0 auto;
width: 14px;
height: 14px;
border-radius: 3px;
display: inline-block;
box-sizing: border-box;
border: 1px solid rgba(0, 0, 0, 0.08);
}
.hiero-cli-coverage-dot--yes {
background: #16a34a;
}
.hiero-cli-coverage-dot--partial {
background: #d97706;
}
.hiero-cli-coverage-dot--no {
background: #dc2626;
}
.dark .hiero-cli-coverage-dot,
[data-theme='dark'] .hiero-cli-coverage-dot {
border-color: rgba(255, 255, 255, 0.12);
}
.dark .hiero-cli-coverage-dot--yes,
[data-theme='dark'] .hiero-cli-coverage-dot--yes {
background: #22c55e;
}
.dark .hiero-cli-coverage-dot--partial,
[data-theme='dark'] .hiero-cli-coverage-dot--partial {
background: #f59e0b;
}
.dark .hiero-cli-coverage-dot--no,
[data-theme='dark'] .hiero-cli-coverage-dot--no {
background: #f87171;
}
.hiero-cli-coverage-heatmap-legend {
display: flex;
flex-wrap: wrap;
gap: 1rem 1.5rem;
align-items: center;
margin: 0.75rem 0 0;
font-size: 0.875rem;
}
.hiero-cli-coverage-heatmap-legend > span {
display: inline-flex;
align-items: center;
gap: 6px;
}