|
1 | | -/* Import the external Catppuccin palette */ |
2 | 1 | @import url('https://unpkg.com/@catppuccin/palette/css/catppuccin.css'); |
3 | 2 |
|
4 | | -/* Global Styles */ |
5 | 3 | :root { |
6 | 4 | 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 */ |
| 5 | + font-feature-settings: 'liga' 1, 'calt' 1; |
| 6 | + word-wrap: break-word; |
| 7 | + overflow-wrap: break-word; |
| 8 | + font-size: 16px; |
10 | 9 | } |
11 | 10 |
|
12 | 11 | @supports (font-variation-settings: normal) { |
|
16 | 15 | } |
17 | 16 |
|
18 | 17 | body { |
19 | | - background: rgb(var(--ctp-latte-base-rgb)); /* Default to latte theme */ |
| 18 | + background: rgb(var(--ctp-latte-base-rgb)); |
20 | 19 | margin: 0; |
| 20 | + font-size: 1rem; |
21 | 21 | } |
22 | 22 |
|
23 | 23 | .content { |
24 | | - margin: 0px 16px 16px 8px; |
25 | | - padding-top: 76px; |
26 | | - |
| 24 | + margin: 0 1rem 1rem 1rem; |
| 25 | + padding-top: 4.75rem; |
27 | 26 | } |
28 | 27 |
|
29 | 28 | h1 { |
30 | 29 | color: var(--ctp-latte-lavender); |
31 | 30 | font-size: 4.5rem; |
32 | 31 | font-weight: 900; |
33 | 32 | letter-spacing: -0.04em; |
34 | | - line-height: 0.9em; |
| 33 | + line-height: 1.25; |
35 | 34 | margin: 0 0 0.25em; |
36 | 35 | } |
37 | 36 |
|
38 | | -/* Headerbar */ |
39 | 37 | .headerbar { |
40 | 38 | display: flex; |
41 | 39 | background: rgba(239, 241, 245, 0.8); |
42 | | - justify-content: center; /* Center the view switcher horizontally */ |
43 | | - align-items: center; /* Align items vertically in the center */ |
44 | | - height: 47px; /* Set the headerbar height to 47px */ |
45 | | - padding: 0; /* Remove padding around the header */ |
46 | | - width: 100%; /* Ensure the header bar spans the full width */ |
| 40 | + justify-content: center; |
| 41 | + align-items: center; |
| 42 | + height: 2.9375rem; |
| 43 | + padding: 0; |
| 44 | + width: 100%; |
47 | 45 | position: fixed; |
48 | 46 | backdrop-filter: blur(12px); |
49 | | - z-index: 9999; /* Ensure it appears above other content */ |
| 47 | + z-index: 9999; |
50 | 48 | } |
51 | 49 |
|
52 | | -/* View Switcher */ |
53 | 50 | .view-switcher { |
54 | | - display: flex; /* Horizontally align the list items */ |
55 | | - justify-content: center; /* Center the items */ |
56 | | - padding: 0; /* Remove padding */ |
| 51 | + display: flex; |
| 52 | + justify-content: center; |
| 53 | + padding: 0; |
57 | 54 | } |
58 | 55 |
|
59 | 56 | .view-switcher ul { |
60 | | - display: flex; /* Ensure the <ul> is also displayed in a row */ |
61 | | - list-style: none; /* Remove bullet points */ |
| 57 | + display: flex; |
| 58 | + list-style: none; |
62 | 59 | margin: 0; |
63 | 60 | padding: 0; |
64 | | - gap: 4px; |
| 61 | + gap: 0.25rem; |
65 | 62 | } |
66 | 63 |
|
67 | 64 | .view-switcher li { |
68 | 65 | display: inline-block; |
69 | 66 | } |
70 | 67 |
|
71 | 68 | .view-switcher a { |
72 | | - color: rgb(var(--ctp-latte-text-rgb)); /* Text color */ |
| 69 | + color: rgb(var(--ctp-latte-text-rgb)); |
73 | 70 | text-decoration: none; |
74 | 71 | font-weight: bold; |
75 | | - width: 118px; /* Static width for the navigation items */ |
76 | | - height: 32px; |
77 | | - display: flex; /* Align icon and text horizontally */ |
78 | | - align-items: center; /* Center items vertically */ |
79 | | - justify-content: center; /* Center text and icon within the fixed width */ |
80 | | - gap: 4px; /* Space between the icon and text */ |
81 | | - border-radius: 6px; |
82 | | - transition: background-color 0.2s ease, color 0.2s ease; /* Add smooth color transition */ |
| 72 | + width: 7.375rem; |
| 73 | + height: 2rem; |
| 74 | + display: flex; |
| 75 | + align-items: center; |
| 76 | + justify-content: center; |
| 77 | + gap: 0.25rem; |
| 78 | + border-radius: 0.375rem; |
| 79 | + transition: background-color 0.2s ease, color 0.2s ease; |
83 | 80 | } |
84 | 81 |
|
85 | 82 | .view-switcher a:hover, |
86 | 83 | .view-switcher a:focus { |
87 | | - background-color: rgba(124,127,147,0.3); /* Latte hover/focus */ |
88 | | - border-radius: 6px; |
| 84 | + background-color: rgba(124,127,147,0.3); |
| 85 | + border-radius: 0.375rem; |
89 | 86 | } |
90 | 87 |
|
91 | 88 | .view-switcher .current { |
92 | 89 | background-color: rgb(201, 207, 219, 0.5); |
93 | | - border-radius: 6px; |
| 90 | + border-radius: 0.375rem; |
94 | 91 | } |
95 | | - |
0 commit comments