refactor(#28): Restore white border-top, fix active dropdown navbar, simplify code with :is()

This commit is contained in:
Simon 2023-05-30 15:10:44 +02:00
parent 4262b7a1ce
commit 9641dd0af4
2 changed files with 16 additions and 17 deletions

View File

@ -1,6 +1,7 @@
{ {
"conventionalCommits.scopes": [ "conventionalCommits.scopes": [
"#11", "#11",
"13" "13",
"#28"
] ]
} }

View File

@ -1,33 +1,31 @@
@-moz-document domain("supplierxm.salsify.com"), @-moz-document domain("supplierxm.salsify.com"),
domain("alkemics.com") { domain("alkemics.com") {
.Navbar { .Navbar.bg-inverse {
--white: white; --white: white;
--bold: bold; --bold: bold;
color: var(--white) !important;
li.nav-item>a.nav-link,
li.nav-item>a.nav-link .btn {
color: var(--white); color: var(--white);
&.active, a.nav-link,
&.active .btn, .SharingUnitDropdown__DropdownLabel {
&:hover, color: var(--white) !important;
&:hover .btn {
&:is(.active, :hover),
.SharingUnitDropdown__DropdownLabelActive {
color: var(--white) !important; color: var(--white) !important;
font-weight: var(--bold) !important; font-weight: var(--bold) !important;
&::after {
background: white;
}
.SharingUnitDropdown__OptionText { .SharingUnitDropdown__OptionText {
font-weight: 300; font-weight: 300;
} }
} }
&::after {
background: white !important;
}
}
} }
.AuthLayoutFooter__logo { .AuthLayoutFooter__logo {
border-top: 1px solid #fff; border-top-color: #fff;
}
} }
} }