mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-20 20:00:36 +03:00
use scrollspy on docs pages
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
// stylelint-disable selector-max-type
|
// stylelint-disable selector-max-type
|
||||||
|
// stylelint-disable selector-no-qualifying-type
|
||||||
|
|
||||||
.bd-toc {
|
.bd-toc {
|
||||||
@include media-breakpoint-up(lg) {
|
@include media-breakpoint-up(lg) {
|
||||||
@@ -29,10 +30,18 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
padding: .1rem .2rem;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
|
text-decoration: none;
|
||||||
|
@include border-radius(.2rem);
|
||||||
|
|
||||||
&:not(:hover) {
|
&:hover,
|
||||||
text-decoration: none;
|
&.active {
|
||||||
|
color: $bd-purple;
|
||||||
|
background-color: $bd-purple-light;
|
||||||
|
}
|
||||||
|
&.active {
|
||||||
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
{{ define "body_override" }}<body data-bs-spy="scroll" tabindex="0" data-bs-target="#TableOfContents">{{ end }}
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<div class="container-xxl bd-gutter mt-3 my-md-4 bd-layout">
|
<div class="container-xxl bd-gutter mt-3 my-md-4 bd-layout">
|
||||||
<aside class="bd-sidebar">
|
<aside class="bd-sidebar">
|
||||||
|
|||||||
Reference in New Issue
Block a user