Skip to content

Commit 58cec01

Browse files
authored
Update style.css
1 parent b874ac6 commit 58cec01

File tree

1 file changed

+47
-61
lines changed

1 file changed

+47
-61
lines changed

style.css

Lines changed: 47 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,50 @@
1+
/* Import the external Catppuccin palette */
12
@import url('https://unpkg.com/@catppuccin/palette/css/catppuccin.css');
23

4+
/* Global Styles */
5+
:root {
6+
font-family: Inter, sans-serif;
7+
font-feature-settings: 'liga' 1, 'calt' 1; /* Chrome fix */
8+
word-wrap: break-word; /* Break long words and force line wrapping */
9+
overflow-wrap: break-word; /* Ensures long words break */
10+
}
11+
12+
@supports (font-variation-settings: normal) {
13+
:root {
14+
font-family: InterVariable, sans-serif;
15+
}
16+
}
17+
18+
body {
19+
background: rgb(var(--ctp-latte-base-rgb)); /* Default to latte theme */
20+
}
21+
22+
h1 {
23+
color: var(--ctp-latte-lavender);
24+
font-size: 4.5rem;
25+
font-weight: 900;
26+
letter-spacing: -0.04em;
27+
line-height: 0.9em;
28+
margin: 0 0 0.25em;
29+
}
30+
31+
.content {
32+
padding-top: 50px;
33+
}
34+
35+
/* Headerbar */
36+
.headerbar {
37+
display: flex;
38+
background: rgba(239, 241, 245, 0.8);
39+
justify-content: center; /* Center the view switcher horizontally */
40+
align-items: center; /* Align items vertically in the center */
41+
height: 47px; /* Set the headerbar height to 47px */
42+
padding: 0; /* Remove padding around the header */
43+
width: 100%; /* Ensure the header bar spans the full width */
44+
position: fixed;
45+
backdrop-filter: blur(8px);
46+
}
47+
348
/* View Switcher */
449
.view-switcher {
550
display: flex; /* Horizontally align the list items */
@@ -29,72 +74,13 @@
2974

3075
.view-switcher a:hover,
3176
.view-switcher a:focus {
32-
background-color: rgba(var(--ctp-latte-overlay1-rgb), 1); /* Latte hover/focus */
77+
background-color: rgb(var(--ctp-latte-overlay1-rgb)); /* Latte hover/focus */
3378
padding: 8px 32px; /* Ensure the padding is the same on hover/focus */
3479
border-radius: 6px;
3580
}
3681

3782
.view-switcher .current {
38-
background-color: rgb(var(--ctp-latte-crust-rgb));
83+
background-color: rgb(201, 207, 219, 0.5);
3984
padding: 8px 32px; /* Ensure the padding is the same for the current item */
4085
border-radius: 6px;
4186
}
42-
43-
/* Headerbar */
44-
.headerbar {
45-
display: flex;
46-
justify-content: center; /* Center the view switcher horizontally */
47-
align-items: center; /* Align items vertically in the center */
48-
height: 47px; /* Set the headerbar height to 47px */
49-
padding: 0; /* Remove padding around the header */
50-
width: 100%; /* Ensure the header bar spans the full width */
51-
}
52-
53-
body {
54-
background: rgb(var(--ctp-latte-base-rgb)); /* Default to latte theme */
55-
}
56-
57-
h1 {
58-
color: var(--ctp-latte-lavender);
59-
font-size: 4.5rem;
60-
font-weight: 900;
61-
letter-spacing: -0.04em;
62-
line-height: 0.9em;
63-
margin: 0 0 0.25em;
64-
}
65-
66-
:root {
67-
font-family: Inter, sans-serif;
68-
font-feature-settings: 'liga' 1, 'calt' 1; /* Chrome fix */
69-
}
70-
71-
@supports (font-variation-settings: normal) {
72-
:root {
73-
font-family: InterVariable, sans-serif;
74-
}
75-
}
76-
77-
/* Dark mode styles */
78-
@media (prefers-color-scheme: dark) {
79-
/* View Switcher */
80-
.view-switcher a {
81-
color: rgb(var(--ctp-frappe-text-rgb)); /* Frappe text color */
82-
}
83-
84-
.view-switcher a:hover,
85-
.view-switcher a:focus {
86-
background-color: rgba(var(--ctp-frappe-overlay1-rgb), 1); /* Frappe hover/focus */
87-
}
88-
89-
.view-switcher .current {
90-
background-color: rgb(var(--ctp-frappe-crust-rgb)); /* Frappe current item */
91-
}
92-
93-
body {
94-
background: rgb(var(--ctp-frappe-base-rgb)); /* Frappe background */
95-
}
96-
97-
h1 {
98-
color: var(--ctp-frappe-lavender); /* Frappe lavender color */
99-
}
100-
}

0 commit comments

Comments
 (0)