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

This commit is contained in:
Simon Priet 2023-05-30 15:14:28 +02:00 committed by GitHub
parent 4262b7a1ce
commit 3e4591400a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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; color: var(--white);
li.nav-item>a.nav-link, a.nav-link,
li.nav-item>a.nav-link .btn { .SharingUnitDropdown__DropdownLabel {
color: var(--white); color: var(--white) !important;
&.active, &:is(.active, :hover),
&.active .btn, .SharingUnitDropdown__DropdownLabelActive {
&:hover,
&:hover .btn {
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;
} }
} }
}
.AuthLayoutFooter__logo { &::after {
border-top: 1px solid #fff; background: white !important;
}
} }
} }
.AuthLayoutFooter__logo {
border-top-color: #fff;
}
} }