Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_sidebar.scss « scss « assets « site - github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c2baad1cdae0359e8879b9da7e709db533f60228 (plain)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// stylelint-disable declaration-no-important

.bd-links {
  @include media-breakpoint-up(md) {
    @supports (position: sticky) {
      position: sticky;
      top: 5rem;
      height: subtract(100vh, 7rem);
      overflow-y: auto;
    }
  }

  // Override collapse behaviors
  @include media-breakpoint-up(md) {
    display: block !important;
  }
}

:not(.active) > .bd-sidenav {
  display: none;
}

.bd-sidenav-group-link {
  padding: .25rem .625rem .25rem .5rem;
  font-weight: 600;
  color: rgba($black, .65);
  @include border-radius(.25rem);

  > * { pointer-events: none; }

  &:hover,
  &:focus {
    color: rgba($black, .85);
    text-decoration: none;
    background-color: rgba($bd-purple-bright, .1);
  }
}

.bd-sidenav-group {
  &.has-children .bd-sidenav-group-link::before {
    display: inline-block;
    margin-right: .25rem;
    line-height: 0; // Align in the middle
    content: escape-svg($sidebar-collapse-icon);
  }

  &.active {
    .bd-sidenav-group-link::before {
      transform: rotate(90deg);
    }

    > .bd-sidenav-group-link {
      color: rgba($black, .85);
    }
  }
}

// All levels of nav
.bd-sidebar .nav {
  padding-left: 1.25rem;

  > li > a {
    display: inline-block;
    padding: .25rem .5rem;
    @include font-size(.875rem);
    color: rgba($black, .65);
    @include border-radius(.25rem);

    &:hover,
    &:focus {
      color: rgba($black, .85);
      text-decoration: none;
      background-color: rgba($bd-purple-bright, .1);
    }
  }

  > .active > a,
  > .active:hover > a,
  > .active:focus > a {
    font-weight: 600;
    color: rgba($black, .85);
  }
}