mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
use scrollspy on docs pages
This commit is contained in:
parent
a7a2253507
commit
ce2015e47b
2 changed files with 12 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
|||
// stylelint-disable selector-max-type
|
||||
// stylelint-disable selector-no-qualifying-type
|
||||
|
||||
.bd-toc {
|
||||
@include media-breakpoint-up(lg) {
|
||||
|
@ -29,10 +30,18 @@
|
|||
}
|
||||
|
||||
a {
|
||||
padding: .1rem .2rem;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
@include border-radius(.2rem);
|
||||
|
||||
&:not(:hover) {
|
||||
text-decoration: none;
|
||||
&:hover,
|
||||
&.active {
|
||||
color: $bd-purple;
|
||||
background-color: $bd-purple-light;
|
||||
}
|
||||
&.active {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
code {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{ define "body_override" }}<body data-bs-spy="scroll" tabindex="0" data-bs-target="#TableOfContents">{{ end }}
|
||||
{{ define "main" }}
|
||||
<div class="container-xxl bd-gutter mt-3 my-md-4 bd-layout">
|
||||
<aside class="bd-sidebar">
|
||||
|
|
Loading…
Reference in a new issue