aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/twbs/bootstrap/site/assets/scss/_sidebar.scss
blob: 6f1ef292fc54ca563f2863823f0d0b5b54d23f0f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
.bd-sidebar {
  @include media-breakpoint-up(lg) {
    position: sticky;
    top: 5rem;
    // Override collapse behaviors
    // stylelint-disable-next-line declaration-no-important
    display: block !important;
    height: subtract(100vh, 6rem);
    // Prevent focus styles to be cut off:
    padding-left: .25rem;
    margin-left: -.25rem;
    overflow-y: auto;
  }

  @include media-breakpoint-down(lg) {
    .offcanvas-lg {
      border-right-color: var(--bs-border-color);
      box-shadow: $box-shadow-lg;
    }
  }
}

.bd-links-heading {
  color: var(--bs-emphasis-color);
}

.bd-links-nav {
  @include media-breakpoint-down(lg) {
    font-size: .875rem;
  }

  @include media-breakpoint-between(xs, lg) {
    column-count: 2;
    column-gap: 1.5rem;

    .bd-links-group {
      break-inside: avoid;
    }

    .bd-links-span-all {
      column-span: all;
    }
  }
}

.bd-links-link {
  padding: .1875rem .5rem;
  margin-top: .125rem;
  margin-left: 1.125rem;
  color: var(--bs-body-color);
  text-decoration: if($link-decoration == none, null, none);

  &:hover,
  &:focus,
  &.active {
    color: var(--bs-emphasis-color);
    text-decoration: if($link-hover-decoration == underline, none, null);
    background-color: var(--bd-sidebar-link-bg);
  }

  &.active {
    font-weight: 600;
  }
}