_toc.scss 644 Bytes
Newer Older
1
// stylelint-disable selector-max-type
Mark Otto's avatar
Mark Otto committed
2

3
.bd-toc {
4
5
6
7
8
9
10
11
12
13
  @include media-breakpoint-up(lg) {
    @supports (position: sticky) {
      position: sticky;
      top: 5rem;
      right: 0;
      z-index: 2;
      height: subtract(100vh, 7rem);
      overflow-y: auto;
    }
  }
Mark Otto's avatar
Mark Otto committed
14

15
16
  nav {
    @include font-size(.875rem);
17
18

    ul {
19
20
21
22
23
24
25
      padding-left: 0;
      list-style: none;

      ul {
        padding-left: 1rem;
        margin-top: .25rem;
      }
26
    }
Mark Otto's avatar
Mark Otto committed
27

28
29
30
    li {
      margin-bottom: .25rem;
    }
31

32
33
    a {
      color: inherit;
Mark Otto's avatar
Mark Otto committed
34

35
36
37
      &:not(:hover) {
        text-decoration: none;
      }
Mark Otto's avatar
Mark Otto committed
38

39
40
41
42
      code {
        font: inherit;
      }
    }
Mark Otto's avatar
Mark Otto committed
43
44
  }
}