-
-
Notifications
You must be signed in to change notification settings - Fork 78.5k
/
_nav.scss
62 lines (53 loc) · 1.35 KB
/
_nav.scss
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
// Justified nav links
// -------------------------
@mixin nav-justified {
width: 100%;
.nav-item {
float: none;
}
.nav-link {
margin-bottom: $nav-tabs-justified-link-margin-bottom;
text-align: center;
}
.dropdown .dropdown-menu {
top: auto;
left: auto;
}
@include media-breakpoint-up(md) {
.nav-item {
display: table-cell;
width: 1%;
}
.nav-link {
margin-bottom: 0;
}
}
}
// Move borders to anchors instead of bottom of list
//
// Mixin for adding on top the shared `.nav-justified` styles for our tabs
@mixin nav-tabs-justified {
border-bottom: 0;
.nav-link { // Override margin from .nav-tabs
margin-right: 0;
@include border-radius($nav-tabs-justified-link-border-radius);
}
.nav-link.active {
@include plain-hover-focus {
border: $nav-tabs-justified-link-border-width solid $nav-tabs-justified-link-border-color;
}
}
@include media-breakpoint-up(md) {
.nav-link,
.nav-link.disabled,
.nav-link.disabled:hover {
border-bottom: $nav-tabs-justified-link-border-width solid $nav-tabs-justified-link-border-color;
@include border-top-radius($nav-tabs-justified-link-border-radius);
}
.nav-link.active {
@include plain-hover-focus {
border-bottom-color: $nav-tabs-justified-active-link-border-color;
}
}
}
}