Skip to content

Commit 89a0e52

Browse files
authored
Merge pull request #6 from bharat-vicky/patch-1
Refactored hero title and subtitle styles for better maintainability …
2 parents 93c8d61 + 1115053 commit 89a0e52

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

Diff for: unconference-2025/src/css/custom.css

+18-1
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,21 @@
4040

4141
.hero__subtitle {
4242
font-weight: bold;
43-
}
43+
}
44+
/* Default (light mode) styles for hero title and subtitle */
45+
.hero__title, .hero__subtitle {
46+
color: #fff; /* white text for light mode */
47+
text-shadow: 0 0 1em #007d8a; /* Retain text shadow */
48+
font-size: 32px;
49+
}
50+
51+
.hero__subtitle {
52+
font-weight: bold;
53+
}
54+
55+
/* Dark mode styles for hero title and subtitle */
56+
[data-theme='dark'] .hero__title,
57+
[data-theme='dark'] .hero__subtitle {
58+
color: #fff; /* White text for dark mode */
59+
text-shadow: 0 0 1em #0394a3; /* Adjust shadow color if needed */
60+
}

0 commit comments

Comments
 (0)