File: _nav_compat.scss

package info (click to toggle)
r-cran-bslib 0.4.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 9,332 kB
  • sloc: javascript: 10,075; makefile: 30; sh: 23
file content (38 lines) | stat: -rw-r--r-- 889 bytes parent folder | download | duplicates (2)
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
// Fix tab selector borders in bs3.
.nav-tabs>li,
.nav-pills>li {
  @extend .nav-item;
}
.nav-tabs>li>a,
.nav-pills>li>a {
  @extend .nav-link;
}

// Active tab/pill.
//
// bs3 uses .nav>li.active>a, bs4 uses .nav>li>a.active or .nav>li.show>a.
//
// My original approach to this was making .nav>li.active @extend .show, but
// after a lot of trial and error I could not get it to fully work.
.nav-tabs>li.active>a {
  color: $nav-tabs-link-active-color;
  background-color: $nav-tabs-link-active-bg;
  border-color: $nav-tabs-link-active-border-color;
}
.nav-pills>li.active>a {
  color: $nav-pills-link-active-color;
  background-color: $nav-pills-link-active-bg;
}

// Support vertical pills
.nav-stacked {
  // Don't extend the .flex-column utility, it uses !important
  // @extend .flex-column;
  flex-direction: column;
  -webkit-flex-direction: column;
}


.in {
  @extend .show;
}