audit_rails 2.0.4 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -1
- data/app/assets/stylesheets/audit_rails/application.css +3 -4
- data/app/assets/stylesheets/audit_rails/audit_rails.css +78 -0
- data/app/assets/stylesheets/audit_rails/bootstrap_override.css +58 -0
- data/app/assets/stylesheets/audit_rails/twitter/_alerts.scss +67 -0
- data/app/assets/stylesheets/audit_rails/twitter/_badges.scss +51 -0
- data/app/assets/stylesheets/audit_rails/twitter/_breadcrumbs.scss +23 -0
- data/app/assets/stylesheets/audit_rails/twitter/_button-groups.scss +253 -0
- data/app/assets/stylesheets/audit_rails/twitter/_buttons.scss +158 -0
- data/app/assets/stylesheets/audit_rails/twitter/_carousel.scss +231 -0
- data/app/assets/stylesheets/audit_rails/twitter/_close.scss +35 -0
- data/app/assets/stylesheets/audit_rails/twitter/_code.scss +53 -0
- data/app/assets/stylesheets/audit_rails/twitter/_component-animations.scss +29 -0
- data/app/assets/stylesheets/audit_rails/twitter/_dropdowns.scss +193 -0
- data/app/assets/stylesheets/audit_rails/twitter/_forms.scss +363 -0
- data/app/assets/stylesheets/audit_rails/twitter/_glyphicons.scss +236 -0
- data/app/assets/stylesheets/audit_rails/twitter/_grid.scss +93 -0
- data/app/assets/stylesheets/audit_rails/twitter/_input-groups.scss +136 -0
- data/app/assets/stylesheets/audit_rails/twitter/_jumbotron.scss +40 -0
- data/app/assets/stylesheets/audit_rails/twitter/_labels.scss +58 -0
- data/app/assets/stylesheets/audit_rails/twitter/_list-group.scss +88 -0
- data/app/assets/stylesheets/audit_rails/twitter/_media.scss +56 -0
- data/app/assets/stylesheets/audit_rails/twitter/_mixins.scss +861 -0
- data/app/assets/stylesheets/audit_rails/twitter/_modals.scss +132 -0
- data/app/assets/stylesheets/audit_rails/twitter/_navbar.scss +628 -0
- data/app/assets/stylesheets/audit_rails/twitter/_navs.scss +262 -0
- data/app/assets/stylesheets/audit_rails/twitter/_normalize.scss +406 -0
- data/app/assets/stylesheets/audit_rails/twitter/_pager.scss +55 -0
- data/app/assets/stylesheets/audit_rails/twitter/_pagination.scss +85 -0
- data/app/assets/stylesheets/audit_rails/twitter/_panels.scss +172 -0
- data/app/assets/stylesheets/audit_rails/twitter/_popovers.scss +133 -0
- data/app/assets/stylesheets/audit_rails/twitter/_print.scss +105 -0
- data/app/assets/stylesheets/audit_rails/twitter/_progress-bars.scss +92 -0
- data/app/assets/stylesheets/audit_rails/twitter/_responsive-utilities.scss +198 -0
- data/app/assets/stylesheets/audit_rails/twitter/_scaffolding.scss +119 -0
- data/app/assets/stylesheets/audit_rails/twitter/_tables.scss +244 -0
- data/app/assets/stylesheets/audit_rails/twitter/_theme.scss +247 -0
- data/app/assets/stylesheets/audit_rails/twitter/_thumbnails.scss +32 -0
- data/app/assets/stylesheets/audit_rails/twitter/_tooltip.scss +95 -0
- data/app/assets/stylesheets/audit_rails/twitter/_type.scss +279 -0
- data/app/assets/stylesheets/audit_rails/twitter/_utilities.scss +56 -0
- data/app/assets/stylesheets/audit_rails/twitter/_variables.scss +637 -0
- data/app/assets/stylesheets/audit_rails/twitter/_wells.scss +29 -0
- data/app/assets/stylesheets/audit_rails/twitter/bootstrap.scss +49 -0
- data/app/views/audit_rails/audits/_form_elements.html.erb +8 -2
- data/app/views/layouts/audit_rails/application.html.erb +33 -24
- data/lib/audit_rails/version.rb +1 -1
- metadata +47 -9
- data/app/assets/stylesheets/audit_rails/bootstrap-theme.css +0 -384
- data/app/assets/stylesheets/audit_rails/bootstrap.css +0 -6805
- data/app/assets/stylesheets/audit_rails/theme.css +0 -14
@@ -0,0 +1,132 @@
|
|
1
|
+
//
|
2
|
+
// Modals
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
// .modal-open - body class for killing the scroll
|
6
|
+
// .modal - container to scroll within
|
7
|
+
// .modal-dialog - positioning shell for the actual modal
|
8
|
+
// .modal-content - actual modal w/ bg and corners and shit
|
9
|
+
|
10
|
+
// Kill the scroll on the body
|
11
|
+
.modal-open {
|
12
|
+
overflow: hidden;
|
13
|
+
}
|
14
|
+
|
15
|
+
// Container that the modal scrolls within
|
16
|
+
.modal {
|
17
|
+
display: none;
|
18
|
+
overflow: auto;
|
19
|
+
overflow-y: scroll;
|
20
|
+
position: fixed;
|
21
|
+
top: 0;
|
22
|
+
right: 0;
|
23
|
+
bottom: 0;
|
24
|
+
left: 0;
|
25
|
+
z-index: $zindex-modal-background;
|
26
|
+
|
27
|
+
// When fading in the modal, animate it to slide down
|
28
|
+
&.fade .modal-dialog {
|
29
|
+
@include translate(0, -25%);
|
30
|
+
@include transition-transform(0.3s ease-out);
|
31
|
+
}
|
32
|
+
&.in .modal-dialog { @include translate(0, 0)}
|
33
|
+
}
|
34
|
+
|
35
|
+
// Shell div to position the modal with bottom padding
|
36
|
+
.modal-dialog {
|
37
|
+
position: relative;
|
38
|
+
margin-left: auto;
|
39
|
+
margin-right: auto;
|
40
|
+
width: auto;
|
41
|
+
padding: 10px;
|
42
|
+
z-index: ($zindex-modal-background + 10);
|
43
|
+
}
|
44
|
+
|
45
|
+
// Actual modal
|
46
|
+
.modal-content {
|
47
|
+
position: relative;
|
48
|
+
background-color: $modal-content-bg;
|
49
|
+
border: 1px solid $modal-content-fallback-border-color; //old browsers fallback (ie8 etc)
|
50
|
+
border: 1px solid $modal-content-border-color;
|
51
|
+
border-radius: $border-radius-large;
|
52
|
+
@include box-shadow(0 3px 9px rgba(0,0,0,.5));
|
53
|
+
background-clip: padding-box;
|
54
|
+
// Remove focus outline from opened modal
|
55
|
+
outline: none;
|
56
|
+
}
|
57
|
+
|
58
|
+
// Modal background
|
59
|
+
.modal-backdrop {
|
60
|
+
position: fixed;
|
61
|
+
top: 0;
|
62
|
+
right: 0;
|
63
|
+
bottom: 0;
|
64
|
+
left: 0;
|
65
|
+
z-index: ($zindex-modal-background - 10);
|
66
|
+
background-color: $modal-backdrop-bg;
|
67
|
+
// Fade for backdrop
|
68
|
+
&.fade { @include opacity(0); }
|
69
|
+
&.in { @include opacity(.5); }
|
70
|
+
}
|
71
|
+
|
72
|
+
// Modal header
|
73
|
+
// Top section of the modal w/ title and dismiss
|
74
|
+
.modal-header {
|
75
|
+
padding: $modal-title-padding;
|
76
|
+
border-bottom: 1px solid $modal-header-border-color;
|
77
|
+
min-height: ($modal-title-padding + $modal-title-line-height);
|
78
|
+
}
|
79
|
+
// Close icon
|
80
|
+
.modal-header .close {
|
81
|
+
margin-top: -2px;
|
82
|
+
}
|
83
|
+
|
84
|
+
// Title text within header
|
85
|
+
.modal-title {
|
86
|
+
margin: 0;
|
87
|
+
line-height: $modal-title-line-height;
|
88
|
+
}
|
89
|
+
|
90
|
+
// Modal body
|
91
|
+
// Where all modal content resides (sibling of .modal-header and .modal-footer)
|
92
|
+
.modal-body {
|
93
|
+
position: relative;
|
94
|
+
padding: $modal-inner-padding;
|
95
|
+
}
|
96
|
+
|
97
|
+
// Footer (for actions)
|
98
|
+
.modal-footer {
|
99
|
+
margin-top: 15px;
|
100
|
+
padding: ($modal-inner-padding - 1) $modal-inner-padding $modal-inner-padding;
|
101
|
+
text-align: right; // right align buttons
|
102
|
+
border-top: 1px solid $modal-footer-border-color;
|
103
|
+
@include clearfix(); // clear it in case folks use .pull-* classes on buttons
|
104
|
+
|
105
|
+
// Properly space out buttons
|
106
|
+
.btn + .btn {
|
107
|
+
margin-left: 5px;
|
108
|
+
margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
|
109
|
+
}
|
110
|
+
// but override that for button groups
|
111
|
+
.btn-group .btn + .btn {
|
112
|
+
margin-left: -1px;
|
113
|
+
}
|
114
|
+
// and override it for block buttons as well
|
115
|
+
.btn-block + .btn-block {
|
116
|
+
margin-left: 0;
|
117
|
+
}
|
118
|
+
}
|
119
|
+
|
120
|
+
// Scale up the modal
|
121
|
+
@media screen and (min-width: $screen-sm-min) {
|
122
|
+
|
123
|
+
.modal-dialog {
|
124
|
+
width: 600px;
|
125
|
+
padding-top: 30px;
|
126
|
+
padding-bottom: 30px;
|
127
|
+
}
|
128
|
+
.modal-content {
|
129
|
+
@include box-shadow(0 5px 15px rgba(0,0,0,.5));
|
130
|
+
}
|
131
|
+
|
132
|
+
}
|
@@ -0,0 +1,628 @@
|
|
1
|
+
//
|
2
|
+
// Navbars
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Wrapper and base class
|
7
|
+
//
|
8
|
+
// Provide a static navbar from which we expand to create full-width, fixed, and
|
9
|
+
// other navbar variations.
|
10
|
+
|
11
|
+
.navbar {
|
12
|
+
position: relative;
|
13
|
+
min-height: $navbar-height; // Ensure a navbar always shows (e.g., without a .navbar-brand in collapsed mode)
|
14
|
+
margin-bottom: $navbar-margin-bottom;
|
15
|
+
border: 1px solid transparent;
|
16
|
+
|
17
|
+
// Prevent floats from breaking the navbar
|
18
|
+
@include clearfix();
|
19
|
+
|
20
|
+
@media (min-width: $grid-float-breakpoint) {
|
21
|
+
border-radius: $navbar-border-radius;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
|
26
|
+
// Navbar heading
|
27
|
+
//
|
28
|
+
// Groups `.navbar-brand` and `.navbar-toggle` into a single component for easy
|
29
|
+
// styling of responsive aspects.
|
30
|
+
|
31
|
+
.navbar-header {
|
32
|
+
@include clearfix();
|
33
|
+
|
34
|
+
@media (min-width: $grid-float-breakpoint) {
|
35
|
+
float: left;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
|
40
|
+
// Navbar collapse (body)
|
41
|
+
//
|
42
|
+
// Group your navbar content into this for easy collapsing and expanding across
|
43
|
+
// various device sizes. By default, this content is collapsed when <768px, but
|
44
|
+
// will expand past that for a horizontal display.
|
45
|
+
//
|
46
|
+
// To start (on mobile devices) the navbar links, forms, and buttons are stacked
|
47
|
+
// vertically and include a `max-height` to overflow in case you have too much
|
48
|
+
// content for the user's viewport.
|
49
|
+
|
50
|
+
.navbar-collapse {
|
51
|
+
max-height: 340px;
|
52
|
+
overflow-x: visible;
|
53
|
+
padding-right: $navbar-padding-horizontal;
|
54
|
+
padding-left: $navbar-padding-horizontal;
|
55
|
+
border-top: 1px solid transparent;
|
56
|
+
box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
|
57
|
+
@include clearfix();
|
58
|
+
-webkit-overflow-scrolling: touch;
|
59
|
+
|
60
|
+
&.in {
|
61
|
+
overflow-y: auto;
|
62
|
+
}
|
63
|
+
|
64
|
+
@media (min-width: $grid-float-breakpoint) {
|
65
|
+
width: auto;
|
66
|
+
border-top: 0;
|
67
|
+
box-shadow: none;
|
68
|
+
|
69
|
+
&.collapse {
|
70
|
+
display: block !important;
|
71
|
+
height: auto !important;
|
72
|
+
padding-bottom: 0; // Override default setting
|
73
|
+
overflow: visible !important;
|
74
|
+
}
|
75
|
+
|
76
|
+
&.in {
|
77
|
+
overflow-y: auto;
|
78
|
+
}
|
79
|
+
|
80
|
+
// Account for first and last children spacing
|
81
|
+
.navbar-nav.navbar-left:first-child {
|
82
|
+
margin-left: -$navbar-padding-horizontal;
|
83
|
+
}
|
84
|
+
.navbar-nav.navbar-right:last-child {
|
85
|
+
margin-right: -$navbar-padding-horizontal;
|
86
|
+
}
|
87
|
+
.navbar-text:last-child {
|
88
|
+
margin-right: 0;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
|
94
|
+
// Both navbar header and collapse
|
95
|
+
//
|
96
|
+
// When a container is present, change the behavior of the header and collapse.
|
97
|
+
|
98
|
+
.container > .navbar-header,
|
99
|
+
.container > .navbar-collapse {
|
100
|
+
margin-right: -$navbar-padding-horizontal;
|
101
|
+
margin-left: -$navbar-padding-horizontal;
|
102
|
+
|
103
|
+
@media (min-width: $grid-float-breakpoint) {
|
104
|
+
margin-right: 0;
|
105
|
+
margin-left: 0;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
|
109
|
+
|
110
|
+
//
|
111
|
+
// Navbar alignment options
|
112
|
+
//
|
113
|
+
// Display the navbar across the entirety of the page or fixed it to the top or
|
114
|
+
// bottom of the page.
|
115
|
+
|
116
|
+
// Static top (unfixed, but 100% wide) navbar
|
117
|
+
.navbar-static-top {
|
118
|
+
z-index: $zindex-navbar;
|
119
|
+
border-width: 0 0 1px;
|
120
|
+
|
121
|
+
@media (min-width: $grid-float-breakpoint) {
|
122
|
+
border-radius: 0;
|
123
|
+
}
|
124
|
+
}
|
125
|
+
|
126
|
+
// Fix the top/bottom navbars when screen real estate supports it
|
127
|
+
.navbar-fixed-top,
|
128
|
+
.navbar-fixed-bottom {
|
129
|
+
position: fixed;
|
130
|
+
right: 0;
|
131
|
+
left: 0;
|
132
|
+
z-index: $zindex-navbar-fixed;
|
133
|
+
|
134
|
+
// Undo the rounded corners
|
135
|
+
@media (min-width: $grid-float-breakpoint) {
|
136
|
+
border-radius: 0;
|
137
|
+
}
|
138
|
+
}
|
139
|
+
.navbar-fixed-top {
|
140
|
+
top: 0;
|
141
|
+
border-width: 0 0 1px;
|
142
|
+
}
|
143
|
+
.navbar-fixed-bottom {
|
144
|
+
bottom: 0;
|
145
|
+
margin-bottom: 0; // override .navbar defaults
|
146
|
+
border-width: 1px 0 0;
|
147
|
+
}
|
148
|
+
|
149
|
+
|
150
|
+
// Brand/project name
|
151
|
+
|
152
|
+
.navbar-brand {
|
153
|
+
float: left;
|
154
|
+
padding: $navbar-padding-vertical $navbar-padding-horizontal;
|
155
|
+
font-size: $font-size-large;
|
156
|
+
line-height: $line-height-computed;
|
157
|
+
|
158
|
+
&:hover,
|
159
|
+
&:focus {
|
160
|
+
text-decoration: none;
|
161
|
+
}
|
162
|
+
|
163
|
+
@media (min-width: $grid-float-breakpoint) {
|
164
|
+
.navbar > .container & {
|
165
|
+
margin-left: -$navbar-padding-horizontal;
|
166
|
+
}
|
167
|
+
}
|
168
|
+
}
|
169
|
+
|
170
|
+
|
171
|
+
// Navbar toggle
|
172
|
+
//
|
173
|
+
// Custom button for toggling the `.navbar-collapse`, powered by the collapse
|
174
|
+
// JavaScript plugin.
|
175
|
+
|
176
|
+
.navbar-toggle {
|
177
|
+
position: relative;
|
178
|
+
float: right;
|
179
|
+
margin-right: $navbar-padding-horizontal;
|
180
|
+
padding: 9px 10px;
|
181
|
+
@include navbar-vertical-align(34px);
|
182
|
+
background-color: transparent;
|
183
|
+
border: 1px solid transparent;
|
184
|
+
border-radius: $border-radius-base;
|
185
|
+
|
186
|
+
// Bars
|
187
|
+
.icon-bar {
|
188
|
+
display: block;
|
189
|
+
width: 22px;
|
190
|
+
height: 2px;
|
191
|
+
border-radius: 1px;
|
192
|
+
}
|
193
|
+
.icon-bar + .icon-bar {
|
194
|
+
margin-top: 4px;
|
195
|
+
}
|
196
|
+
|
197
|
+
@media (min-width: $grid-float-breakpoint) {
|
198
|
+
display: none;
|
199
|
+
}
|
200
|
+
}
|
201
|
+
|
202
|
+
|
203
|
+
// Navbar nav links
|
204
|
+
//
|
205
|
+
// Builds on top of the `.nav` components with it's own modifier class to make
|
206
|
+
// the nav the full height of the horizontal nav (above 768px).
|
207
|
+
|
208
|
+
.navbar-nav {
|
209
|
+
margin: ($navbar-padding-vertical / 2) (-$navbar-padding-horizontal);
|
210
|
+
|
211
|
+
> li > a {
|
212
|
+
padding-top: 10px;
|
213
|
+
padding-bottom: 10px;
|
214
|
+
line-height: $line-height-computed;
|
215
|
+
}
|
216
|
+
|
217
|
+
@media (max-width: $screen-xs-max) {
|
218
|
+
// Dropdowns get custom display when collapsed
|
219
|
+
.open .dropdown-menu {
|
220
|
+
position: static;
|
221
|
+
float: none;
|
222
|
+
width: auto;
|
223
|
+
margin-top: 0;
|
224
|
+
background-color: transparent;
|
225
|
+
border: 0;
|
226
|
+
box-shadow: none;
|
227
|
+
> li > a,
|
228
|
+
.dropdown-header {
|
229
|
+
padding: 5px 15px 5px 25px;
|
230
|
+
}
|
231
|
+
> li > a {
|
232
|
+
line-height: $line-height-computed;
|
233
|
+
&:hover,
|
234
|
+
&:focus {
|
235
|
+
background-image: none;
|
236
|
+
}
|
237
|
+
}
|
238
|
+
}
|
239
|
+
}
|
240
|
+
|
241
|
+
// Uncollapse the nav
|
242
|
+
@media (min-width: $grid-float-breakpoint) {
|
243
|
+
float: left;
|
244
|
+
margin: 0;
|
245
|
+
|
246
|
+
> li {
|
247
|
+
float: left;
|
248
|
+
> a {
|
249
|
+
padding-top: (($navbar-height - $line-height-computed) / 2);
|
250
|
+
padding-bottom: (($navbar-height - $line-height-computed) / 2);
|
251
|
+
}
|
252
|
+
}
|
253
|
+
}
|
254
|
+
|
255
|
+
}
|
256
|
+
|
257
|
+
|
258
|
+
// Component alignment
|
259
|
+
//
|
260
|
+
// Repurpose the pull utilities as their own navbar utilities to avoid specificity
|
261
|
+
// issues with parents and chaining. Only do this when the navbar is uncollapsed
|
262
|
+
// though so that navbar contents properly stack and align in mobile.
|
263
|
+
|
264
|
+
@media (min-width: $grid-float-breakpoint) {
|
265
|
+
.navbar-left {
|
266
|
+
float: left !important;
|
267
|
+
}
|
268
|
+
.navbar-right {
|
269
|
+
float: right !important;
|
270
|
+
}
|
271
|
+
}
|
272
|
+
|
273
|
+
|
274
|
+
// Navbar form
|
275
|
+
//
|
276
|
+
// Extension of the `.form-inline` with some extra flavor for optimum display in
|
277
|
+
// our navbars.
|
278
|
+
|
279
|
+
.navbar-form {
|
280
|
+
margin-left: -$navbar-padding-horizontal;
|
281
|
+
margin-right: -$navbar-padding-horizontal;
|
282
|
+
padding: 10px $navbar-padding-horizontal;
|
283
|
+
border-top: 1px solid transparent;
|
284
|
+
border-bottom: 1px solid transparent;
|
285
|
+
$shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1);
|
286
|
+
@include box-shadow($shadow);
|
287
|
+
|
288
|
+
// Mixin behavior for optimum display
|
289
|
+
@extend .form-inline;
|
290
|
+
|
291
|
+
.form-group {
|
292
|
+
@media (max-width: $screen-xs-max) {
|
293
|
+
margin-bottom: 5px;
|
294
|
+
}
|
295
|
+
}
|
296
|
+
|
297
|
+
// Vertically center in expanded, horizontal navbar
|
298
|
+
@include navbar-vertical-align($input-height-base);
|
299
|
+
|
300
|
+
// Undo 100% width for pull classes
|
301
|
+
@media (min-width: $grid-float-breakpoint) {
|
302
|
+
width: auto;
|
303
|
+
border: 0;
|
304
|
+
margin-left: 0;
|
305
|
+
margin-right: 0;
|
306
|
+
padding-top: 0;
|
307
|
+
padding-bottom: 0;
|
308
|
+
@include box-shadow(none);
|
309
|
+
}
|
310
|
+
}
|
311
|
+
|
312
|
+
|
313
|
+
// Dropdown menus
|
314
|
+
|
315
|
+
// Menu position and menu carets
|
316
|
+
.navbar-nav > li > .dropdown-menu {
|
317
|
+
margin-top: 0;
|
318
|
+
@include border-top-radius(0);
|
319
|
+
}
|
320
|
+
// Menu position and menu caret support for dropups via extra dropup class
|
321
|
+
.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {
|
322
|
+
@include border-bottom-radius(0);
|
323
|
+
}
|
324
|
+
|
325
|
+
// Right aligned menus need alt position
|
326
|
+
.navbar-nav.pull-right > li > .dropdown-menu,
|
327
|
+
.navbar-nav > li > .dropdown-menu.pull-right {
|
328
|
+
left: auto;
|
329
|
+
right: 0;
|
330
|
+
}
|
331
|
+
|
332
|
+
|
333
|
+
// Buttons in navbars
|
334
|
+
//
|
335
|
+
// Vertically center a button within a navbar (when *not* in a form).
|
336
|
+
|
337
|
+
.navbar-btn {
|
338
|
+
@include navbar-vertical-align($input-height-base);
|
339
|
+
}
|
340
|
+
|
341
|
+
|
342
|
+
// Text in navbars
|
343
|
+
//
|
344
|
+
// Add a class to make any element properly align itself vertically within the navbars.
|
345
|
+
|
346
|
+
.navbar-text {
|
347
|
+
float: left;
|
348
|
+
@include navbar-vertical-align($line-height-computed);
|
349
|
+
|
350
|
+
@media (min-width: $grid-float-breakpoint) {
|
351
|
+
margin-left: $navbar-padding-horizontal;
|
352
|
+
margin-right: $navbar-padding-horizontal;
|
353
|
+
}
|
354
|
+
}
|
355
|
+
|
356
|
+
// Alternate navbars
|
357
|
+
// --------------------------------------------------
|
358
|
+
|
359
|
+
// Default navbar
|
360
|
+
.navbar-default {
|
361
|
+
background-color: $navbar-default-bg;
|
362
|
+
border-color: $navbar-default-border;
|
363
|
+
|
364
|
+
.navbar-brand {
|
365
|
+
color: $navbar-default-brand-color;
|
366
|
+
&:hover,
|
367
|
+
&:focus {
|
368
|
+
color: $navbar-default-brand-hover-color;
|
369
|
+
background-color: $navbar-default-brand-hover-bg;
|
370
|
+
}
|
371
|
+
}
|
372
|
+
|
373
|
+
.navbar-text {
|
374
|
+
color: $navbar-default-color;
|
375
|
+
}
|
376
|
+
|
377
|
+
.navbar-nav {
|
378
|
+
> li > a {
|
379
|
+
color: $navbar-default-link-color;
|
380
|
+
|
381
|
+
&:hover,
|
382
|
+
&:focus {
|
383
|
+
color: $navbar-default-link-hover-color;
|
384
|
+
background-color: $navbar-default-link-hover-bg;
|
385
|
+
}
|
386
|
+
}
|
387
|
+
> .active > a {
|
388
|
+
&,
|
389
|
+
&:hover,
|
390
|
+
&:focus {
|
391
|
+
color: $navbar-default-link-active-color;
|
392
|
+
background-color: $navbar-default-link-active-bg;
|
393
|
+
}
|
394
|
+
}
|
395
|
+
> .disabled > a {
|
396
|
+
&,
|
397
|
+
&:hover,
|
398
|
+
&:focus {
|
399
|
+
color: $navbar-default-link-disabled-color;
|
400
|
+
background-color: $navbar-default-link-disabled-bg;
|
401
|
+
}
|
402
|
+
}
|
403
|
+
}
|
404
|
+
|
405
|
+
.navbar-toggle {
|
406
|
+
border-color: $navbar-default-toggle-border-color;
|
407
|
+
&:hover,
|
408
|
+
&:focus {
|
409
|
+
background-color: $navbar-default-toggle-hover-bg;
|
410
|
+
}
|
411
|
+
.icon-bar {
|
412
|
+
background-color: $navbar-default-toggle-icon-bar-bg;
|
413
|
+
}
|
414
|
+
}
|
415
|
+
|
416
|
+
.navbar-collapse,
|
417
|
+
.navbar-form {
|
418
|
+
border-color: $navbar-default-border;
|
419
|
+
}
|
420
|
+
|
421
|
+
// Dropdown menu items and carets
|
422
|
+
.navbar-nav {
|
423
|
+
// Caret should match text color on hover
|
424
|
+
> .dropdown > a:hover .caret,
|
425
|
+
> .dropdown > a:focus .caret {
|
426
|
+
border-top-color: $navbar-default-link-hover-color;
|
427
|
+
border-bottom-color: $navbar-default-link-hover-color;
|
428
|
+
}
|
429
|
+
|
430
|
+
// Remove background color from open dropdown
|
431
|
+
> .open > a {
|
432
|
+
&,
|
433
|
+
&:hover,
|
434
|
+
&:focus {
|
435
|
+
background-color: $navbar-default-link-active-bg;
|
436
|
+
color: $navbar-default-link-active-color;
|
437
|
+
.caret {
|
438
|
+
border-top-color: $navbar-default-link-active-color;
|
439
|
+
border-bottom-color: $navbar-default-link-active-color;
|
440
|
+
}
|
441
|
+
}
|
442
|
+
}
|
443
|
+
> .dropdown > a .caret {
|
444
|
+
border-top-color: $navbar-default-link-color;
|
445
|
+
border-bottom-color: $navbar-default-link-color;
|
446
|
+
}
|
447
|
+
|
448
|
+
|
449
|
+
@media (max-width: $screen-xs-max) {
|
450
|
+
// Dropdowns get custom display when collapsed
|
451
|
+
.open .dropdown-menu {
|
452
|
+
> li > a {
|
453
|
+
color: $navbar-default-link-color;
|
454
|
+
&:hover,
|
455
|
+
&:focus {
|
456
|
+
color: $navbar-default-link-hover-color;
|
457
|
+
background-color: $navbar-default-link-hover-bg;
|
458
|
+
}
|
459
|
+
}
|
460
|
+
> .active > a {
|
461
|
+
&,
|
462
|
+
&:hover,
|
463
|
+
&:focus {
|
464
|
+
color: $navbar-default-link-active-color;
|
465
|
+
background-color: $navbar-default-link-active-bg;
|
466
|
+
}
|
467
|
+
}
|
468
|
+
> .disabled > a {
|
469
|
+
&,
|
470
|
+
&:hover,
|
471
|
+
&:focus {
|
472
|
+
color: $navbar-default-link-disabled-color;
|
473
|
+
background-color: $navbar-default-link-disabled-bg;
|
474
|
+
}
|
475
|
+
}
|
476
|
+
}
|
477
|
+
}
|
478
|
+
}
|
479
|
+
|
480
|
+
|
481
|
+
// Links in navbars
|
482
|
+
//
|
483
|
+
// Add a class to ensure links outside the navbar nav are colored correctly.
|
484
|
+
|
485
|
+
.navbar-link {
|
486
|
+
color: $navbar-default-link-color;
|
487
|
+
&:hover {
|
488
|
+
color: $navbar-default-link-hover-color;
|
489
|
+
}
|
490
|
+
}
|
491
|
+
|
492
|
+
}
|
493
|
+
|
494
|
+
// Inverse navbar
|
495
|
+
|
496
|
+
.navbar-inverse {
|
497
|
+
background-color: $navbar-inverse-bg;
|
498
|
+
border-color: $navbar-inverse-border;
|
499
|
+
|
500
|
+
.navbar-brand {
|
501
|
+
color: $navbar-inverse-brand-color;
|
502
|
+
&:hover,
|
503
|
+
&:focus {
|
504
|
+
color: $navbar-inverse-brand-hover-color;
|
505
|
+
background-color: $navbar-inverse-brand-hover-bg;
|
506
|
+
}
|
507
|
+
}
|
508
|
+
|
509
|
+
.navbar-text {
|
510
|
+
color: $navbar-inverse-color;
|
511
|
+
}
|
512
|
+
|
513
|
+
.navbar-nav {
|
514
|
+
> li > a {
|
515
|
+
color: $navbar-inverse-link-color;
|
516
|
+
|
517
|
+
&:hover,
|
518
|
+
&:focus {
|
519
|
+
color: $navbar-inverse-link-hover-color;
|
520
|
+
background-color: $navbar-inverse-link-hover-bg;
|
521
|
+
}
|
522
|
+
}
|
523
|
+
> .active > a {
|
524
|
+
&,
|
525
|
+
&:hover,
|
526
|
+
&:focus {
|
527
|
+
color: $navbar-inverse-link-active-color;
|
528
|
+
background-color: $navbar-inverse-link-active-bg;
|
529
|
+
}
|
530
|
+
}
|
531
|
+
> .disabled > a {
|
532
|
+
&,
|
533
|
+
&:hover,
|
534
|
+
&:focus {
|
535
|
+
color: $navbar-inverse-link-disabled-color;
|
536
|
+
background-color: $navbar-inverse-link-disabled-bg;
|
537
|
+
}
|
538
|
+
}
|
539
|
+
}
|
540
|
+
|
541
|
+
// Darken the responsive nav toggle
|
542
|
+
.navbar-toggle {
|
543
|
+
border-color: $navbar-inverse-toggle-border-color;
|
544
|
+
&:hover,
|
545
|
+
&:focus {
|
546
|
+
background-color: $navbar-inverse-toggle-hover-bg;
|
547
|
+
}
|
548
|
+
.icon-bar {
|
549
|
+
background-color: $navbar-inverse-toggle-icon-bar-bg;
|
550
|
+
}
|
551
|
+
}
|
552
|
+
|
553
|
+
.navbar-collapse,
|
554
|
+
.navbar-form {
|
555
|
+
border-color: darken($navbar-inverse-bg, 7%);
|
556
|
+
}
|
557
|
+
|
558
|
+
// Dropdowns
|
559
|
+
.navbar-nav {
|
560
|
+
> .open > a {
|
561
|
+
&,
|
562
|
+
&:hover,
|
563
|
+
&:focus {
|
564
|
+
background-color: $navbar-inverse-link-active-bg;
|
565
|
+
color: $navbar-inverse-link-active-color;
|
566
|
+
}
|
567
|
+
}
|
568
|
+
> .dropdown > a:hover .caret {
|
569
|
+
border-top-color: $navbar-inverse-link-hover-color;
|
570
|
+
border-bottom-color: $navbar-inverse-link-hover-color;
|
571
|
+
}
|
572
|
+
> .dropdown > a .caret {
|
573
|
+
border-top-color: $navbar-inverse-link-color;
|
574
|
+
border-bottom-color: $navbar-inverse-link-color;
|
575
|
+
}
|
576
|
+
> .open > a {
|
577
|
+
&,
|
578
|
+
&:hover,
|
579
|
+
&:focus {
|
580
|
+
.caret {
|
581
|
+
border-top-color: $navbar-inverse-link-active-color;
|
582
|
+
border-bottom-color: $navbar-inverse-link-active-color;
|
583
|
+
}
|
584
|
+
}
|
585
|
+
}
|
586
|
+
|
587
|
+
@media (max-width: $screen-xs-max) {
|
588
|
+
// Dropdowns get custom display
|
589
|
+
.open .dropdown-menu {
|
590
|
+
> .dropdown-header {
|
591
|
+
border-color: $navbar-inverse-border;
|
592
|
+
}
|
593
|
+
> li > a {
|
594
|
+
color: $navbar-inverse-link-color;
|
595
|
+
&:hover,
|
596
|
+
&:focus {
|
597
|
+
color: $navbar-inverse-link-hover-color;
|
598
|
+
background-color: $navbar-inverse-link-hover-bg;
|
599
|
+
}
|
600
|
+
}
|
601
|
+
> .active > a {
|
602
|
+
&,
|
603
|
+
&:hover,
|
604
|
+
&:focus {
|
605
|
+
color: $navbar-inverse-link-active-color;
|
606
|
+
background-color: $navbar-inverse-link-active-bg;
|
607
|
+
}
|
608
|
+
}
|
609
|
+
> .disabled > a {
|
610
|
+
&,
|
611
|
+
&:hover,
|
612
|
+
&:focus {
|
613
|
+
color: $navbar-inverse-link-disabled-color;
|
614
|
+
background-color: $navbar-inverse-link-disabled-bg;
|
615
|
+
}
|
616
|
+
}
|
617
|
+
}
|
618
|
+
}
|
619
|
+
}
|
620
|
+
|
621
|
+
.navbar-link {
|
622
|
+
color: $navbar-inverse-link-color;
|
623
|
+
&:hover {
|
624
|
+
color: $navbar-inverse-link-hover-color;
|
625
|
+
}
|
626
|
+
}
|
627
|
+
|
628
|
+
}
|