mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-22 13:13:03 +02:00
Use scrollspy on docs pages (#33428)
* use scrollspy on docs pages * Update colors by taking into account new dark mode * Restyle it * Update colors once more * Fix some color contrast issues Co-authored-by: Julien Déramond <juderamond@gmail.com> Co-authored-by: Mark Otto <markdotto@gmail.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// stylelint-disable selector-max-type
|
||||
// stylelint-disable selector-max-type, selector-no-qualifying-type, selector-max-compound-selectors
|
||||
|
||||
.bd-toc {
|
||||
@include media-breakpoint-up(lg) {
|
||||
@@ -16,23 +16,34 @@
|
||||
ul {
|
||||
padding-left: 0;
|
||||
margin-bottom: 0;
|
||||
margin-left: -.75rem;
|
||||
list-style: none;
|
||||
|
||||
ul {
|
||||
padding-left: 1rem;
|
||||
margin-top: .25rem;
|
||||
margin-left: -1rem;
|
||||
|
||||
a {
|
||||
padding-left: 1.375rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
li {
|
||||
margin-bottom: .25rem;
|
||||
}
|
||||
|
||||
a {
|
||||
display: block;
|
||||
padding: .125rem 0 .125rem .625rem;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
border-left: .125rem solid transparent;
|
||||
|
||||
&:not(:hover) {
|
||||
text-decoration: none;
|
||||
&:hover,
|
||||
&.active {
|
||||
color: var(--bd-toc-color);
|
||||
border-left-color: var(--bd-toc-color);
|
||||
}
|
||||
|
||||
&.active {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
code {
|
||||
|
Reference in New Issue
Block a user