Skip to content

Commit 4d0e1cf

Browse files
committed
add custom.scss
1 parent 7a6501d commit 4d0e1cf

File tree

1 file changed

+186
-0
lines changed

1 file changed

+186
-0
lines changed

assets/css/custom.scss

Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
1+
// ============================================================================
2+
// Custom overrides for al-folio
3+
// Force light theme only — disable dark mode behavior completely
4+
// ============================================================================
5+
6+
// ---------------------------------------------------------------------------
7+
// 1. Core light theme enforcement
8+
// ---------------------------------------------------------------------------
9+
10+
11+
// .navbar,
12+
// footer {
13+
// background-color: var(--navbar-bg-color) !important;
14+
// color: var(--navbar-text-color) !important;
15+
// border-color: var(--global-border-color) !important;
16+
// }
17+
18+
.navbar {
19+
background-color: #ffffff !important; /* solid white background */
20+
color: #000000 !important;
21+
border-bottom: 1px solid #e0e0e0 !important;
22+
backdrop-filter: none !important; /* remove blur transparency if any */
23+
}
24+
25+
.navbar.scrolled {
26+
background-color: #ffffff !important; /* stay solid even when scrolling */
27+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
28+
}
29+
30+
a,
31+
a:hover,
32+
a:focus {
33+
color: var(--global-hover-color) !important;
34+
}
35+
36+
code,
37+
pre {
38+
background-color: var(--global-code-bg-color) !important;
39+
color: #d63384 !important;
40+
}
41+
42+
.card,
43+
.post,
44+
.project-card {
45+
background-color: #ffffff !important;
46+
color: #000000 !important;
47+
border-color: #e0e0e0 !important;
48+
}
49+
50+
// ---------------------------------------------------------------------------
51+
// 3. Remove dark shadows or filters
52+
// ---------------------------------------------------------------------------
53+
54+
img,
55+
figure img {
56+
filter: none !important;
57+
}
58+
59+
// ---------------------------------------------------------------------------
60+
// 4. Optional: Slightly brighter syntax highlight background
61+
// ---------------------------------------------------------------------------
62+
63+
.highlight {
64+
background-color: #f8f8f8 !important;
65+
}
66+
67+
// ---------------------------------------------------------------------------
68+
// 5. Prevent automatic switching from prefers-color-scheme
69+
// ---------------------------------------------------------------------------
70+
71+
@media (prefers-color-scheme: dark) {
72+
html,
73+
body {
74+
background-color: #ffffff !important;
75+
color: #000000 !important;
76+
}
77+
}
78+
79+
80+
/* --- Navigation / navbar tweaks --- */
81+
// .navbar a {
82+
// font-weight: 500 !important;
83+
// padding: 0.6em 1.2em !important;
84+
// }
85+
// .navbar a:hover {
86+
// color: var(--global-hover-color) !important;
87+
// text-decoration: underline !important;
88+
// }
89+
90+
/* --- Section spacing & headings --- */
91+
section {
92+
margin: 3rem 0;
93+
}
94+
h2 {
95+
margin-bottom: 1.5rem;
96+
font-size: 2rem;
97+
}
98+
h3 {
99+
margin-bottom: 1rem;
100+
font-size: 1.5rem;
101+
}
102+
103+
/* --- Publication list styling --- */
104+
.publication-item {
105+
display: flex;
106+
align-items: flex-start;
107+
margin-bottom: 1.2rem;
108+
}
109+
.publication-item img {
110+
width: 80px;
111+
margin-right: 1rem;
112+
}
113+
.publication-item .details {
114+
flex: 1;
115+
}
116+
117+
/* --- People / team grid --- */
118+
.people-grid {
119+
display: grid;
120+
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
121+
gap: 2rem;
122+
}
123+
.people-card {
124+
text-align: center;
125+
}
126+
.people-card img {
127+
border-radius: 50%;
128+
width: 120px;
129+
height: 120px;
130+
object-fit: cover;
131+
}
132+
.people-card h4 {
133+
margin-top: 0.5rem;
134+
}
135+
136+
/* --- Typography & paragraph spacing --- */
137+
body {
138+
font-size: 1rem;
139+
line-height: 1.6;
140+
}
141+
p {
142+
margin-bottom: 1.2rem;
143+
}
144+
blockquote {
145+
margin: 1.5rem 0;
146+
padding-left: 1rem;
147+
border-left: 4px solid var(--global-border-color);
148+
color: var(--global-text-color);
149+
font-style: italic;
150+
}
151+
152+
/* --- Responsive images --- */
153+
img {
154+
max-width: 100%;
155+
height: auto;
156+
}
157+
158+
159+
160+
/* Make project category headings darker and more readable */
161+
h2.category {
162+
color: var(--global-text-color) !important;
163+
font-weight: 400;
164+
margin-top: 1.5rem;
165+
margin-bottom: 1rem;
166+
}
167+
168+
169+
170+
// /* Compact profile cards */
171+
// .profile {
172+
// max-width: 140px;
173+
// margin: 0.25rem 0.75rem 0.25rem 0;
174+
// }
175+
176+
// .profile img {
177+
// max-width: 100px !important;
178+
// }
179+
180+
// .more-info {
181+
// font-size: 0.85rem;
182+
// }
183+
184+
// .post article hr {
185+
// margin: 0.5rem 0;
186+
// }

0 commit comments

Comments
 (0)