diff options
| author | XhmikosR <[email protected]> | 2019-07-17 11:44:32 +0300 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-07-17 16:21:47 +0300 |
| commit | e09f306b6b46035d5f5c5f4c16e0cbc57a0150ae (patch) | |
| tree | 9490ef31214b4a01b91be0e11245ea3bcd14f58e /site/static/docs | |
| parent | 67bea95df55751d56ea169eaae85fe52d37c10e5 (diff) | |
| download | bootstrap-e09f306b6b46035d5f5c5f4c16e0cbc57a0150ae.tar.xz bootstrap-e09f306b6b46035d5f5c5f4c16e0cbc57a0150ae.zip | |
Use `has-children`.
Diffstat (limited to 'site/static/docs')
| -rw-r--r-- | site/static/docs/4.3/assets/scss/_sidebar.scss | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/site/static/docs/4.3/assets/scss/_sidebar.scss b/site/static/docs/4.3/assets/scss/_sidebar.scss index b5c356934..43232e9aa 100644 --- a/site/static/docs/4.3/assets/scss/_sidebar.scss +++ b/site/static/docs/4.3/assets/scss/_sidebar.scss @@ -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; |
