bootstrap-sass-rails 1.4.0.3 → 2.0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bootstrap/sass/rails/version.rb +1 -1
- data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings.png +0 -0
- data/vendor/assets/javascripts/twitter/bootstrap.js +12 -8
- data/vendor/assets/javascripts/twitter/bootstrap/alert.js +91 -0
- data/vendor/assets/javascripts/twitter/bootstrap/button.js +98 -0
- data/vendor/assets/javascripts/twitter/bootstrap/carousel.js +154 -0
- data/vendor/assets/javascripts/twitter/bootstrap/collapse.js +136 -0
- data/vendor/assets/javascripts/twitter/bootstrap/dropdown.js +58 -21
- data/vendor/assets/javascripts/twitter/bootstrap/modal.js +63 -114
- data/vendor/assets/javascripts/twitter/bootstrap/popover.js +38 -33
- data/vendor/assets/javascripts/twitter/bootstrap/scrollspy.js +62 -44
- data/vendor/assets/javascripts/twitter/bootstrap/tab.js +130 -0
- data/vendor/assets/javascripts/twitter/bootstrap/tooltip.js +270 -0
- data/vendor/assets/javascripts/twitter/bootstrap/transition.js +51 -0
- data/vendor/assets/javascripts/twitter/bootstrap/typeahead.js +271 -0
- data/vendor/assets/stylesheets/twitter/bootstrap.css.scss +50 -14
- data/vendor/assets/stylesheets/twitter/bootstrap/_accordion.scss +28 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_alerts.scss +70 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_breadcrumbs.scss +22 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_button-groups.scss +147 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_buttons.scss +165 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_carousel.scss +121 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_close.scss +18 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_code.scss +44 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_component-animations.scss +18 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_dropdowns.scss +131 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_forms.scss +335 -299
- data/vendor/assets/stylesheets/twitter/bootstrap/_grid.scss +8 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_hero-unit.scss +20 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_labels.scss +16 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_layouts.scss +17 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_mixins.scss +429 -124
- data/vendor/assets/stylesheets/twitter/bootstrap/_modals.scss +72 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_navbar.scss +292 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_navs.scss +343 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_pager.scss +30 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_pagination.scss +55 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_patterns.scss +5 -1051
- data/vendor/assets/stylesheets/twitter/bootstrap/_popovers.scss +49 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_print.scss +18 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_progress-bars.scss +95 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_reset.scss +36 -51
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive.scss +323 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_scaffolding.scss +13 -123
- data/vendor/assets/stylesheets/twitter/bootstrap/_sprites.scss +156 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_tables.scss +75 -160
- data/vendor/assets/stylesheets/twitter/bootstrap/_thumbnails.scss +35 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_tooltip.scss +35 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_type.scss +100 -70
- data/vendor/assets/stylesheets/twitter/bootstrap/_utilities.scss +23 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_variables.scss +94 -55
- data/vendor/assets/stylesheets/twitter/bootstrap/_wells.scss +17 -0
- metadata +51 -75
- data/test/dummy/log/test.log +0 -462
- data/test/dummy/tmp/cache/assets/C29/E80/sprockets%2F8f076727207424919c7170c7157bbe37 +0 -1102
- data/test/dummy/tmp/cache/assets/D3F/FA0/sprockets%2F22c8366fdbaaa2872b202dfe7376629f +0 -0
- data/test/dummy/tmp/cache/assets/E5F/300/sprockets%2F243a2fff0dbb8aeec3dd579b4ff7c81b +0 -1048
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_forms.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_mixins.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_patterns.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_reset.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_scaffolding.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_tables.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_type.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_variables.scssc +0 -0
- data/test/dummy/tmp/cache/sass/766526f7d87ffdf0401dde0ec8d49f976470392d/_bootstrap.scssc +0 -0
- data/test/dummy/tmp/cache/sass/766526f7d87ffdf0401dde0ec8d49f976470392d/bootstrap.css.scssc +0 -0
- data/test/dummy/tmp/cache/sass/766526f7d87ffdf0401dde0ec8d49f976470392d/bootstrap.cssc +0 -0
- data/test/dummy/tmp/cache/sass/8f44dddc3cc4868f43c2a4153ce3876663527256/_bootstrap.scssc +0 -0
- data/test/dummy/tmp/cache/sass/8f44dddc3cc4868f43c2a4153ce3876663527256/bootstrap.css.scssc +0 -0
- data/test/dummy/tmp/cache/sass/95eca8acb76bbb914a4c6988012b73e61e9bcc23/application.css.scssc +0 -0
- data/test/dummy/tmp/cache/sass/95eca8acb76bbb914a4c6988012b73e61e9bcc23/individual.css.scssc +0 -0
- data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/_forms.scssc +0 -0
- data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/_mixins.scssc +0 -0
- data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/_patterns.scssc +0 -0
- data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/_reset.scssc +0 -0
- data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/_scaffolding.scssc +0 -0
- data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/_tables.scssc +0 -0
- data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/_type.scssc +0 -0
- data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/_variables.scssc +0 -0
- data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/mixins.scssc +0 -0
- data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/variables.css.scssc +0 -0
- data/vendor/assets/javascripts/twitter/bootstrap/alerts.js +0 -124
- data/vendor/assets/javascripts/twitter/bootstrap/buttons.js +0 -64
- data/vendor/assets/javascripts/twitter/bootstrap/tabs.js +0 -80
- data/vendor/assets/javascripts/twitter/bootstrap/twipsy.js +0 -321
@@ -0,0 +1,72 @@
|
|
1
|
+
// MODALS
|
2
|
+
// ------
|
3
|
+
|
4
|
+
.modal-open {
|
5
|
+
.dropdown-menu { z-index: $zindexDropdown + $zindexModal; }
|
6
|
+
.dropdown.open { *z-index: $zindexDropdown + $zindexModal; }
|
7
|
+
.popover { z-index: $zindexPopover + $zindexModal; }
|
8
|
+
.tooltip { z-index: $zindexTooltip + $zindexModal; }
|
9
|
+
}
|
10
|
+
|
11
|
+
.modal-backdrop {
|
12
|
+
position: fixed;
|
13
|
+
top: 0;
|
14
|
+
right: 0;
|
15
|
+
bottom: 0;
|
16
|
+
left: 0;
|
17
|
+
z-index: $zindexModalBackdrop;
|
18
|
+
background-color: $black;
|
19
|
+
// Fade for backdrop
|
20
|
+
&.fade { opacity: 0; }
|
21
|
+
}
|
22
|
+
|
23
|
+
.modal-backdrop,
|
24
|
+
.modal-backdrop.fade.in {
|
25
|
+
@include opacity(80);
|
26
|
+
}
|
27
|
+
|
28
|
+
.modal {
|
29
|
+
position: fixed;
|
30
|
+
top: 50%;
|
31
|
+
left: 50%;
|
32
|
+
z-index: $zindexModal;
|
33
|
+
max-height: 500px;
|
34
|
+
overflow: auto;
|
35
|
+
width: 560px;
|
36
|
+
margin: -250px 0 0 -280px;
|
37
|
+
background-color: $white;
|
38
|
+
border: 1px solid #999;
|
39
|
+
border: 1px solid rgba(0,0,0,.3);
|
40
|
+
*border: 1px solid #999; /* IE6-7 */
|
41
|
+
@include border-radius(6px);
|
42
|
+
@include box-shadow(0 3px 7px rgba(0,0,0,0.3));
|
43
|
+
@include background-clip(padding-box);
|
44
|
+
&.fade {
|
45
|
+
@include transition(e('opacity .3s linear, top .3s ease-out'));
|
46
|
+
top: -25%;
|
47
|
+
}
|
48
|
+
&.fade.in { top: 50%; }
|
49
|
+
}
|
50
|
+
.modal-header {
|
51
|
+
padding: 9px 15px;
|
52
|
+
border-bottom: 1px solid #eee;
|
53
|
+
// Close icon
|
54
|
+
.close { margin-top: 2px; }
|
55
|
+
}
|
56
|
+
.modal-body {
|
57
|
+
padding: 15px;
|
58
|
+
}
|
59
|
+
.modal-footer {
|
60
|
+
padding: 14px 15px 15px;
|
61
|
+
margin-bottom: 0;
|
62
|
+
background-color: #f5f5f5;
|
63
|
+
border-top: 1px solid #ddd;
|
64
|
+
@include border-radius(0 0 6px 6px);
|
65
|
+
@include box-shadow(inset 0 1px 0 $white);
|
66
|
+
@include clearfix();
|
67
|
+
.btn {
|
68
|
+
float: right;
|
69
|
+
margin-left: 5px;
|
70
|
+
margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
|
71
|
+
}
|
72
|
+
}
|
@@ -0,0 +1,292 @@
|
|
1
|
+
// NAVBAR (FIXED AND STATIC)
|
2
|
+
// -------------------------
|
3
|
+
|
4
|
+
|
5
|
+
// COMMON STYLES
|
6
|
+
// -------------
|
7
|
+
|
8
|
+
.navbar {
|
9
|
+
overflow: visible;
|
10
|
+
margin-bottom: $baseLineHeight;
|
11
|
+
}
|
12
|
+
|
13
|
+
// Gradient is applied to it's own element because overflow visible is not honored by IE when filter is present
|
14
|
+
.navbar-inner {
|
15
|
+
padding-left: 20px;
|
16
|
+
padding-right: 20px;
|
17
|
+
@include gradient-vertical($navbarBackgroundHighlight, $navbarBackground);
|
18
|
+
@include border-radius(4px);
|
19
|
+
$shadow: 0 1px 3px rgba(0,0,0,.25), inset 0 -1px 0 rgba(0,0,0,.1);
|
20
|
+
@include box-shadow($shadow);
|
21
|
+
}
|
22
|
+
|
23
|
+
// Navbar button for toggling navbar items in responsive layouts
|
24
|
+
.btn-navbar {
|
25
|
+
display: none;
|
26
|
+
float: right;
|
27
|
+
padding: 7px 10px;
|
28
|
+
margin-left: 5px;
|
29
|
+
margin-right: 5px;
|
30
|
+
@include buttonBackground($navbarBackgroundHighlight, $navbarBackground);
|
31
|
+
$shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075);
|
32
|
+
@include box-shadow($shadow);
|
33
|
+
}
|
34
|
+
.btn-navbar .icon-bar {
|
35
|
+
display: block;
|
36
|
+
width: 18px;
|
37
|
+
height: 2px;
|
38
|
+
background-color: #f5f5f5;
|
39
|
+
@include border-radius(1px);
|
40
|
+
@include box-shadow(0 1px 0 rgba(0,0,0,.25));
|
41
|
+
}
|
42
|
+
.btn-navbar .icon-bar + .icon-bar {
|
43
|
+
margin-top: 3px;
|
44
|
+
}
|
45
|
+
// Override the default collapsed state
|
46
|
+
.nav-collapse.collapse {
|
47
|
+
height: auto;
|
48
|
+
}
|
49
|
+
|
50
|
+
|
51
|
+
// Brand, links, text, and buttons
|
52
|
+
.navbar {
|
53
|
+
// Hover and active states
|
54
|
+
.brand:hover {
|
55
|
+
text-decoration: none;
|
56
|
+
}
|
57
|
+
// Website or project name
|
58
|
+
.brand {
|
59
|
+
float: left;
|
60
|
+
display: block;
|
61
|
+
padding: 8px 20px 12px;
|
62
|
+
margin-left: -20px; // negative indent to left-align the text down the page
|
63
|
+
font-size: 20px;
|
64
|
+
font-weight: 200;
|
65
|
+
line-height: 1;
|
66
|
+
color: $white;
|
67
|
+
}
|
68
|
+
// Plain text in topbar
|
69
|
+
.navbar-text {
|
70
|
+
margin-bottom: 0;
|
71
|
+
line-height: 40px;
|
72
|
+
color: $navbarText;
|
73
|
+
a:hover {
|
74
|
+
color: $white;
|
75
|
+
background-color: transparent;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
// Buttons in navbar
|
79
|
+
.btn,
|
80
|
+
.btn-group {
|
81
|
+
margin-top: 5px; // make buttons vertically centered in navbar
|
82
|
+
}
|
83
|
+
.btn-group .btn {
|
84
|
+
margin-top: 0;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
|
88
|
+
// Navbar forms
|
89
|
+
.navbar-form {
|
90
|
+
margin-bottom: 0; // remove default bottom margin
|
91
|
+
@include clearfix();
|
92
|
+
input,
|
93
|
+
select {
|
94
|
+
display: inline-block;
|
95
|
+
margin-top: 5px;
|
96
|
+
margin-bottom: 0;
|
97
|
+
}
|
98
|
+
.radio,
|
99
|
+
.checkbox {
|
100
|
+
margin-top: 5px;
|
101
|
+
}
|
102
|
+
input[type="image"],
|
103
|
+
input[type="checkbox"],
|
104
|
+
input[type="radio"] {
|
105
|
+
margin-top: 3px;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
|
109
|
+
// Navbar search
|
110
|
+
.navbar-search {
|
111
|
+
position: relative;
|
112
|
+
float: left;
|
113
|
+
margin-top: 6px;
|
114
|
+
margin-bottom: 0;
|
115
|
+
.search-query {
|
116
|
+
padding: 4px 9px;
|
117
|
+
@include font-sans-serif(13px, normal, 1);
|
118
|
+
color: $white;
|
119
|
+
color: rgba(255,255,255,.75);
|
120
|
+
background: #666;
|
121
|
+
background: rgba(255,255,255,.3);
|
122
|
+
border: 1px solid #111;
|
123
|
+
$shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0px rgba(255,255,255,.15);
|
124
|
+
@include box-shadow($shadow);
|
125
|
+
@include transition(none);
|
126
|
+
|
127
|
+
// Placeholder text gets special styles; can't be bundled together though for some reason
|
128
|
+
@include placeholder($grayLighter);
|
129
|
+
|
130
|
+
// Hover states
|
131
|
+
&:hover {
|
132
|
+
color: $white;
|
133
|
+
background-color: $grayLight;
|
134
|
+
background-color: rgba(255,255,255,.5);
|
135
|
+
}
|
136
|
+
// Focus states (we use .focused since IE8 and down doesn't support :focus)
|
137
|
+
&:focus,
|
138
|
+
&.focused {
|
139
|
+
padding: 5px 10px;
|
140
|
+
color: $grayDark;
|
141
|
+
text-shadow: 0 1px 0 $white;
|
142
|
+
background-color: $white;
|
143
|
+
border: 0;
|
144
|
+
@include box-shadow(0 0 3px rgba(0,0,0,.15));
|
145
|
+
outline: 0;
|
146
|
+
}
|
147
|
+
}
|
148
|
+
}
|
149
|
+
|
150
|
+
|
151
|
+
// FIXED NAVBAR
|
152
|
+
// ------------
|
153
|
+
|
154
|
+
.navbar-fixed-top {
|
155
|
+
position: fixed;
|
156
|
+
top: 0;
|
157
|
+
right: 0;
|
158
|
+
left: 0;
|
159
|
+
z-index: $zindexFixedNavbar;
|
160
|
+
}
|
161
|
+
.navbar-fixed-top .navbar-inner {
|
162
|
+
padding-left: 0;
|
163
|
+
padding-right: 0;
|
164
|
+
@include border-radius(0);
|
165
|
+
}
|
166
|
+
|
167
|
+
|
168
|
+
// NAVIGATION
|
169
|
+
// ----------
|
170
|
+
|
171
|
+
.navbar .nav {
|
172
|
+
position: relative;
|
173
|
+
left: 0;
|
174
|
+
display: block;
|
175
|
+
float: left;
|
176
|
+
margin: 0 10px 0 0;
|
177
|
+
}
|
178
|
+
.navbar .nav.pull-right {
|
179
|
+
float: right; // redeclare due to specificity
|
180
|
+
}
|
181
|
+
.navbar .nav > li {
|
182
|
+
display: block;
|
183
|
+
float: left;
|
184
|
+
}
|
185
|
+
|
186
|
+
// Links
|
187
|
+
.navbar .nav > li > a {
|
188
|
+
float: none;
|
189
|
+
padding: 10px 10px 11px;
|
190
|
+
line-height: 19px;
|
191
|
+
color: $navbarLinkColor;
|
192
|
+
text-decoration: none;
|
193
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
194
|
+
}
|
195
|
+
// Hover
|
196
|
+
.navbar .nav > li > a:hover {
|
197
|
+
background-color: transparent;
|
198
|
+
color: $navbarLinkColorHover;
|
199
|
+
text-decoration: none;
|
200
|
+
}
|
201
|
+
|
202
|
+
// Active nav items
|
203
|
+
.navbar .nav .active > a,
|
204
|
+
.navbar .nav .active > a:hover {
|
205
|
+
color: $navbarLinkColorHover;
|
206
|
+
text-decoration: none;
|
207
|
+
background-color: $navbarBackground;
|
208
|
+
background-color: rgba(0,0,0,.5);
|
209
|
+
}
|
210
|
+
|
211
|
+
// Dividers (basically a vertical hr)
|
212
|
+
.navbar .divider-vertical {
|
213
|
+
height: $navbarHeight;
|
214
|
+
width: 1px;
|
215
|
+
margin: 0 9px;
|
216
|
+
overflow: hidden;
|
217
|
+
background-color: $navbarBackground;
|
218
|
+
border-right: 1px solid $navbarBackgroundHighlight;
|
219
|
+
}
|
220
|
+
|
221
|
+
// Secondary (floated right) nav in topbar
|
222
|
+
.navbar .nav.pull-right {
|
223
|
+
margin-left: 10px;
|
224
|
+
margin-right: 0;
|
225
|
+
}
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
// Dropdown menus
|
230
|
+
// --------------
|
231
|
+
|
232
|
+
// Menu position and menu carets
|
233
|
+
.navbar .dropdown-menu {
|
234
|
+
margin-top: 1px;
|
235
|
+
@include border-radius(4px);
|
236
|
+
&:before {
|
237
|
+
content: '';
|
238
|
+
display: inline-block;
|
239
|
+
border-left: 7px solid transparent;
|
240
|
+
border-right: 7px solid transparent;
|
241
|
+
border-bottom: 7px solid #ccc;
|
242
|
+
border-bottom-color: rgba(0,0,0,.2);
|
243
|
+
position: absolute;
|
244
|
+
top: -7px;
|
245
|
+
left: 9px;
|
246
|
+
}
|
247
|
+
&:after {
|
248
|
+
content: '';
|
249
|
+
display: inline-block;
|
250
|
+
border-left: 6px solid transparent;
|
251
|
+
border-right: 6px solid transparent;
|
252
|
+
border-bottom: 6px solid $white;
|
253
|
+
position: absolute;
|
254
|
+
top: -6px;
|
255
|
+
left: 10px;
|
256
|
+
}
|
257
|
+
}
|
258
|
+
|
259
|
+
// Dropdown toggle caret
|
260
|
+
.navbar .nav .dropdown-toggle .caret,
|
261
|
+
.navbar .nav .open.dropdown .caret {
|
262
|
+
border-top-color: $white;
|
263
|
+
}
|
264
|
+
.navbar .nav .active .caret {
|
265
|
+
@include opacity(100);
|
266
|
+
}
|
267
|
+
|
268
|
+
// Remove background color from open dropdown
|
269
|
+
.navbar .nav .open > .dropdown-toggle,
|
270
|
+
.navbar .nav .active > .dropdown-toggle,
|
271
|
+
.navbar .nav .open.active > .dropdown-toggle {
|
272
|
+
background-color: transparent;
|
273
|
+
}
|
274
|
+
|
275
|
+
// Dropdown link on hover
|
276
|
+
.navbar .nav .active > .dropdown-toggle:hover {
|
277
|
+
color: $white;
|
278
|
+
}
|
279
|
+
|
280
|
+
// Right aligned menus need alt position
|
281
|
+
.navbar .nav.pull-right .dropdown-menu {
|
282
|
+
left: auto;
|
283
|
+
right: 0;
|
284
|
+
&:before {
|
285
|
+
left: auto;
|
286
|
+
right: 12px;
|
287
|
+
}
|
288
|
+
&:after {
|
289
|
+
left: auto;
|
290
|
+
right: 13px;
|
291
|
+
}
|
292
|
+
}
|
@@ -0,0 +1,343 @@
|
|
1
|
+
// NAVIGATIONS
|
2
|
+
// -----------
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
// BASE CLASS
|
7
|
+
// ----------
|
8
|
+
|
9
|
+
.nav {
|
10
|
+
margin-left: 0;
|
11
|
+
margin-bottom: $baseLineHeight;
|
12
|
+
list-style: none;
|
13
|
+
}
|
14
|
+
|
15
|
+
// Make links block level
|
16
|
+
.nav > li > a {
|
17
|
+
display: block;
|
18
|
+
}
|
19
|
+
.nav > li > a:hover {
|
20
|
+
text-decoration: none;
|
21
|
+
background-color: $grayLighter;
|
22
|
+
}
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
// NAV LIST
|
27
|
+
// --------
|
28
|
+
|
29
|
+
.nav-list {
|
30
|
+
padding-left: 14px;
|
31
|
+
padding-right: 14px;
|
32
|
+
margin-bottom: 0;
|
33
|
+
}
|
34
|
+
.nav-list > li > a,
|
35
|
+
.nav-list .nav-header {
|
36
|
+
display: block;
|
37
|
+
padding: 3px 15px;
|
38
|
+
margin-left: -15px;
|
39
|
+
margin-right: -15px;
|
40
|
+
text-shadow: 0 1px 0 rgba(255,255,255,.5);
|
41
|
+
}
|
42
|
+
.nav-list .nav-header {
|
43
|
+
font-size: 11px;
|
44
|
+
font-weight: bold;
|
45
|
+
line-height: $baseLineHeight;
|
46
|
+
color: $grayLight;
|
47
|
+
text-transform: uppercase;
|
48
|
+
}
|
49
|
+
.nav-list > li + .nav-header {
|
50
|
+
margin-top: 9px;
|
51
|
+
}
|
52
|
+
.nav-list .active > a {
|
53
|
+
color: $white;
|
54
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.2);
|
55
|
+
background-color: $linkColor;
|
56
|
+
}
|
57
|
+
.nav-list .icon {
|
58
|
+
margin-right: 2px;
|
59
|
+
}
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
// TABS AND PILLS
|
64
|
+
// -------------
|
65
|
+
|
66
|
+
// Common styles
|
67
|
+
.nav-tabs,
|
68
|
+
.nav-pills {
|
69
|
+
@include clearfix();
|
70
|
+
}
|
71
|
+
.nav-tabs > li,
|
72
|
+
.nav-pills > li {
|
73
|
+
float: left;
|
74
|
+
}
|
75
|
+
.nav-tabs > li > a,
|
76
|
+
.nav-pills > li > a {
|
77
|
+
padding-right: 12px;
|
78
|
+
padding-left: 12px;
|
79
|
+
margin-right: 2px;
|
80
|
+
line-height: 14px; // keeps the overall height an even number
|
81
|
+
}
|
82
|
+
|
83
|
+
// TABS
|
84
|
+
// ----
|
85
|
+
|
86
|
+
// Give the tabs something to sit on
|
87
|
+
.nav-tabs {
|
88
|
+
border-bottom: 1px solid #ddd;
|
89
|
+
}
|
90
|
+
|
91
|
+
// Make the list-items overlay the bottom border
|
92
|
+
.nav-tabs > li {
|
93
|
+
margin-bottom: -1px;
|
94
|
+
}
|
95
|
+
|
96
|
+
// Actual tabs (as links)
|
97
|
+
.nav-tabs > li > a {
|
98
|
+
padding-top: 9px;
|
99
|
+
padding-bottom: 9px;
|
100
|
+
border: 1px solid transparent;
|
101
|
+
@include border-radius(4px 4px 0 0);
|
102
|
+
&:hover {
|
103
|
+
border-color: $grayLighter $grayLighter #ddd;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
// Active state, and it's :hover to override normal :hover
|
107
|
+
.nav-tabs > .active > a,
|
108
|
+
.nav-tabs > .active > a:hover {
|
109
|
+
color: $gray;
|
110
|
+
background-color: $white;
|
111
|
+
border: 1px solid #ddd;
|
112
|
+
border-bottom-color: transparent;
|
113
|
+
cursor: default;
|
114
|
+
}
|
115
|
+
|
116
|
+
// PILLS
|
117
|
+
// -----
|
118
|
+
|
119
|
+
// Links rendered as pills
|
120
|
+
.nav-pills > li > a {
|
121
|
+
padding-top: 8px;
|
122
|
+
padding-bottom: 8px;
|
123
|
+
margin-top: 2px;
|
124
|
+
margin-bottom: 2px;
|
125
|
+
@include border-radius(5px);
|
126
|
+
}
|
127
|
+
|
128
|
+
// Active state
|
129
|
+
.nav-pills .active > a,
|
130
|
+
.nav-pills .active > a:hover {
|
131
|
+
color: $white;
|
132
|
+
background-color: $linkColor;
|
133
|
+
}
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
// STACKED NAV
|
138
|
+
// -----------
|
139
|
+
|
140
|
+
// Stacked tabs and pills
|
141
|
+
.nav-stacked > li {
|
142
|
+
float: none;
|
143
|
+
}
|
144
|
+
.nav-stacked > li > a {
|
145
|
+
margin-right: 0; // no need for the gap between nav items
|
146
|
+
}
|
147
|
+
|
148
|
+
// Tabs
|
149
|
+
.nav-tabs.nav-stacked {
|
150
|
+
border-bottom: 0;
|
151
|
+
}
|
152
|
+
.nav-tabs.nav-stacked > li > a {
|
153
|
+
border: 1px solid #ddd;
|
154
|
+
@include border-radius(0);
|
155
|
+
}
|
156
|
+
.nav-tabs.nav-stacked > li:first-child > a {
|
157
|
+
@include border-radius(4px 4px 0 0);
|
158
|
+
}
|
159
|
+
.nav-tabs.nav-stacked > li:last-child > a {
|
160
|
+
@include border-radius(0 0 4px 4px);
|
161
|
+
}
|
162
|
+
.nav-tabs.nav-stacked > li > a:hover {
|
163
|
+
border-color: #ddd;
|
164
|
+
z-index: 2;
|
165
|
+
}
|
166
|
+
|
167
|
+
// Pills
|
168
|
+
.nav-pills.nav-stacked > li > a {
|
169
|
+
margin-bottom: 3px;
|
170
|
+
}
|
171
|
+
.nav-pills.nav-stacked > li:last-child > a {
|
172
|
+
margin-bottom: 1px; // decrease margin to match sizing of stacked tabs
|
173
|
+
}
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
// DROPDOWNS
|
178
|
+
// ---------
|
179
|
+
|
180
|
+
// Position the menu
|
181
|
+
.nav-tabs .dropdown-menu,
|
182
|
+
.nav-pills .dropdown-menu {
|
183
|
+
margin-top: 1px;
|
184
|
+
border-width: 1px;
|
185
|
+
}
|
186
|
+
.nav-pills .dropdown-menu {
|
187
|
+
@include border-radius(4px);
|
188
|
+
}
|
189
|
+
|
190
|
+
// Default dropdown links
|
191
|
+
// -------------------------
|
192
|
+
// Make carets use linkColor to start
|
193
|
+
.nav-tabs .dropdown-toggle .caret,
|
194
|
+
.nav-pills .dropdown-toggle .caret {
|
195
|
+
border-top-color: $linkColor;
|
196
|
+
margin-top: 6px;
|
197
|
+
}
|
198
|
+
.nav-tabs .dropdown-toggle:hover .caret,
|
199
|
+
.nav-pills .dropdown-toggle:hover .caret {
|
200
|
+
border-top-color: $linkColorHover;
|
201
|
+
}
|
202
|
+
|
203
|
+
// Active dropdown links
|
204
|
+
// -------------------------
|
205
|
+
.nav-tabs .active .dropdown-toggle .caret,
|
206
|
+
.nav-pills .active .dropdown-toggle .caret {
|
207
|
+
border-top-color: $grayDark;
|
208
|
+
}
|
209
|
+
|
210
|
+
// Active:hover dropdown links
|
211
|
+
// -------------------------
|
212
|
+
.nav > .dropdown.active > a:hover {
|
213
|
+
color: $black;
|
214
|
+
cursor: pointer;
|
215
|
+
}
|
216
|
+
|
217
|
+
// Open dropdowns
|
218
|
+
// -------------------------
|
219
|
+
.nav-tabs .open .dropdown-toggle,
|
220
|
+
.nav-pills .open .dropdown-toggle,
|
221
|
+
.nav > .open.active > a:hover {
|
222
|
+
color: $white;
|
223
|
+
background-color: $grayLight;
|
224
|
+
border-color: $grayLight;
|
225
|
+
}
|
226
|
+
.nav .open .caret,
|
227
|
+
.nav .open.active .caret,
|
228
|
+
.nav .open a:hover .caret {
|
229
|
+
border-top-color: $white;
|
230
|
+
@include opacity(100);
|
231
|
+
}
|
232
|
+
|
233
|
+
// Dropdowns in stacked tabs
|
234
|
+
.tabs-stacked .open > a:hover {
|
235
|
+
border-color: $grayLight;
|
236
|
+
}
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
// TABBABLE
|
241
|
+
// --------
|
242
|
+
|
243
|
+
|
244
|
+
// COMMON STYLES
|
245
|
+
// -------------
|
246
|
+
|
247
|
+
// Clear any floats
|
248
|
+
.tabbable {
|
249
|
+
@include clearfix();
|
250
|
+
}
|
251
|
+
|
252
|
+
// Remove border on bottom, left, right
|
253
|
+
.tabs-below .nav-tabs,
|
254
|
+
.tabs-right .nav-tabs,
|
255
|
+
.tabs-left .nav-tabs {
|
256
|
+
border-bottom: 0;
|
257
|
+
}
|
258
|
+
|
259
|
+
// Show/hide tabbable areas
|
260
|
+
.tab-content > .tab-pane,
|
261
|
+
.pill-content > .pill-pane {
|
262
|
+
display: none;
|
263
|
+
}
|
264
|
+
.tab-content > .active,
|
265
|
+
.pill-content > .active {
|
266
|
+
display: block;
|
267
|
+
}
|
268
|
+
|
269
|
+
|
270
|
+
// BOTTOM
|
271
|
+
// ------
|
272
|
+
|
273
|
+
.tabs-below .nav-tabs {
|
274
|
+
border-top: 1px solid #ddd;
|
275
|
+
}
|
276
|
+
.tabs-below .nav-tabs > li {
|
277
|
+
margin-top: -1px;
|
278
|
+
margin-bottom: 0;
|
279
|
+
}
|
280
|
+
.tabs-below .nav-tabs > li > a {
|
281
|
+
@include border-radius(0 0 4px 4px);
|
282
|
+
&:hover {
|
283
|
+
border-bottom-color: transparent;
|
284
|
+
border-top-color: #ddd;
|
285
|
+
}
|
286
|
+
}
|
287
|
+
.tabs-below .nav-tabs .active > a,
|
288
|
+
.tabs-below .nav-tabs .active > a:hover {
|
289
|
+
border-color: transparent #ddd #ddd #ddd;
|
290
|
+
}
|
291
|
+
|
292
|
+
// LEFT & RIGHT
|
293
|
+
// ------------
|
294
|
+
|
295
|
+
// Common styles
|
296
|
+
.tabs-left .nav-tabs > li,
|
297
|
+
.tabs-right .nav-tabs > li {
|
298
|
+
float: none;
|
299
|
+
}
|
300
|
+
.tabs-left .nav-tabs > li > a,
|
301
|
+
.tabs-right .nav-tabs > li > a {
|
302
|
+
min-width: 74px;
|
303
|
+
margin-right: 0;
|
304
|
+
margin-bottom: 3px;
|
305
|
+
}
|
306
|
+
|
307
|
+
// Tabs on the left
|
308
|
+
.tabs-left .nav-tabs {
|
309
|
+
float: left;
|
310
|
+
margin-right: 19px;
|
311
|
+
border-right: 1px solid #ddd;
|
312
|
+
}
|
313
|
+
.tabs-left .nav-tabs > li > a {
|
314
|
+
margin-right: -1px;
|
315
|
+
@include border-radius(4px 0 0 4px);
|
316
|
+
}
|
317
|
+
.tabs-left .nav-tabs > li > a:hover {
|
318
|
+
border-color: $grayLighter #ddd $grayLighter $grayLighter;
|
319
|
+
}
|
320
|
+
.tabs-left .nav-tabs .active > a,
|
321
|
+
.tabs-left .nav-tabs .active > a:hover {
|
322
|
+
border-color: #ddd transparent #ddd #ddd;
|
323
|
+
*border-right-color: $white;
|
324
|
+
}
|
325
|
+
|
326
|
+
// Tabs on the right
|
327
|
+
.tabs-right .nav-tabs {
|
328
|
+
float: right;
|
329
|
+
margin-left: 19px;
|
330
|
+
border-left: 1px solid #ddd;
|
331
|
+
}
|
332
|
+
.tabs-right .nav-tabs > li > a {
|
333
|
+
margin-left: -1px;
|
334
|
+
@include border-radius(0 4px 4px 0);
|
335
|
+
}
|
336
|
+
.tabs-right .nav-tabs > li > a:hover {
|
337
|
+
border-color: $grayLighter $grayLighter $grayLighter #ddd;
|
338
|
+
}
|
339
|
+
.tabs-right .nav-tabs .active > a,
|
340
|
+
.tabs-right .nav-tabs .active > a:hover {
|
341
|
+
border-color: #ddd #ddd #ddd transparent;
|
342
|
+
*border-left-color: $white;
|
343
|
+
}
|