Skip to content

Commit e7cf0d0

Browse files
committed
fix(navbar): adjust transparency of the active capsule
1 parent 25f422c commit e7cf0d0

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"type:check": "vue-tsc --build",
3535
"vite:serve": "vite --host",
3636
"vite:build": "vite build",
37-
"vite:preview": "vite preview",
37+
"vite:preview": "vite preview --host",
3838
"dev": "cross-env NODE_ENV=development run-p dist vite:serve",
3939
"dev:web": "VITE_SOURCEMAP=true VITE_WEB=true run-s build vite:preview",
4040
"build": "cross-env NODE_ENV=production run-s dist type:check 'vite:build {@}' --",

src/components/common/navbar/NavbarComponent.vue

+6-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ const navElement = ref<HTMLElement>();
126126
@use '~/styles/layout' as layout;
127127
128128
nav {
129-
--navbar-tab-color: var(--trakt-red-darker);
129+
--navbar-tab-color: hsl(from var(--trakt-red-darker) h s l / 80%);
130130
--navbar-text-color-hover: var(--trakt-red);
131131
--navbar-text-color-hover-active: var(--white);
132132
--navbar-text-color-active: var(--white);
@@ -154,6 +154,11 @@ nav {
154154
display: flex;
155155
justify-content: center;
156156
min-height: 2.75rem;
157+
158+
:deep(.n-tabs-capsule) {
159+
height: calc(#{layout.$header-navbar-height} - 0.75rem) !important;
160+
border-radius: 0.5rem !important;
161+
}
157162
}
158163
}
159164
</style>

0 commit comments

Comments
 (0)