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,51 @@
|
|
1
|
+
// ---------
|
2
|
+
// Bootstrap Variables
|
3
|
+
// ---------
|
4
|
+
|
5
|
+
$btn-font-size-base: $component-font-size-base;
|
6
|
+
$btn-font-size-xs: ceil($component-font-size-base * 0.80); // ~12px
|
7
|
+
$btn-font-size-sm: floor($component-font-size-base * 0.867); // ~13px
|
8
|
+
$btn-font-size-lg: ceil($component-font-size-base * 1.133); // ~17px
|
9
|
+
$btn-font-size-hg: floor($component-font-size-base * 1.467); // ~22px
|
10
|
+
|
11
|
+
$btn-line-height-base: 1.4; // ~21px
|
12
|
+
$btn-line-height-hg: 1.227; // ~27px
|
13
|
+
$btn-line-height-lg: 1.471; // ~25px
|
14
|
+
$btn-line-height-sm: 1.385; // ~16px
|
15
|
+
$btn-line-height-xs: 1.083; // ~13px
|
16
|
+
|
17
|
+
$btn-social-font-size-base: floor($component-font-size-base * 0.867); // ~13px
|
18
|
+
$btn-social-line-height-base: 1.077; // ~14px
|
19
|
+
|
20
|
+
$btn-font-weight: normal;
|
21
|
+
|
22
|
+
$btn-default-color: $inverse;
|
23
|
+
$btn-default-bg: $gray-light;
|
24
|
+
$btn-hover-bg: mix($gray-light, white, 80%);
|
25
|
+
$btn-active-bg: mix($gray-light, black, 85%);
|
26
|
+
|
27
|
+
$btn-primary-hover-bg: mix($brand-secondary, white, 80%);
|
28
|
+
$btn-primary-active-bg: mix($brand-secondary, black, 85%);
|
29
|
+
|
30
|
+
$btn-info-hover-bg: mix($brand-info, white, 80%);
|
31
|
+
$btn-info-active-bg: mix($brand-info, black, 85%);
|
32
|
+
|
33
|
+
$btn-success-hover-bg: mix($brand-success, white, 80%);
|
34
|
+
$btn-success-active-bg: mix($brand-success, black, 85%);
|
35
|
+
|
36
|
+
$btn-danger-hover-bg: mix($brand-danger, white, 80%);
|
37
|
+
$btn-danger-active-bg: mix($brand-danger, black, 85%);
|
38
|
+
|
39
|
+
$btn-warning-hover-bg: overlay($brand-warning, darken(white, 37.5%));
|
40
|
+
$btn-warning-active-bg: mix($brand-warning, black, 85%);
|
41
|
+
|
42
|
+
$btn-inverse-hover-bg: overlay($brand-primary, darken(white, 37.5%));
|
43
|
+
$btn-inverse-active-bg: mix($brand-primary, black, 85%);
|
44
|
+
|
45
|
+
$btn-link-disabled-color: $gray-light;
|
46
|
+
|
47
|
+
|
48
|
+
// Allows for customizing button radius independently from global border radius
|
49
|
+
$btn-border-radius-base: $border-radius-base !default;
|
50
|
+
$btn-border-radius-large: $border-radius-large !default;
|
51
|
+
$btn-border-radius-small: $border-radius-small !default;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
|
4
|
+
.circlebutton{
|
5
|
+
text-align: center !important;
|
6
|
+
border: none !important;
|
7
|
+
border-radius: 100% !important;
|
8
|
+
border: none;
|
9
|
+
appearance: none;
|
10
|
+
|
11
|
+
}
|
12
|
+
|
13
|
+
|
14
|
+
$circleButtonSizes:
|
15
|
+
"md" 48px 16px,
|
16
|
+
"lg" 56px 20px;
|
17
|
+
|
18
|
+
@mixin config-sizes($prefix){
|
19
|
+
@each $size in $circleButtonSizes {
|
20
|
+
.#{$prefix}-#{nth($size,1)} {
|
21
|
+
text-align: center;
|
22
|
+
border-radius: 100%;
|
23
|
+
height: #{nth($size,2)} !important;
|
24
|
+
width: #{nth($size,2)}!important;
|
25
|
+
font-size: #{nth($size,3)} !important;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
@include config-sizes("circlebutton");
|
@@ -0,0 +1,45 @@
|
|
1
|
+
//== Close
|
2
|
+
//
|
3
|
+
//##
|
4
|
+
|
5
|
+
$close-font-weight: bold !default;
|
6
|
+
$close-color: #000 !default;
|
7
|
+
$close-text-shadow: 0 1px 0 #fff !default;
|
8
|
+
|
9
|
+
|
10
|
+
//
|
11
|
+
// Close icons
|
12
|
+
// --------------------------------------------------
|
13
|
+
|
14
|
+
|
15
|
+
.close {
|
16
|
+
float: right;
|
17
|
+
font-size: ($font-size-base * 1.5);
|
18
|
+
font-weight: $close-font-weight;
|
19
|
+
line-height: 1;
|
20
|
+
color: $close-color;
|
21
|
+
text-shadow: $close-text-shadow;
|
22
|
+
@include opacity(.2);
|
23
|
+
|
24
|
+
&:hover,
|
25
|
+
&:focus {
|
26
|
+
color: $close-color;
|
27
|
+
text-decoration: none;
|
28
|
+
cursor: pointer;
|
29
|
+
@include opacity(.5);
|
30
|
+
}
|
31
|
+
|
32
|
+
// [converter] extracted button& to button.close
|
33
|
+
}
|
34
|
+
|
35
|
+
// Additional properties for button version
|
36
|
+
// iOS requires the button element instead of an anchor tag.
|
37
|
+
// If you want the anchor version, it requires `href="#"`.
|
38
|
+
// See https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
|
39
|
+
button.close {
|
40
|
+
padding: 0;
|
41
|
+
cursor: pointer;
|
42
|
+
background: transparent;
|
43
|
+
border: 0;
|
44
|
+
-webkit-appearance: none;
|
45
|
+
}
|
@@ -0,0 +1,270 @@
|
|
1
|
+
//== Dropdowns
|
2
|
+
//
|
3
|
+
//## Dropdown menu container and contents.
|
4
|
+
|
5
|
+
//** Background for the dropdown menu.
|
6
|
+
$dropdown-bg: #fff !default;
|
7
|
+
//** Dropdown menu `border-color`.
|
8
|
+
$dropdown-border: rgba(0,0,0,.15) !default;
|
9
|
+
//** Dropdown menu `border-color` **for IE8**.
|
10
|
+
$dropdown-fallback-border: #ccc !default;
|
11
|
+
//** Divider color for between dropdown items.
|
12
|
+
$dropdown-divider-bg: #e5e5e5 !default;
|
13
|
+
|
14
|
+
//** Dropdown link text color.
|
15
|
+
$dropdown-link-color: $gray-7 !default;
|
16
|
+
//** Hover color for dropdown links.
|
17
|
+
$dropdown-link-hover-color: darken($gray-7, 5%) !default;
|
18
|
+
//** Hover background for dropdown links.
|
19
|
+
$dropdown-link-hover-bg: #f5f5f5 !default;
|
20
|
+
|
21
|
+
//** Active dropdown menu item text color.
|
22
|
+
$dropdown-link-active-color: $component-active-color !default;
|
23
|
+
//** Active dropdown menu item background color.
|
24
|
+
$dropdown-link-active-bg: $component-active-bg !default;
|
25
|
+
|
26
|
+
//** Disabled dropdown menu item background color.
|
27
|
+
$dropdown-link-disabled-color: $gray-light !default;
|
28
|
+
|
29
|
+
//** Text color for headers within dropdown menus.
|
30
|
+
$dropdown-header-color: $gray-light !default;
|
31
|
+
|
32
|
+
//** Deprecated `$dropdown-caret-color` as of v3.1.0
|
33
|
+
$dropdown-caret-color: #000 !default;
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
//
|
41
|
+
// Dropdown menus
|
42
|
+
// --------------------------------------------------
|
43
|
+
|
44
|
+
|
45
|
+
// Dropdown arrow/caret
|
46
|
+
.caret {
|
47
|
+
display: inline-block;
|
48
|
+
width: 0;
|
49
|
+
height: 0;
|
50
|
+
margin-left: 2px;
|
51
|
+
vertical-align: middle;
|
52
|
+
border-top: $caret-width-base dashed;
|
53
|
+
border-top: $caret-width-base solid \9; // IE8
|
54
|
+
border-right: $caret-width-base solid transparent;
|
55
|
+
border-left: $caret-width-base solid transparent;
|
56
|
+
}
|
57
|
+
|
58
|
+
// The dropdown wrapper (div)
|
59
|
+
.dropup,
|
60
|
+
.dropdown {
|
61
|
+
position: relative;
|
62
|
+
}
|
63
|
+
|
64
|
+
// Prevent the focus on the dropdown toggle when closing dropdowns
|
65
|
+
.dropdown-toggle:focus {
|
66
|
+
outline: 0;
|
67
|
+
}
|
68
|
+
|
69
|
+
// The dropdown menu (ul)
|
70
|
+
.dropdown-menu {
|
71
|
+
position: absolute;
|
72
|
+
top: 100%;
|
73
|
+
left: 0;
|
74
|
+
z-index: z-index-for("header") - 1;
|
75
|
+
display: none; // none by default, but block on "open" of the menu
|
76
|
+
float: left;
|
77
|
+
min-width: 160px;
|
78
|
+
padding: 5px 0;
|
79
|
+
margin: 2px 0 0; // override default ul
|
80
|
+
list-style: none;
|
81
|
+
font-size: $font-size-base;
|
82
|
+
text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)
|
83
|
+
background-color: $dropdown-bg;
|
84
|
+
border: 1px solid $dropdown-fallback-border; // IE8 fallback
|
85
|
+
border: 1px solid $dropdown-border;
|
86
|
+
border-radius: $border-radius-base;
|
87
|
+
@include box-shadow(0 6px 12px rgba(0,0,0,.175));
|
88
|
+
background-clip: padding-box;
|
89
|
+
|
90
|
+
// Aligns the dropdown menu to right
|
91
|
+
//
|
92
|
+
// Deprecated as of 3.1.0 in favor of `.dropdown-menu-[dir]`
|
93
|
+
&.pull-right {
|
94
|
+
right: 0;
|
95
|
+
left: auto;
|
96
|
+
}
|
97
|
+
|
98
|
+
// Dividers (basically an hr) within the dropdown
|
99
|
+
.divider {
|
100
|
+
@include nav-divider($dropdown-divider-bg);
|
101
|
+
}
|
102
|
+
|
103
|
+
&.grouped {
|
104
|
+
> li {
|
105
|
+
> a {
|
106
|
+
font-size: 16px;
|
107
|
+
line-height: 1.25em;
|
108
|
+
}
|
109
|
+
> h4 {
|
110
|
+
font-size: 0.75em;
|
111
|
+
text-transform: uppercase;
|
112
|
+
padding: 3px 10px;
|
113
|
+
margin: 0;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
}
|
117
|
+
|
118
|
+
// Links within the dropdown menu
|
119
|
+
> li > a {
|
120
|
+
display: block;
|
121
|
+
padding: 3px 20px;
|
122
|
+
clear: both;
|
123
|
+
font-weight: normal;
|
124
|
+
line-height: $line-height-base;
|
125
|
+
color: $dropdown-link-color;
|
126
|
+
white-space: nowrap; // prevent links from randomly breaking onto new lines
|
127
|
+
}
|
128
|
+
}
|
129
|
+
|
130
|
+
// Hover/Focus state
|
131
|
+
.dropdown-menu > li > a {
|
132
|
+
&:hover,
|
133
|
+
&:focus {
|
134
|
+
text-decoration: none;
|
135
|
+
color: $dropdown-link-hover-color;
|
136
|
+
background-color: $dropdown-link-hover-bg;
|
137
|
+
}
|
138
|
+
}
|
139
|
+
|
140
|
+
// Active state
|
141
|
+
.dropdown-menu > .active > a {
|
142
|
+
&,
|
143
|
+
&:hover,
|
144
|
+
&:focus {
|
145
|
+
color: $dropdown-link-active-color;
|
146
|
+
text-decoration: none;
|
147
|
+
outline: 0;
|
148
|
+
background-color: $dropdown-link-active-bg;
|
149
|
+
}
|
150
|
+
}
|
151
|
+
|
152
|
+
// Disabled state
|
153
|
+
//
|
154
|
+
// Gray out text and ensure the hover/focus state remains gray
|
155
|
+
|
156
|
+
.dropdown-menu > .disabled > a {
|
157
|
+
&,
|
158
|
+
&:hover,
|
159
|
+
&:focus {
|
160
|
+
color: $dropdown-link-disabled-color;
|
161
|
+
}
|
162
|
+
|
163
|
+
// Nuke hover/focus effects
|
164
|
+
&:hover,
|
165
|
+
&:focus {
|
166
|
+
text-decoration: none;
|
167
|
+
background-color: transparent;
|
168
|
+
background-image: none; // Remove CSS gradient
|
169
|
+
@include reset-filter;
|
170
|
+
cursor: $cursor-disabled;
|
171
|
+
}
|
172
|
+
}
|
173
|
+
|
174
|
+
// Open state for the dropdown
|
175
|
+
.open {
|
176
|
+
// Show the menu
|
177
|
+
> .dropdown-menu {
|
178
|
+
display: block;
|
179
|
+
}
|
180
|
+
|
181
|
+
// Remove the outline when :focus is triggered
|
182
|
+
> a {
|
183
|
+
outline: 0;
|
184
|
+
}
|
185
|
+
}
|
186
|
+
|
187
|
+
// Menu positioning
|
188
|
+
//
|
189
|
+
// Add extra class to `.dropdown-menu` to flip the alignment of the dropdown
|
190
|
+
// menu with the parent.
|
191
|
+
.dropdown-menu-right {
|
192
|
+
left: auto; // Reset the default from `.dropdown-menu`
|
193
|
+
right: 0;
|
194
|
+
}
|
195
|
+
// With v3, we enabled auto-flipping if you have a dropdown within a right
|
196
|
+
// aligned nav component. To enable the undoing of that, we provide an override
|
197
|
+
// to restore the default dropdown menu alignment.
|
198
|
+
//
|
199
|
+
// This is only for left-aligning a dropdown menu within a `.navbar-right` or
|
200
|
+
// `.pull-right` nav component.
|
201
|
+
.dropdown-menu-left {
|
202
|
+
left: 0;
|
203
|
+
right: auto;
|
204
|
+
}
|
205
|
+
|
206
|
+
// Dropdown section headers
|
207
|
+
.dropdown-header {
|
208
|
+
display: block;
|
209
|
+
padding: 3px 20px;
|
210
|
+
font-size: $font-size-small;
|
211
|
+
line-height: $line-height-base;
|
212
|
+
color: $dropdown-header-color;
|
213
|
+
white-space: nowrap; // as with > li > a
|
214
|
+
}
|
215
|
+
|
216
|
+
// Backdrop to catch body clicks on mobile, etc.
|
217
|
+
.dropdown-backdrop {
|
218
|
+
position: fixed;
|
219
|
+
left: 0;
|
220
|
+
right: 0;
|
221
|
+
bottom: 0;
|
222
|
+
top: 0;
|
223
|
+
z-index: (1000 - 10);
|
224
|
+
}
|
225
|
+
|
226
|
+
// Right aligned dropdowns
|
227
|
+
.pull-right > .dropdown-menu {
|
228
|
+
right: 0;
|
229
|
+
left: auto;
|
230
|
+
}
|
231
|
+
|
232
|
+
// Allow for dropdowns to go bottom up (aka, dropup-menu)
|
233
|
+
//
|
234
|
+
// Just add .dropup after the standard .dropdown class and you're set, bro.
|
235
|
+
// TODO: abstract this so that the navbar fixed styles are not placed here?
|
236
|
+
|
237
|
+
.dropup,
|
238
|
+
.navbar-fixed-bottom .dropdown {
|
239
|
+
// Reverse the caret
|
240
|
+
.caret {
|
241
|
+
border-top: 0;
|
242
|
+
border-bottom: $caret-width-base dashed;
|
243
|
+
border-bottom: $caret-width-base solid \9; // IE8
|
244
|
+
content: "";
|
245
|
+
}
|
246
|
+
// Different positioning for bottom up menu
|
247
|
+
.dropdown-menu {
|
248
|
+
top: auto;
|
249
|
+
bottom: 100%;
|
250
|
+
margin-bottom: 2px;
|
251
|
+
}
|
252
|
+
}
|
253
|
+
|
254
|
+
|
255
|
+
// Component alignment
|
256
|
+
//
|
257
|
+
// Reiterate per navbar.less and the modified component alignment there.
|
258
|
+
|
259
|
+
@media (min-width: $grid-float-breakpoint) {
|
260
|
+
.navbar-right {
|
261
|
+
.dropdown-menu {
|
262
|
+
right: 0; left: auto;
|
263
|
+
}
|
264
|
+
// Necessary for overrides of the default right aligned menu.
|
265
|
+
// Will remove come v4 in all likelihood.
|
266
|
+
.dropdown-menu-left {
|
267
|
+
left: 0; right: auto;
|
268
|
+
}
|
269
|
+
}
|
270
|
+
}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
@mixin ghost-button-hover($color, $active: false) {
|
2
|
+
text-decoration: none;
|
3
|
+
outline: 0;
|
4
|
+
@if $active {
|
5
|
+
background: tint($color, 10%);
|
6
|
+
@include text-color(tint($color, 10%), $more_contrast: true);
|
7
|
+
border-color: tint($color, 10%);
|
8
|
+
}
|
9
|
+
@else {
|
10
|
+
background: $color;
|
11
|
+
@include text-color($color, false, $more_contrast: true);
|
12
|
+
border-color: $color;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
|
16
|
+
@mixin ghost-button-disabled($color) {
|
17
|
+
cursor: not-allowed;
|
18
|
+
opacity: $opacity-7;
|
19
|
+
background: none;
|
20
|
+
color: $color;
|
21
|
+
text-decoration: none;
|
22
|
+
}
|
23
|
+
|
24
|
+
@mixin ghost-button($color: white) {
|
25
|
+
@include button-base;
|
26
|
+
@include btn-styles;
|
27
|
+
background: none;
|
28
|
+
border-color: $color;
|
29
|
+
color: $black;
|
30
|
+
&:focus, &.focus {
|
31
|
+
@include ghost-button-hover($color);
|
32
|
+
}
|
33
|
+
&:hover {
|
34
|
+
@include ghost-button-hover($color);
|
35
|
+
}
|
36
|
+
&:active, &.active, .open > &.dropdown-toggle {
|
37
|
+
@include ghost-button-hover($color);
|
38
|
+
&:hover, &:focus, &.focus {
|
39
|
+
@include btn-hover($color);
|
40
|
+
}
|
41
|
+
}
|
42
|
+
&:active, &.active, .open > &.dropdown-toggle {
|
43
|
+
background-image: none;
|
44
|
+
}
|
45
|
+
&.disabled, &[disabled], fieldset[disabled] & {
|
46
|
+
&, &:hover, &:focus, &.focus, &:active, &.active {
|
47
|
+
@include ghost-button-disabled($color);
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
@mixin ghost-button-colors($colors-list) {
|
53
|
+
@each $name, $color in $colors-list {
|
54
|
+
&-#{$name} {
|
55
|
+
@include ghost-button($color);
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|