|
1 | | -/* Root Variables */ |
2 | | -:root { |
3 | | - --accent-color: rgb(114, 135, 253); |
4 | | - --background-light: white; |
5 | | - --background-dark: #121212; |
6 | | - --text-light: black; |
7 | | - --text-dark: white; |
8 | | - --nav-background-light: rgba(255, 255, 255, 0.7); |
9 | | - --nav-background-dark: rgba(30, 30, 30, 0.8); |
10 | | - |
11 | | - font-family: Inter, sans-serif; |
12 | | - font-feature-settings: 'liga' 1, 'calt' 1; /* Chrome fix */ |
13 | | -} |
14 | | - |
15 | | -@supports (font-variation-settings: normal) { |
16 | | - :root { |
17 | | - font-family: InterVariable, sans-serif; |
18 | | - } |
19 | | -} |
| 1 | +@import url('https://unpkg.com/@catppuccin/palette/css/catppuccin.css'); |
20 | 2 |
|
21 | | -/* Dark Mode Support */ |
22 | | -@media (prefers-color-scheme: dark) { |
23 | | - :root { |
24 | | - --background-light: var(--background-dark); |
25 | | - --text-light: var(--text-dark); |
26 | | - --nav-background-light: var(--nav-background-dark); |
27 | | - } |
| 3 | +/* View Switcher */ |
| 4 | +.view-switcher { |
| 5 | + display: flex; /* Horizontally align the list items */ |
| 6 | + justify-content: center; /* Center the items */ |
| 7 | + gap: 0px; /* Space between items */ |
| 8 | + padding: 0; /* Remove padding */ |
28 | 9 | } |
29 | 10 |
|
30 | | -/* Global Styles */ |
31 | | -body { |
32 | | - background: var(--background-light); |
33 | | - color: var(--text-light); |
| 11 | +.view-switcher ul { |
| 12 | + display: flex; /* Ensure the <ul> is also displayed in a row */ |
| 13 | + list-style: none; /* Remove bullet points */ |
34 | 14 | margin: 0; |
35 | 15 | padding: 0; |
36 | | - display: flex; |
37 | | - flex-direction: column; |
38 | | - align-items: center; |
39 | 16 | } |
40 | 17 |
|
41 | | -/* Navigation */ |
42 | | -nav { |
43 | | - background: var(--nav-background-light); |
44 | | - padding: 12px 24px; |
45 | | - border-radius: 10px; |
46 | | - display: flex; |
47 | | - justify-content: center; |
48 | | - box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); |
49 | | - backdrop-filter: blur(10px); |
| 18 | +.view-switcher li { |
| 19 | + display: inline-block; |
50 | 20 | } |
51 | 21 |
|
52 | | -nav ul { |
53 | | - list-style: none; |
54 | | - padding: 0; |
55 | | - margin: 0; |
56 | | - display: flex; |
57 | | - gap: 15px; |
| 22 | +.view-switcher a { |
| 23 | + color: rgb(var(--ctp-latte-text-rgb)); |
| 24 | + text-decoration: none; |
| 25 | + font-weight: bold; |
| 26 | + padding: 8px 32px; /* Increased horizontal padding for wider boxes */ |
| 27 | + border-radius: 6px; |
58 | 28 | } |
59 | 29 |
|
60 | | -nav li { |
61 | | - display: inline-block; |
| 30 | +.view-switcher a:hover, |
| 31 | +.view-switcher a:focus { |
| 32 | + background-color: rgba(var(--ctp-latte-overlay1-rgb)), 1); |
| 33 | + padding: 8px 32px; /* Ensure the padding is the same on hover/focus */ |
| 34 | + border-radius: 6px; |
62 | 35 | } |
63 | 36 |
|
64 | | -nav a { |
65 | | - text-decoration: none; |
66 | | - color: var(--text-light); |
67 | | - font-weight: bold; |
68 | | - padding: 10px 15px; |
| 37 | +.view-switcher .current { |
| 38 | + background-color: rgb(var(--ctp-latte-crust-rgb)); |
| 39 | + padding: 8px 32px; /* Ensure the padding is the same for the current item */ |
69 | 40 | border-radius: 6px; |
70 | | - transition: background var(--global-transition-time), color var(--global-transition-time); |
71 | 41 | } |
72 | 42 |
|
73 | | -nav a:hover { |
74 | | - background: var(--accent-color); |
75 | | - color: white; |
| 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 | + background-color: rgb(--ctp-latte-mantle-rgb); |
| 50 | + padding: 0; /* Remove padding around the header */ |
| 51 | + width: 100%; /* Ensure the header bar spans the full width */ |
76 | 52 | } |
77 | 53 |
|
78 | | -/* Headings */ |
79 | | -h1 { |
80 | | - color: var(--accent-color); |
81 | | - font-size: 4rem; |
82 | | - font-weight: 900; |
83 | | - text-align: center; |
| 54 | +body { |
| 55 | + background: rgb(var(--ctp-latte-base-rgb)); |
84 | 56 | } |
85 | 57 |
|
86 | | -/* Content */ |
87 | | -.content { |
88 | | - max-width: 800px; |
89 | | - padding: 20px; |
90 | | - text-align: center; |
| 58 | +h1 { |
| 59 | + color: var(--ctp-latte-lavender); |
| 60 | + font-size: 4.5rem; |
| 61 | + font-weight: 900; |
| 62 | + letter-spacing: -0.04em; |
| 63 | + line-height: 0.9em; |
| 64 | + margin: 0 0 0.25em; |
91 | 65 | } |
92 | 66 |
|
93 | | -/* Blockquote */ |
94 | | -blockquote { |
95 | | - background: rgba(0, 0, 0, 0.05); |
96 | | - padding: 15px 20px; |
97 | | - border-left: 4px solid var(--accent-color); |
98 | | - font-style: italic; |
99 | | - margin: 20px 0; |
100 | | - border-radius: 5px; |
| 67 | +:root { |
| 68 | + font-family: Inter, sans-serif; |
| 69 | + font-feature-settings: 'liga' 1, 'calt' 1; /* Chrome fix */ |
101 | 70 | } |
102 | 71 |
|
103 | | -/* Dark Mode Blockquote */ |
104 | | -@media (prefers-color-scheme: dark) { |
105 | | - blockquote { |
106 | | - background: rgba(255, 255, 255, 0.1); |
| 72 | +@supports (font-variation-settings: normal) { |
| 73 | + :root { |
| 74 | + font-family: InterVariable, sans-serif; |
107 | 75 | } |
108 | 76 | } |
0 commit comments