-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathstyle.css
More file actions
168 lines (142 loc) · 4.42 KB
/
style.css
File metadata and controls
168 lines (142 loc) · 4.42 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
/* =========================
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;
}