nitro_sg 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fonts/fontawesome.js +1978 -0
- data/fonts/regular.js +1217 -0
- data/lib/nitro_sg/version.rb +1 -1
- data/sass-mixins/_global.scss +415 -0
- data/sass-mixins/_normalize.scss +424 -0
- data/sass-mixins/_print.scss +101 -0
- data/sass-mixins/application.scss +29 -0
- data/sass-mixins/application.scss.flow +1592 -0
- data/sass-mixins/base-mixins/_all.scss +11 -0
- data/sass-mixins/base-mixins/_all.scss.flow +6 -0
- data/sass-mixins/base-mixins/_border-radius.scss +25 -0
- data/sass-mixins/base-mixins/_breakpoints.scss +95 -0
- data/sass-mixins/base-mixins/_color.sass +22 -0
- data/sass-mixins/base-mixins/_forms.scss +33 -0
- data/sass-mixins/base-mixins/_general.scss +599 -0
- data/sass-mixins/base-mixins/_grid-framework.scss +81 -0
- data/sass-mixins/base-mixins/_grid.scss +126 -0
- data/sass-mixins/base-mixins/_hover.scss +26 -0
- data/sass-mixins/base-mixins/_images.scss +33 -0
- data/sass-mixins/base-mixins/_media-queries.sass +58 -0
- data/sass-mixins/base-mixins/_type.scss +46 -0
- data/sass-mixins/base-variables/_all.scss +11 -0
- data/sass-mixins/base-variables/_animation-curves.scss +37 -0
- data/sass-mixins/base-variables/_bootstrap-variables.scss +284 -0
- data/sass-mixins/base-variables/_border-radius.sass +27 -0
- data/sass-mixins/base-variables/_color-bootstrap.scss +62 -0
- data/sass-mixins/base-variables/_color-deprecated.scss +26 -0
- data/sass-mixins/base-variables/_color-ui-elements.scss +20 -0
- data/sass-mixins/base-variables/_colors-export.scss +13 -0
- data/sass-mixins/base-variables/_colors-export.scss.flow +92 -0
- data/sass-mixins/base-variables/_colors.scss +267 -0
- data/sass-mixins/base-variables/_colors.scss.flow +5 -0
- data/sass-mixins/base-variables/_fonts.scss +97 -0
- data/sass-mixins/base-variables/_forms.scss +44 -0
- data/sass-mixins/base-variables/_opacity.scss +9 -0
- data/sass-mixins/base-variables/_positioning.scss +24 -0
- data/sass-mixins/base-variables/_shadows.scss +5 -0
- data/sass-mixins/base-variables/_sizing-ui-elements.scss +2 -0
- data/sass-mixins/base-variables/_spacing.sass +27 -0
- data/sass-mixins/base-variables/_typography.sass +79 -0
- data/sass-mixins/class-helpers/_all.scss +17 -0
- data/sass-mixins/class-helpers/_borders.scss +40 -0
- data/sass-mixins/class-helpers/_color.sass +61 -0
- data/sass-mixins/class-helpers/_display.scss +40 -0
- data/sass-mixins/class-helpers/_flexbox.scss +213 -0
- data/sass-mixins/class-helpers/_glyphicons.scss +307 -0
- data/sass-mixins/class-helpers/_line-height.scss +21 -0
- data/sass-mixins/class-helpers/_radius-and-shadows.scss +49 -0
- data/sass-mixins/class-helpers/_responsive-utilities.scss +179 -0
- data/sass-mixins/class-helpers/_screen-readers.scss +34 -0
- data/sass-mixins/class-helpers/_spacing.scss +51 -0
- data/sass-mixins/class-helpers/_type.scss +323 -0
- data/sass-mixins/class-helpers/_z-index.scss +10 -0
- data/sass-mixins/components.scss +5 -0
- data/sass-mixins/nitro-ui/_alerts.scss +139 -0
- data/sass-mixins/nitro-ui/_all.scss +33 -0
- data/sass-mixins/nitro-ui/_animations.scss +37 -0
- data/sass-mixins/nitro-ui/_carousel.scss +281 -0
- data/sass-mixins/nitro-ui/_code.scss +87 -0
- data/sass-mixins/nitro-ui/_connect-cards.scss +150 -0
- data/sass-mixins/nitro-ui/_dashboards.scss +516 -0
- data/sass-mixins/nitro-ui/_fixed-confirmation-toast.scss +48 -0
- data/sass-mixins/nitro-ui/_full-menu.scss +168 -0
- data/sass-mixins/nitro-ui/_grid.scss +92 -0
- data/sass-mixins/nitro-ui/_icon-toggle.scss +37 -0
- data/sass-mixins/nitro-ui/_jumbotron.scss +65 -0
- data/sass-mixins/nitro-ui/_links.scss +69 -0
- data/sass-mixins/nitro-ui/_list-group.scss +219 -0
- data/sass-mixins/nitro-ui/_media.scss +66 -0
- data/sass-mixins/nitro-ui/_modals.scss +311 -0
- data/sass-mixins/nitro-ui/_notify.scss +56 -0
- data/sass-mixins/nitro-ui/_popovers.scss +167 -0
- data/sass-mixins/nitro-ui/_progress-bars.scss +125 -0
- data/sass-mixins/nitro-ui/_responsive-embed.scss +35 -0
- data/sass-mixins/nitro-ui/_side-modal.scss +92 -0
- data/sass-mixins/nitro-ui/_tables-responsive.scss +253 -0
- data/sass-mixins/nitro-ui/_tables.scss +296 -0
- data/sass-mixins/nitro-ui/_thumbnails.scss +38 -0
- data/sass-mixins/nitro-ui/_tooltip.scss +124 -0
- data/sass-mixins/nitro-ui/_typography.scss +176 -0
- data/sass-mixins/nitro-ui/_value-stat.scss +149 -0
- data/sass-mixins/nitro-ui/_wells.scss +37 -0
- data/sass-mixins/nitro-ui/buttons/_all.scss +97 -0
- data/sass-mixins/nitro-ui/buttons/_button-capping.scss +21 -0
- data/sass-mixins/nitro-ui/buttons/_button-groups.scss +236 -0
- data/sass-mixins/nitro-ui/buttons/_button-mixins.scss +66 -0
- data/sass-mixins/nitro-ui/buttons/_button-variables.scss +51 -0
- data/sass-mixins/nitro-ui/buttons/_choice-buttons.scss +9 -0
- data/sass-mixins/nitro-ui/buttons/_circle-buttons.scss +30 -0
- data/sass-mixins/nitro-ui/buttons/_close.scss +45 -0
- data/sass-mixins/nitro-ui/buttons/_dropdowns.scss +270 -0
- data/sass-mixins/nitro-ui/buttons/_ghost-buttons.scss +58 -0
- data/sass-mixins/nitro-ui/buttons/_link-buttons.scss +53 -0
- data/sass-mixins/nitro-ui/buttons/_solid-buttons.scss +69 -0
- data/sass-mixins/nitro-ui/cards-panels/_all.scss +3 -0
- data/sass-mixins/nitro-ui/cards-panels/_cards.scss +409 -0
- data/sass-mixins/nitro-ui/cards-panels/_collapsible-card.scss +19 -0
- data/sass-mixins/nitro-ui/cards-panels/_panel-collapse.scss +34 -0
- data/sass-mixins/nitro-ui/cards-panels/_panel-list-groups.scss +41 -0
- data/sass-mixins/nitro-ui/cards-panels/_panel-tables.scss +111 -0
- data/sass-mixins/nitro-ui/cards-panels/_panels.scss +120 -0
- data/sass-mixins/nitro-ui/forms/_all.scss +18 -0
- data/sass-mixins/nitro-ui/forms/_checkbox-radio.scss +154 -0
- data/sass-mixins/nitro-ui/forms/_checkbox-toggle.scss +77 -0
- data/sass-mixins/nitro-ui/forms/_color-feedback.scss +53 -0
- data/sass-mixins/nitro-ui/forms/_dropdown.scss +12 -0
- data/sass-mixins/nitro-ui/forms/_form-group.scss +104 -0
- data/sass-mixins/nitro-ui/forms/_general-element-reset.scss +120 -0
- data/sass-mixins/nitro-ui/forms/_help-block.scss +11 -0
- data/sass-mixins/nitro-ui/forms/_horizontal-forms.scss +69 -0
- data/sass-mixins/nitro-ui/forms/_input-groups.scss +169 -0
- data/sass-mixins/nitro-ui/forms/_label.scss +29 -0
- data/sass-mixins/nitro-ui/forms/_multi-input-group.scss +89 -0
- data/sass-mixins/nitro-ui/forms/_static-form-text.scss +19 -0
- data/sass-mixins/nitro-ui/forms/_validation-states.scss +78 -0
- data/sass-mixins/nitro-ui/layouts/_sidebar-layout.scss +59 -0
- data/sass-mixins/nitro-ui/navigation/_all.scss +36 -0
- data/sass-mixins/nitro-ui/navigation/_breadcrumbs.scss +30 -0
- data/sass-mixins/nitro-ui/navigation/_pager.scss +71 -0
- data/sass-mixins/nitro-ui/navigation/_pagination.scss +212 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_brand.scss +25 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_collapse-content.scss +49 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_default-navbar.scss +33 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_dropdowns-buttons.scss +29 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_floats.scss +21 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_flush.scss +14 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_forms.scss +41 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_header.scss +31 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_inverse-navbar.scss +32 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_light-navbar.scss +36 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_links.scss +52 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_mixins.scss +161 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_navbar.scss +29 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_position.scss +50 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_text.scss +13 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_toggle-button.scss +37 -0
- data/sass-mixins/nitro-ui/navigation/navbar/_variables.scss +8 -0
- data/sass-mixins/nitro-ui/navigation/navs/_nav-dropdowns.scss +10 -0
- data/sass-mixins/nitro-ui/navigation/navs/_nav-justified.scss +32 -0
- data/sass-mixins/nitro-ui/navigation/navs/_nav-pills.scss +41 -0
- data/sass-mixins/nitro-ui/navigation/navs/_nav-tabs-justified.scss +30 -0
- data/sass-mixins/nitro-ui/navigation/navs/_nav-tabs.scss +41 -0
- data/sass-mixins/nitro-ui/navigation/navs/_nav.scss +383 -0
- data/sass-mixins/nitro-ui/navigation/navs/_navs.scss +70 -0
- data/sass-mixins/nitro-ui/navigation/navs/_tabbable-tabs.scss +12 -0
- data/sass-mixins/nitro-ui/navigation/navs/_variables.scss +23 -0
- data/sass-mixins/nitro-ui/tables/_all.scss +14 -0
- data/sass-mixins/nitro-ui/tables/_as-cards.scss +49 -0
- data/sass-mixins/nitro-ui/tables/_content.scss +13 -0
- data/sass-mixins/nitro-ui/tables/_headers.scss +17 -0
- data/sass-mixins/nitro-ui/tables/_hover.scss +66 -0
- data/sass-mixins/nitro-ui/tables/_mixins.scss +0 -0
- data/sass-mixins/nitro-ui/tables/_mobile.scss +138 -0
- data/sass-mixins/nitro-ui/tables/_reset.scss +17 -0
- data/sass-mixins/nitro-ui/tables/_single-line.scss +35 -0
- data/sass-mixins/nitro-ui/tables/_structure.scss +39 -0
- data/sass-mixins/nitro-ui/tables/_table-card.scss +88 -0
- data/sass-mixins/nitro-ui/tables/_table-dark.scss +92 -0
- data/sass-mixins/nitro-ui/tables/_variables.scss +23 -0
- data/sass-mixins/vendor/_bootstrap-overrides.scss +41 -0
- data/sass-mixins/vendor/_dropzone.scss +388 -0
- data/sass-mixins/vendor/_nitro-bootstrap.scss +95 -0
- data/sass-mixins/vendor/_nitro-dropzone.scss +56 -0
- data/sass-mixins/vendor/_react-datetime.scss +105 -0
- data/sass-mixins/vendor/_selectize.scss +407 -0
- data/sass-mixins/vendor/_sweet-alert-extended.scss +3 -0
- data/sass-mixins/vendor/react-select.css +375 -0
- data/sass-mixins/vendor/svg-with-js.css +5 -0
- data/sass-mixins/vendor/type-ahead.scss +43 -0
- metadata +170 -2
@@ -0,0 +1,29 @@
|
|
1
|
+
// Dropdown menus
|
2
|
+
|
3
|
+
// Menu position and menu carets
|
4
|
+
.navbar-nav > li > .dropdown-menu {
|
5
|
+
margin-top: 0;
|
6
|
+
@include border-top-radius(0);
|
7
|
+
}
|
8
|
+
// Menu position and menu caret support for dropups via extra dropup class
|
9
|
+
.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {
|
10
|
+
margin-bottom: 0;
|
11
|
+
@include border-top-radius($navbar-border-radius);
|
12
|
+
@include border-bottom-radius(0);
|
13
|
+
}
|
14
|
+
|
15
|
+
|
16
|
+
// Buttons in navbars
|
17
|
+
//
|
18
|
+
// Vertically center a button within a navbar (when *not* in a form).
|
19
|
+
|
20
|
+
.navbar-btn {
|
21
|
+
@include navbar-vertical-align($input-height-base);
|
22
|
+
|
23
|
+
&.btn-sm {
|
24
|
+
@include navbar-vertical-align($input-height-small);
|
25
|
+
}
|
26
|
+
&.btn-xs {
|
27
|
+
@include navbar-vertical-align(22);
|
28
|
+
}
|
29
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
// Component alignment
|
2
|
+
//
|
3
|
+
// Repurpose the pull utilities as their own navbar utilities to avoid specificity
|
4
|
+
// issues with parents and chaining. Only do this when the navbar is uncollapsed
|
5
|
+
// though so that navbar contents properly stack and align in mobile.
|
6
|
+
//
|
7
|
+
// Declared after the navbar components to ensure more specificity on the margins.
|
8
|
+
|
9
|
+
@media (min-width: $grid-float-breakpoint) {
|
10
|
+
.navbar-left {
|
11
|
+
float: left !important;
|
12
|
+
}
|
13
|
+
.navbar-right {
|
14
|
+
float: right !important;
|
15
|
+
margin-right: -$navbar-padding-horizontal;
|
16
|
+
|
17
|
+
~ .navbar-right {
|
18
|
+
margin-right: 0;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
// Navbar form
|
2
|
+
//
|
3
|
+
// Extension of the `.form-inline` with some extra flavor for optimum display in
|
4
|
+
// our navbars.
|
5
|
+
|
6
|
+
.navbar-form {
|
7
|
+
margin-left: -$navbar-padding-horizontal;
|
8
|
+
margin-right: -$navbar-padding-horizontal;
|
9
|
+
padding: 10px $navbar-padding-horizontal;
|
10
|
+
border-top: 1px solid transparent;
|
11
|
+
border-bottom: 1px solid transparent;
|
12
|
+
$shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1);
|
13
|
+
@include box-shadow($shadow);
|
14
|
+
|
15
|
+
// Mixin behavior for optimum display
|
16
|
+
@include form-inline;
|
17
|
+
|
18
|
+
.form-group {
|
19
|
+
@media (max-width: $grid-float-breakpoint-max) {
|
20
|
+
margin-bottom: 5px;
|
21
|
+
|
22
|
+
&:last-child {
|
23
|
+
margin-bottom: 0;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
// Vertically center in expanded, horizontal navbar
|
29
|
+
@include navbar-vertical-align($input-height-base);
|
30
|
+
|
31
|
+
// Undo 100% width for pull classes
|
32
|
+
@media (min-width: $grid-float-breakpoint) {
|
33
|
+
width: auto;
|
34
|
+
border: 0;
|
35
|
+
margin-left: 0;
|
36
|
+
margin-right: 0;
|
37
|
+
padding-top: 0;
|
38
|
+
padding-bottom: 0;
|
39
|
+
@include box-shadow(none);
|
40
|
+
}
|
41
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
// Navbar heading
|
2
|
+
//
|
3
|
+
// Groups `.navbar-brand` and `.navbar-toggle` into a single component for easy
|
4
|
+
// styling of responsive aspects.
|
5
|
+
|
6
|
+
.navbar-header {
|
7
|
+
@include clearfix;
|
8
|
+
|
9
|
+
@media (min-width: $grid-float-breakpoint) {
|
10
|
+
float: left;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
|
15
|
+
// Both navbar header and collapse
|
16
|
+
//
|
17
|
+
// When a container is present, change the behavior of the header and collapse.
|
18
|
+
|
19
|
+
.container,
|
20
|
+
.container-fluid {
|
21
|
+
> .navbar-header,
|
22
|
+
> .navbar-collapse {
|
23
|
+
margin-right: -$navbar-padding-horizontal;
|
24
|
+
margin-left: -$navbar-padding-horizontal;
|
25
|
+
|
26
|
+
@media (min-width: $grid-float-breakpoint) {
|
27
|
+
margin-right: 0;
|
28
|
+
margin-left: 0;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
//=== Inverted navbar
|
2
|
+
// Reset inverted navbar basics
|
3
|
+
$navbar-inverse-bg: $ink;
|
4
|
+
$navbar-inverse-border: darken($navbar-inverse-bg, 10%) !default;
|
5
|
+
|
6
|
+
// Inverted navbar links
|
7
|
+
$navbar-inverse-link-color: lighten($gray-light, 15%) !default;
|
8
|
+
$navbar-inverse-link-hover-color: #fff !default;
|
9
|
+
$navbar-inverse-link-hover-bg: transparent !default;
|
10
|
+
$navbar-inverse-link-active-color: $navbar-inverse-link-hover-color !default;
|
11
|
+
$navbar-inverse-link-active-bg: darken($navbar-inverse-bg, 10%) !default;
|
12
|
+
$navbar-inverse-link-disabled-color: #444 !default;
|
13
|
+
$navbar-inverse-link-disabled-bg: transparent !default;
|
14
|
+
|
15
|
+
// Inverted navbar brand label
|
16
|
+
$navbar-inverse-brand-color: $navbar-inverse-link-color !default;
|
17
|
+
$navbar-inverse-brand-hover-color: #fff !default;
|
18
|
+
$navbar-inverse-brand-hover-bg: transparent !default;
|
19
|
+
|
20
|
+
// Inverted navbar toggle
|
21
|
+
$navbar-inverse-toggle-hover-bg: #333 !default;
|
22
|
+
$navbar-inverse-toggle-icon-bar-bg: #fff !default;
|
23
|
+
$navbar-inverse-toggle-border-color: #333 !default;
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
// Inverse navbar
|
29
|
+
|
30
|
+
.navbar-inverse {
|
31
|
+
@include navbar-color($ink, tint($ink, 10%), $power-blue);
|
32
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
//=== Inverted navbar
|
2
|
+
// Reset inverted navbar basics
|
3
|
+
$navbar-light-color: $power-blue;
|
4
|
+
$navbar-light-bg: #222 !default;
|
5
|
+
$navbar-light-border: darken($navbar-light-bg, 10%) !default;
|
6
|
+
|
7
|
+
// Inverted navbar links
|
8
|
+
$navbar-light-link-color: lighten($gray-light, 15%) !default;
|
9
|
+
$navbar-light-link-hover-color: #fff !default;
|
10
|
+
$navbar-light-link-hover-bg: transparent !default;
|
11
|
+
$navbar-light-link-active-color: $navbar-light-link-hover-color !default;
|
12
|
+
$navbar-light-link-active-bg: darken($navbar-light-bg, 10%) !default;
|
13
|
+
$navbar-light-link-disabled-color: #444 !default;
|
14
|
+
$navbar-light-link-disabled-bg: transparent !default;
|
15
|
+
|
16
|
+
// Inverted navbar brand label
|
17
|
+
$navbar-light-brand-color: $navbar-light-link-color !default;
|
18
|
+
$navbar-light-brand-hover-color: #fff !default;
|
19
|
+
$navbar-light-brand-hover-bg: transparent !default;
|
20
|
+
|
21
|
+
// Inverted navbar toggle
|
22
|
+
$navbar-light-toggle-hover-bg: #333 !default;
|
23
|
+
$navbar-light-toggle-icon-bar-bg: #fff !default;
|
24
|
+
$navbar-light-toggle-border-color: #333 !default;
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
// Inverse navbar
|
30
|
+
|
31
|
+
// $blue-navbar-gradient: @include gradient-vertical($start-color: $btn-color, $end-color: darken($btn-color, 12%));
|
32
|
+
// background: linear-gradient(to bottom, #333 0%,#EEE 100%);
|
33
|
+
.navbar-blue {
|
34
|
+
@include navbar-color($power-blue, $white-opacity-1, $ink);
|
35
|
+
background: linear-gradient(to bottom, $power-blue 20%, mix($power-royal, $power-blue, 50%) 100%);
|
36
|
+
}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
// Navbar nav links
|
2
|
+
//
|
3
|
+
// Builds on top of the `.nav` components with its own modifier class to make
|
4
|
+
// the nav the full height of the horizontal nav (above 768px).
|
5
|
+
|
6
|
+
.navbar-nav {
|
7
|
+
margin: ($navbar-padding-vertical / 2) (-$navbar-padding-horizontal);
|
8
|
+
|
9
|
+
> li > a {
|
10
|
+
padding-top: 10px;
|
11
|
+
padding-bottom: 10px;
|
12
|
+
line-height: $line-height-computed;
|
13
|
+
}
|
14
|
+
|
15
|
+
@media (max-width: $grid-float-breakpoint-max) {
|
16
|
+
// Dropdowns get custom display when collapsed
|
17
|
+
.open .dropdown-menu {
|
18
|
+
position: static;
|
19
|
+
float: none;
|
20
|
+
width: auto;
|
21
|
+
margin-top: 0;
|
22
|
+
background-color: transparent;
|
23
|
+
border: 0;
|
24
|
+
box-shadow: none;
|
25
|
+
> li > a,
|
26
|
+
.dropdown-header {
|
27
|
+
padding: 5px 15px 5px 25px;
|
28
|
+
}
|
29
|
+
> li > a {
|
30
|
+
line-height: $line-height-computed;
|
31
|
+
&:hover,
|
32
|
+
&:focus {
|
33
|
+
background-image: none;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
// Uncollapse the nav
|
40
|
+
@media (min-width: $grid-float-breakpoint) {
|
41
|
+
float: left;
|
42
|
+
margin: 0;
|
43
|
+
|
44
|
+
> li {
|
45
|
+
float: left;
|
46
|
+
> a {
|
47
|
+
padding-top: $navbar-padding-vertical;
|
48
|
+
padding-bottom: $navbar-padding-vertical;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
@@ -0,0 +1,161 @@
|
|
1
|
+
// Navbar vertical align
|
2
|
+
//
|
3
|
+
// Vertically center elements in the navbar.
|
4
|
+
// Example: an element has a height of 30px, so write out `.navbar-vertical-align(30px);` to calculate the appropriate top margin.
|
5
|
+
|
6
|
+
@mixin navbar-vertical-align($element-height) {
|
7
|
+
margin-top: (($navbar-height - $element-height) / 2);
|
8
|
+
margin-bottom: (($navbar-height - $element-height) / 2);
|
9
|
+
}
|
10
|
+
|
11
|
+
|
12
|
+
@mixin navbar-color($navbar-color, $navbar-border, $navbar-accent) {
|
13
|
+
|
14
|
+
$navbar-text-color: null;
|
15
|
+
$navbar-link-color: null;
|
16
|
+
|
17
|
+
@if lightness($navbar-color) > 75% {
|
18
|
+
$navbar-text-color: shade($navbar-color, 80%);
|
19
|
+
$navbar-link-color: rgba($navbar-text-color, $opacity-6);
|
20
|
+
} @else {
|
21
|
+
$navbar-text-color: tint($navbar-color, 95%);
|
22
|
+
$navbar-link-color: rgba($navbar-text-color, $opacity-8);
|
23
|
+
}
|
24
|
+
|
25
|
+
background-color: $navbar-color;
|
26
|
+
border-color: $navbar-border;
|
27
|
+
|
28
|
+
.navbar-brand {
|
29
|
+
color: $navbar-text-color;
|
30
|
+
&:hover,
|
31
|
+
&:focus {
|
32
|
+
color: $navbar-accent
|
33
|
+
// background-color: $navbar-default-brand-hover-bg;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
.navbar-text {
|
38
|
+
color: rgba($navbar-text-color, $opacity-7);
|
39
|
+
}
|
40
|
+
|
41
|
+
.navbar-nav {
|
42
|
+
> li > a {
|
43
|
+
color: $navbar-link-color;
|
44
|
+
background-color: transparent;
|
45
|
+
border-bottom: 4px solid transparent;
|
46
|
+
font-weight: $bold;
|
47
|
+
@include smooth-font;
|
48
|
+
|
49
|
+
&:hover,
|
50
|
+
&:focus {
|
51
|
+
color: $navbar-text-color;
|
52
|
+
background-color: transparent;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
> .active > a {
|
56
|
+
&,
|
57
|
+
&:hover,
|
58
|
+
&:focus {
|
59
|
+
color: $navbar-text-color;
|
60
|
+
border-color: $navbar-accent;
|
61
|
+
background-color: transparent;
|
62
|
+
}
|
63
|
+
}
|
64
|
+
> .disabled > a {
|
65
|
+
&,
|
66
|
+
&:hover,
|
67
|
+
&:focus {
|
68
|
+
color: rgba($navbar-link-color, $opacity-1);
|
69
|
+
border-color: $navbar-accent;
|
70
|
+
background-color: transparent;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
.navbar-toggle {
|
76
|
+
// border-color: $navbar-default-toggle-border-color;
|
77
|
+
&:hover,
|
78
|
+
&:focus {
|
79
|
+
// background-color: $navbar-default-toggle-hover-bg;
|
80
|
+
}
|
81
|
+
.icon-bar {
|
82
|
+
// background-color: $navbar-default-toggle-icon-bar-bg;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
.navbar-collapse,
|
87
|
+
.navbar-form {
|
88
|
+
// border-color: $navbar-default-border;
|
89
|
+
}
|
90
|
+
|
91
|
+
// Dropdown menu items
|
92
|
+
.navbar-nav {
|
93
|
+
// Remove background color from open dropdown
|
94
|
+
> .open > a {
|
95
|
+
&,
|
96
|
+
&:hover,
|
97
|
+
&:focus {
|
98
|
+
// background-color: $navbar-default-link-active-bg;
|
99
|
+
// color: $navbar-default-link-active-color;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
@media (max-width: $grid-float-breakpoint-max) {
|
104
|
+
// Dropdowns get custom display when collapsed
|
105
|
+
.open .dropdown-menu {
|
106
|
+
> li > a {
|
107
|
+
// color: $navbar-default-link-color;
|
108
|
+
&:hover,
|
109
|
+
&:focus {
|
110
|
+
// color: $navbar-default-link-hover-color;
|
111
|
+
// background-color: $navbar-default-link-hover-bg;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
> .active > a {
|
115
|
+
&,
|
116
|
+
&:hover,
|
117
|
+
&:focus {
|
118
|
+
// color: $navbar-default-link-active-color;
|
119
|
+
// background-color: $navbar-default-link-active-bg;
|
120
|
+
}
|
121
|
+
}
|
122
|
+
> .disabled > a {
|
123
|
+
&,
|
124
|
+
&:hover,
|
125
|
+
&:focus {
|
126
|
+
// color: $navbar-default-link-disabled-color;
|
127
|
+
// background-color: $navbar-default-link-disabled-bg;
|
128
|
+
}
|
129
|
+
}
|
130
|
+
}
|
131
|
+
}
|
132
|
+
}
|
133
|
+
|
134
|
+
|
135
|
+
// Links in navbars
|
136
|
+
//
|
137
|
+
// Add a class to ensure links outside the navbar nav are colored correctly.
|
138
|
+
|
139
|
+
.navbar-link {
|
140
|
+
// color: $navbar-default-link-color;
|
141
|
+
&:hover {
|
142
|
+
// color: $navbar-default-link-hover-color;
|
143
|
+
}
|
144
|
+
}
|
145
|
+
|
146
|
+
.btn-link {
|
147
|
+
// color: $navbar-default-link-color;
|
148
|
+
&:hover,
|
149
|
+
&:focus {
|
150
|
+
// color: $navbar-default-link-hover-color;
|
151
|
+
}
|
152
|
+
&[disabled],
|
153
|
+
fieldset[disabled] & {
|
154
|
+
&:hover,
|
155
|
+
&:focus {
|
156
|
+
// color: $navbar-default-link-disabled-color;
|
157
|
+
}
|
158
|
+
}
|
159
|
+
}
|
160
|
+
|
161
|
+
}
|
@@ -0,0 +1,29 @@
|
|
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
|
+
padding: 0 $space-base;
|
17
|
+
|
18
|
+
// Prevent floats from breaking the navbar
|
19
|
+
@include clearfix;
|
20
|
+
|
21
|
+
@media (min-width: $grid-float-breakpoint) {
|
22
|
+
border-radius: $navbar-border-radius;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
// ADD FLUSH BOTTOM OPTION
|