Skip to content

Commit 6dd1ab2

Browse files
authored
Update style.css
1 parent 63d8a59 commit 6dd1ab2

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

style.css

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ h1 {
3535
/* Headerbar */
3636
.headerbar {
3737
display: flex;
38-
background: rgba(239, 241, 245, 0.8);
38+
background: transparent !important;
3939
justify-content: center; /* Center the view switcher horizontally */
4040
align-items: center; /* Align items vertically in the center */
4141
height: 47px; /* Set the headerbar height to 47px */
@@ -49,7 +49,6 @@ h1 {
4949
.view-switcher {
5050
display: flex; /* Horizontally align the list items */
5151
justify-content: center; /* Center the items */
52-
gap: 0px; /* Space between items */
5352
padding: 0; /* Remove padding */
5453
}
5554

@@ -58,29 +57,39 @@ h1 {
5857
list-style: none; /* Remove bullet points */
5958
margin: 0;
6059
padding: 0;
60+
gap: 4px;
6161
}
6262

6363
.view-switcher li {
6464
display: inline-block;
6565
}
6666

6767
.view-switcher a {
68-
color: rgb(var(--ctp-latte-text-rgb));
68+
color: rgb(var(--ctp-latte-text-rgb)); /* Text color */
6969
text-decoration: none;
7070
font-weight: bold;
71-
padding: 8px 32px; /* Increased horizontal padding for wider boxes */
71+
width: 118px; /* Static width for the navigation items */
72+
height: 32px;
73+
display: flex; /* Align icon and text horizontally */
74+
align-items: center; /* Center items vertically */
75+
justify-content: center; /* Center text and icon within the fixed width */
76+
gap: 4px; /* Space between the icon and text */
7277
border-radius: 6px;
78+
transition: background-color 0.2s ease, color 0.2s ease; /* Add smooth color transition */
7379
}
7480

7581
.view-switcher a:hover,
7682
.view-switcher a:focus {
77-
background-color: rgb(var(--ctp-latte-overlay1-rgb)); /* Latte hover/focus */
78-
padding: 8px 32px; /* Ensure the padding is the same on hover/focus */
83+
background-color: rgba(124,127,147,0.3); /* Latte hover/focus */
7984
border-radius: 6px;
8085
}
8186

8287
.view-switcher .current {
8388
background-color: rgb(201, 207, 219, 0.5);
84-
padding: 8px 32px; /* Ensure the padding is the same for the current item */
8589
border-radius: 6px;
8690
}
91+
92+
/* Icon styling to match text color */
93+
.nav-icon {
94+
fill: red !important;
95+
}

0 commit comments

Comments
 (0)