|
35 | 35 | /* Headerbar */ |
36 | 36 | .headerbar { |
37 | 37 | display: flex; |
38 | | - background: rgba(239, 241, 245, 0.8); |
| 38 | + background: transparent !important; |
39 | 39 | justify-content: center; /* Center the view switcher horizontally */ |
40 | 40 | align-items: center; /* Align items vertically in the center */ |
41 | 41 | height: 47px; /* Set the headerbar height to 47px */ |
|
49 | 49 | .view-switcher { |
50 | 50 | display: flex; /* Horizontally align the list items */ |
51 | 51 | justify-content: center; /* Center the items */ |
52 | | - gap: 0px; /* Space between items */ |
53 | 52 | padding: 0; /* Remove padding */ |
54 | 53 | } |
55 | 54 |
|
|
58 | 57 | list-style: none; /* Remove bullet points */ |
59 | 58 | margin: 0; |
60 | 59 | padding: 0; |
| 60 | + gap: 4px; |
61 | 61 | } |
62 | 62 |
|
63 | 63 | .view-switcher li { |
64 | 64 | display: inline-block; |
65 | 65 | } |
66 | 66 |
|
67 | 67 | .view-switcher a { |
68 | | - color: rgb(var(--ctp-latte-text-rgb)); |
| 68 | + color: rgb(var(--ctp-latte-text-rgb)); /* Text color */ |
69 | 69 | text-decoration: none; |
70 | 70 | 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 */ |
72 | 77 | border-radius: 6px; |
| 78 | + transition: background-color 0.2s ease, color 0.2s ease; /* Add smooth color transition */ |
73 | 79 | } |
74 | 80 |
|
75 | 81 | .view-switcher a:hover, |
76 | 82 | .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 */ |
79 | 84 | border-radius: 6px; |
80 | 85 | } |
81 | 86 |
|
82 | 87 | .view-switcher .current { |
83 | 88 | background-color: rgb(201, 207, 219, 0.5); |
84 | | - padding: 8px 32px; /* Ensure the padding is the same for the current item */ |
85 | 89 | border-radius: 6px; |
86 | 90 | } |
| 91 | + |
| 92 | +/* Icon styling to match text color */ |
| 93 | +.nav-icon { |
| 94 | + fill: red !important; |
| 95 | +} |
0 commit comments