|
| 1 | +/* Import the external Catppuccin palette */ |
1 | 2 | @import url('https://unpkg.com/@catppuccin/palette/css/catppuccin.css'); |
2 | 3 |
|
| 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 | + |
3 | 48 | /* View Switcher */ |
4 | 49 | .view-switcher { |
5 | 50 | display: flex; /* Horizontally align the list items */ |
|
29 | 74 |
|
30 | 75 | .view-switcher a:hover, |
31 | 76 | .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 */ |
33 | 78 | padding: 8px 32px; /* Ensure the padding is the same on hover/focus */ |
34 | 79 | border-radius: 6px; |
35 | 80 | } |
36 | 81 |
|
37 | 82 | .view-switcher .current { |
38 | | - background-color: rgb(var(--ctp-latte-crust-rgb)); |
| 83 | + background-color: rgb(201, 207, 219, 0.5); |
39 | 84 | padding: 8px 32px; /* Ensure the padding is the same for the current item */ |
40 | 85 | border-radius: 6px; |
41 | 86 | } |
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