mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-31 17:11:48 +02:00
docs(sidenav): get rid of custom JS for active state
This commit is contained in:
@@ -40,13 +40,11 @@
|
||||
content: escape-svg($sidebar-collapse-icon);
|
||||
}
|
||||
|
||||
&.active {
|
||||
.bd-sidenav-group-link::before {
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
[aria-expanded="true"] {
|
||||
color: rgba($black, .85);
|
||||
|
||||
> .bd-sidenav-group-link {
|
||||
color: rgba($black, .85);
|
||||
&::before {
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -71,9 +69,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
> .active > a,
|
||||
> .active:hover > a,
|
||||
> .active:focus > a {
|
||||
[aria-current="page"] {
|
||||
font-weight: 600;
|
||||
color: rgba($black, .85);
|
||||
}
|
||||
|
Reference in New Issue
Block a user