1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-27 15:19:52 +02:00

Use has-children.

This commit is contained in:
XhmikosR
2019-07-17 11:44:32 +03:00
parent 67bea95df5
commit e09f306b6b
2 changed files with 12 additions and 17 deletions

View File

@@ -43,7 +43,17 @@
color: rgba(0, 0, 0, .65);
@include border-radius(.25rem);
&::before {
> * { pointer-events: none; }
&:hover {
color: rgba(0, 0, 0, .85);
text-decoration: none;
background-color: rgba($bd-purple-bright, .1);
}
}
.bd-sidenav-group {
&.has-children .bd-sidenav-group-link::before {
display: inline-block;
width: .875rem;
height: .875rem;
@@ -55,16 +65,6 @@
opacity: .5;
}
> * { pointer-events: none; }
&:hover {
color: rgba(0, 0, 0, .85);
text-decoration: none;
background-color: rgba($bd-purple-bright, .1);
}
}
.bd-sidenav-group {
&.active {
.bd-sidenav-group-link::before {
transform: rotate(90deg);
@@ -80,11 +80,6 @@
}
}
// Hide icon on last item
.bd-sidenav-group:last-child .bd-sidenav-group-link::before {
display: none;
}
// All levels of nav
.bd-sidebar .nav {
padding-left: 1.25rem;