-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme-dark.scss
271 lines (225 loc) · 5.11 KB
/
theme-dark.scss
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
/*-- scss:defaults --*/
// Use Cosmo theme as base with dark mode colors
$primary: #45a0f5;
$secondary: #adb5bd;
$success: #3fb618;
$info: #b07cc6;
$warning: #ff7518;
$danger: #ff4d4d;
// Dark theme specific colors
$body-bg: #1a1a1a;
$body-color: #e1e1e1;
$link-color: $primary;
$headings-color: $primary;
// Keep your existing defaults, but add/modify these navbar-specific variables:
$navbar-dark-color: rgba($body-color, 0.75) !important;
$navbar-dark-hover-color: rgba($body-color, 0.9) !important;
$navbar-dark-active-color: $body-color !important;
$navbar-dark-brand-color: $body-color !important;
$navbar-dark-brand-hover-color: $body-color !important;
// Fonts
$font-family-sans-serif: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !default;
$font-family-monospace: "Source Code Pro", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !default;
// Card and border colors
$card-border-color: rgba($primary, 0.2);
$card-cap-bg: rgba($primary, 0.1);
$card-bg: #242424;
// Code blocks
$code-bg: #2d2d2d;
$code-color: #e1e1e1;
/*-- scss:rules --*/
// Custom styling for dark mode
// Navbar styling for dark theme
.navbar {
background-color: $card-bg; // Use the same color as cards for consistency
.navbar-nav {
.nav-link {
color: $body-color !important;
opacity: 0.75;
&:hover {
opacity: 1;
}
&.active {
color: $primary !important;
opacity: 1;
}
}
}
// For brand/logo text if you have any
.navbar-brand {
color: $body-color !important;
}
// For the toggle button in mobile view
.navbar-toggler {
color: $body-color !important;
border-color: rgba($body-color, 0.1) !important;
}
// Social icons in navbar
.navbar-nav-scroll {
.nav-link {
img, svg {
opacity: 0.75;
&:hover {
opacity: 1;
}
}
}
}
}
// Social icons in dark mode
.social-icon {
filter: invert(1);
opacity: 0.9;
&:hover {
opacity: 1;
}
}
// Consultancy card and buttons
.card {
&.border-primary {
border-color: $primary !important;
background-color: $card-bg !important;
.card-body {
color: $body-color !important;
}
}
}
.btn-primary {
color: $body-color !important;
background-color: $primary !important;
border-color: $primary !important;
&:hover {
background-color: darken($primary, 10%) !important;
border-color: darken($primary, 10%) !important;
}
}
.btn-outline-primary {
color: $primary !important;
border-color: $primary !important;
background-color: transparent !important;
&:hover {
color: $body-color !important;
background-color: $primary !important;
}
}
.about-links {
margin-top: 1em;
}
.grid {
gap: 1.5rem;
}
.card {
transition: transform 0.2s;
background-color: $card-bg;
&:hover {
transform: translateY(-3px);
}
}
// Recent Updates section styling for dark theme
.grid {
// Blog post links
ul li {
a {
color: $body-color !important; // Use the main text color for better visibility
&:hover {
color: $primary !important;
text-decoration: underline;
}
}
// Date text
small, span, time {
color: $secondary !important;
}
}
}
// "View all posts" and similar links
.view-all-link,
[href$="→"],
[href*="posts"],
[href*="portfolio"] {
color: $primary !important;
&:hover {
color: lighten($primary, 15%) !important;
text-decoration: underline;
}
}
// Link styling for featured projects
.project-card {
a {
color: $primary !important;
&:hover {
color: lighten($primary, 15%) !important;
text-decoration: underline;
}
}
}
// Post listings
.post-preview {
margin-bottom: 1.5rem;
h3 {
margin-bottom: 0.25rem;
}
.post-meta {
color: $secondary;
font-size: 0.875rem;
}
}
// Emoji styling
.emoji {
font-size: 1.2em;
vertical-align: middle;
}
// Add some spacing
.mt-4 {
margin-top: 2rem !important;
}
.mb-4 {
margin-bottom: 2rem !important;
}
// Dark mode specific overrides
a {
color: $primary;
&:hover {
color: lighten($primary, 15%);
}
}
// Table styling
table {
background-color: $card-bg;
color: $body-color;
}
// Code block styling
pre {
background-color: $code-bg;
color: $code-color;
}
// Blockquote styling
blockquote {
border-left-color: $primary;
background-color: rgba($primary, 0.1);
}
// Blog listing styles
.listing-author {
font-size: 1rem;
color: $primary;
font-weight: 500;
}
.listing-date, .listing-reading-time {
font-size: 0.95rem;
color: $secondary;
opacity: 0.9;
}
.listing-title {
color: $primary !important;
text-decoration: none;
&:hover {
color: lighten($primary, 15%) !important;
text-decoration: none;
}
}
.quarto-listing-default .listing-item {
padding: 1em 0;
}
.quarto-listing-default .listing-item:not(:last-child) {
border-bottom: 1px solid rgba($primary, 0.2); // Slightly more visible border for dark theme
}