Skip to content

Commit b917dd9

Browse files
authored
Update style.css
1 parent 19e8b3b commit b917dd9

File tree

1 file changed

+33
-37
lines changed

1 file changed

+33
-37
lines changed

style.css

Lines changed: 33 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
/* Import the external Catppuccin palette */
21
@import url('https://unpkg.com/@catppuccin/palette/css/catppuccin.css');
32

4-
/* Global Styles */
53
:root {
64
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;
109
}
1110

1211
@supports (font-variation-settings: normal) {
@@ -16,80 +15,77 @@
1615
}
1716

1817
body {
19-
background: rgb(var(--ctp-latte-base-rgb)); /* Default to latte theme */
18+
background: rgb(var(--ctp-latte-base-rgb));
2019
margin: 0;
20+
font-size: 1rem;
2121
}
2222

2323
.content {
24-
margin: 0px 16px 16px 8px;
25-
padding-top: 76px;
26-
24+
margin: 0 1rem 1rem 1rem;
25+
padding-top: 4.75rem;
2726
}
2827

2928
h1 {
3029
color: var(--ctp-latte-lavender);
3130
font-size: 4.5rem;
3231
font-weight: 900;
3332
letter-spacing: -0.04em;
34-
line-height: 0.9em;
33+
line-height: 1.25;
3534
margin: 0 0 0.25em;
3635
}
3736

38-
/* Headerbar */
3937
.headerbar {
4038
display: flex;
4139
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%;
4745
position: fixed;
4846
backdrop-filter: blur(12px);
49-
z-index: 9999; /* Ensure it appears above other content */
47+
z-index: 9999;
5048
}
5149

52-
/* View Switcher */
5350
.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;
5754
}
5855

5956
.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;
6259
margin: 0;
6360
padding: 0;
64-
gap: 4px;
61+
gap: 0.25rem;
6562
}
6663

6764
.view-switcher li {
6865
display: inline-block;
6966
}
7067

7168
.view-switcher a {
72-
color: rgb(var(--ctp-latte-text-rgb)); /* Text color */
69+
color: rgb(var(--ctp-latte-text-rgb));
7370
text-decoration: none;
7471
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;
8380
}
8481

8582
.view-switcher a:hover,
8683
.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;
8986
}
9087

9188
.view-switcher .current {
9289
background-color: rgb(201, 207, 219, 0.5);
93-
border-radius: 6px;
90+
border-radius: 0.375rem;
9491
}
95-

0 commit comments

Comments
 (0)