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

_nav.scss « scss - github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3d27891be77ee98e8cf539fa5d98059e0a4bf024 (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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
//
// Navs
// --------------------------------------------------

.nav {
  margin-bottom: 0;
  @extend .list-unstyled;
  @include clearfix();
}

.nav-item {
  position: relative;
  display: inline-block;
}

.nav-link {
  display: inline-block;
  padding: $nav-link-padding;
  line-height: $line-height-base;

  @include hover-focus {
    text-decoration: none;
    background-color: $nav-link-hover-bg;
  }

  // Disabled state sets text to gray and nukes hover/tab effects
  .disabled > &,
  &.disabled {
    color: $nav-disabled-link-color;

    @include plain-hover-focus {
      color: $nav-disabled-link-hover-color;
      cursor: $cursor-disabled;
      background-color: transparent;
    }
  }
}


//
// Tabs
//

.nav-tabs {
  border-bottom: 1px solid $nav-tabs-border-color;

  .nav-item {
    float: left;
    // Make the list-items overlay the bottom border
    margin-bottom: -1px;

    + .nav-item {
      margin-left: .2rem;
    }
  }

  .nav-link {
    display: block;
    border: 1px solid transparent;
    @include border-radius($border-radius-base $border-radius-base 0 0);

    @include hover-focus {
      border-color: $nav-tabs-link-hover-border-color $nav-tabs-link-hover-border-color $nav-tabs-border-color;
    }
  }

  .open > .nav-link,
  .active > .nav-link,
  .nav-link.open,
  .nav-link.active {
    @include plain-hover-focus {
      color: $nav-tabs-active-link-hover-color;
      background-color: $nav-tabs-active-link-hover-bg;
      border-color: $nav-tabs-active-link-hover-border-color $nav-tabs-active-link-hover-border-color transparent;
    }
  }

  .disabled > .nav-link,
  .nav-link.disabled {
    @include plain-hover-focus {
      color: $nav-disabled-link-color;
      background-color: transparent;
      border-color: transparent;
    }
  }
}


//
// Pills
//

.nav-pills {
  .nav-item {
    float: left;

    + .nav-item {
      margin-left: .2rem;
    }
  }

  .nav-link {
    display: block;
    @include border-radius($nav-pills-border-radius);
  }

  .open > .nav-link,
  .active > .nav-link,
  .nav-link.open,
  .nav-link.active {
    @include plain-hover-focus {
      color: $component-active-color;
      cursor: default;
      background-color: $component-active-bg;
    }
  }
}

.nav-stacked {
  .nav-item {
    display: block;
    float: none;

    + .nav-item {
      margin-top: .2rem;
      margin-left: 0;
    }
  }
}


//
// Tabbable tabs
//

// Hide tabbable panes to start, show them when `.active`
.tab-content {
  > .tab-pane {
    display: none;
    visibility: hidden;
  }
  > .active {
    display: block;
    visibility: visible;
  }
}


//
// Dropdowns
//

.nav-tabs .dropdown-menu {
  // Make dropdown border overlap tab border
  margin-top: -1px;
  // Remove the top rounded corners here since there is a hard edge above the menu
  @include border-top-radius(0);
}