Skip to content

Commit 78819fb

Browse files
authored
Refactor background styles and card transparency
Updated background styles and made cards transparent to showcase the gradient background.
1 parent 635300b commit 78819fb

1 file changed

Lines changed: 23 additions & 9 deletions

File tree

assets/theme.css

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77
--c4: #a05b5b; /* secondary accent */
88

99
/* Base */
10-
background-color: var(--c0);
1110
color: #ffffff;
1211

13-
/* Sensible defaults used across the site */
12+
/* Site vars */
1413
--background: var(--c0);
1514
--card-background: var(--c1);
1615
--text: #ffffff;
@@ -22,15 +21,32 @@
2221
--link: var(--c4);
2322
}
2423

25-
/* Page background */
24+
/* ✅ Gradient page background (grey -> surface tint) */
25+
html, body {
26+
min-height: 100%;
27+
}
28+
2629
body {
27-
background: var(--c0) !important;
2830
color: #ffffff !important;
31+
32+
/* nice “shaded” background */
33+
background:
34+
radial-gradient(1200px 700px at 50% -10%, rgba(37, 0, 0, 0.55), rgba(37, 0, 0, 0) 60%),
35+
linear-gradient(180deg, var(--c0) 0%, #1b1a1a 35%, rgba(37, 0, 0, 0.35) 70%, var(--c0) 100%) !important;
36+
37+
background-attachment: fixed;
2938
}
3039

31-
/* Cards / panels */
32-
main, section, .container, .card, .box, .markdown, .shadow {
33-
background: var(--c1) !important;
40+
/* ✅ Make the big wrapper transparent so the gradient shows */
41+
main, section, .container, .markdown, .shadow {
42+
background: transparent !important;
43+
border-color: rgba(201, 177, 177, 0.20) !important;
44+
}
45+
46+
/* ✅ Cards / panels become the “surface” */
47+
.card, .box {
48+
background: rgba(37, 0, 0, 0.78) !important; /* surface with some translucency */
49+
backdrop-filter: blur(3px);
3450
border-color: rgba(201, 177, 177, 0.20) !important;
3551
}
3652

@@ -70,5 +86,3 @@ svg text {
7086
}
7187

7288
footer { display: none !important; }
73-
74-

0 commit comments

Comments
 (0)