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,77 @@
|
|
1
|
+
$toggle-width: 60px;
|
2
|
+
$toggle-height: 30px;
|
3
|
+
$slider: $toggle-height - 4px;
|
4
|
+
$slider-offset: 2px;
|
5
|
+
$sliding-calculation: $toggle-width - $slider;
|
6
|
+
|
7
|
+
.checkbox-toggle, .form-group .checkbox-toggle, .form-group.checkbox-toggle {
|
8
|
+
|
9
|
+
label {
|
10
|
+
padding-left: $toggle-width + $space-small;
|
11
|
+
}
|
12
|
+
|
13
|
+
input[type=checkbox] {
|
14
|
+
margin-top: 0;
|
15
|
+
margin-left: -($toggle-width + $space-small);
|
16
|
+
appearance: none;
|
17
|
+
background: $sky;
|
18
|
+
border-radius: 30px;
|
19
|
+
width: $toggle-width;
|
20
|
+
height: $toggle-height;
|
21
|
+
position: absolute;
|
22
|
+
border: 0;
|
23
|
+
padding-right: $sliding-calculation;
|
24
|
+
text-align: center;
|
25
|
+
outline: none;
|
26
|
+
~ span {
|
27
|
+
padding-top: 4px;
|
28
|
+
display: inline-block;
|
29
|
+
}
|
30
|
+
&:hover {
|
31
|
+
&:before {
|
32
|
+
overflow: hidden;
|
33
|
+
width: 100%;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
&:after {
|
37
|
+
border-radius: $border-rad-mega;
|
38
|
+
content: ' ';
|
39
|
+
background: $white;
|
40
|
+
display: inline-block;
|
41
|
+
width: $slider;
|
42
|
+
height: $slider;
|
43
|
+
position: relative;
|
44
|
+
top: $slider-offset;
|
45
|
+
left: $slider-offset;
|
46
|
+
}
|
47
|
+
&:checked {
|
48
|
+
background: $power-green;
|
49
|
+
border: 0;
|
50
|
+
padding-left: $sliding-calculation -$slider-offset*2;
|
51
|
+
padding-right: 0;
|
52
|
+
box-shadow: none;
|
53
|
+
&:after {
|
54
|
+
top: $slider-offset;
|
55
|
+
left: 0;
|
56
|
+
content: '';
|
57
|
+
transform: initial;
|
58
|
+
position: relative;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
&:hover {
|
62
|
+
transform: scale(1);
|
63
|
+
}
|
64
|
+
}
|
65
|
+
&.toggle-right {
|
66
|
+
input[type=checkbox] {
|
67
|
+
right: 0;
|
68
|
+
margin-left: 0;
|
69
|
+
}
|
70
|
+
label {
|
71
|
+
padding-right: $toggle-width + $space-small;
|
72
|
+
padding-left: 0;
|
73
|
+
}
|
74
|
+
|
75
|
+
|
76
|
+
}
|
77
|
+
}
|
@@ -0,0 +1,53 @@
|
|
1
|
+
// Form control feedback states
|
2
|
+
//
|
3
|
+
// Apply contextual and semantic states to individual form controls.
|
4
|
+
|
5
|
+
.has-feedback {
|
6
|
+
// Enable absolute positioning
|
7
|
+
position: relative;
|
8
|
+
|
9
|
+
// Ensure icons don't overlap text
|
10
|
+
.form-control {
|
11
|
+
padding-right: ($input-height-base * 1.25);
|
12
|
+
}
|
13
|
+
}
|
14
|
+
// Feedback icon (requires .glyphicon classes)
|
15
|
+
.form-control-feedback {
|
16
|
+
position: absolute;
|
17
|
+
top: 0;
|
18
|
+
right: 0;
|
19
|
+
z-index: 2; // Ensure icon is above input groups
|
20
|
+
display: block;
|
21
|
+
width: $input-height-base;
|
22
|
+
height: $input-height-base;
|
23
|
+
line-height: $input-height-base;
|
24
|
+
text-align: center;
|
25
|
+
pointer-events: none;
|
26
|
+
}
|
27
|
+
.input-lg + .form-control-feedback,
|
28
|
+
.input-group-lg + .form-control-feedback,
|
29
|
+
.form-group-lg .form-control + .form-control-feedback {
|
30
|
+
width: $input-height-large;
|
31
|
+
height: $input-height-large;
|
32
|
+
line-height: $input-height-large;
|
33
|
+
}
|
34
|
+
.input-sm + .form-control-feedback,
|
35
|
+
.input-group-sm + .form-control-feedback,
|
36
|
+
.form-group-sm .form-control + .form-control-feedback {
|
37
|
+
width: $input-height-small;
|
38
|
+
height: $input-height-small;
|
39
|
+
line-height: $input-height-small;
|
40
|
+
}
|
41
|
+
|
42
|
+
|
43
|
+
|
44
|
+
// Reposition feedback icon if input has visible label above
|
45
|
+
.has-feedback label {
|
46
|
+
|
47
|
+
& ~ .form-control-feedback {
|
48
|
+
top: ($line-height-computed + 5); // Height of the `label` and its margin
|
49
|
+
}
|
50
|
+
&.sr-only ~ .form-control-feedback {
|
51
|
+
top: 0;
|
52
|
+
}
|
53
|
+
}
|
@@ -0,0 +1,104 @@
|
|
1
|
+
|
2
|
+
// Form control sizing
|
3
|
+
//
|
4
|
+
// Relative text size, padding, and border-radii changes for form controls. For
|
5
|
+
// horizontal sizing, wrap controls in the predefined grid classes. `<select>`
|
6
|
+
// element gets special love because it's special, and that's a fact!
|
7
|
+
// [converter] $parent hack
|
8
|
+
@mixin input-size($parent, $input-height, $padding-vertical, $padding-horizontal, $font-size, $line-height, $border-radius) {
|
9
|
+
#{$parent} {
|
10
|
+
height: $input-height;
|
11
|
+
padding: $padding-vertical $padding-horizontal;
|
12
|
+
font-size: $font-size;
|
13
|
+
line-height: $line-height;
|
14
|
+
border-radius: $border-radius;
|
15
|
+
}
|
16
|
+
|
17
|
+
select#{$parent} {
|
18
|
+
height: $input-height;
|
19
|
+
line-height: $input-height;
|
20
|
+
padding-top: 0;
|
21
|
+
padding-bottom: 0;
|
22
|
+
}
|
23
|
+
|
24
|
+
textarea#{$parent},
|
25
|
+
select[multiple]#{$parent} {
|
26
|
+
height: auto;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
|
31
|
+
// ----------------------------------
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
// Form groups
|
37
|
+
//
|
38
|
+
// Designed to help with the organization and spacing of vertical forms. For
|
39
|
+
// horizontal forms, use the predefined grid classes.
|
40
|
+
|
41
|
+
.form-group {
|
42
|
+
margin-bottom: $form-group-margin-bottom;
|
43
|
+
}
|
44
|
+
|
45
|
+
|
46
|
+
// Form control sizing
|
47
|
+
//
|
48
|
+
// Build on `.form-control` with modifier classes to decrease or increase the
|
49
|
+
// height and font-size of form controls.
|
50
|
+
//
|
51
|
+
// The `.form-group-* form-control` variations are sadly duplicated to avoid the
|
52
|
+
// issue documented in https://github.com/twbs/bootstrap/issues/15074.
|
53
|
+
|
54
|
+
@include input-size('.input-sm', $input-height-small, $padding-small-vertical, $padding-small-horizontal, $font-size-small, $line-height-small, $input-border-radius-small);
|
55
|
+
.form-group-sm {
|
56
|
+
.form-control {
|
57
|
+
height: $input-height-small;
|
58
|
+
padding: $padding-small-vertical $padding-small-horizontal;
|
59
|
+
font-size: $font-size-small;
|
60
|
+
line-height: $line-height-small;
|
61
|
+
border-radius: $input-border-radius-small;
|
62
|
+
}
|
63
|
+
select.form-control {
|
64
|
+
height: $input-height-small;
|
65
|
+
line-height: $input-height-small;
|
66
|
+
}
|
67
|
+
textarea.form-control,
|
68
|
+
select[multiple].form-control {
|
69
|
+
height: auto;
|
70
|
+
}
|
71
|
+
.form-control-static {
|
72
|
+
height: $input-height-small;
|
73
|
+
min-height: ($line-height-computed + $font-size-small);
|
74
|
+
padding: ($padding-small-vertical + 1) $padding-small-horizontal;
|
75
|
+
font-size: $font-size-small;
|
76
|
+
line-height: $line-height-small;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
@include input-size('.input-lg', $input-height-large, $padding-large-vertical, $padding-large-horizontal, $font-size-large, $line-height-large, $input-border-radius-large);
|
81
|
+
.form-group-lg {
|
82
|
+
.form-control {
|
83
|
+
height: $input-height-large;
|
84
|
+
padding: $padding-large-vertical $padding-large-horizontal;
|
85
|
+
font-size: $font-size-large;
|
86
|
+
line-height: $line-height-large;
|
87
|
+
border-radius: $input-border-radius-large;
|
88
|
+
}
|
89
|
+
select.form-control {
|
90
|
+
height: $input-height-large;
|
91
|
+
line-height: $input-height-large;
|
92
|
+
}
|
93
|
+
textarea.form-control,
|
94
|
+
select[multiple].form-control {
|
95
|
+
height: auto;
|
96
|
+
}
|
97
|
+
.form-control-static {
|
98
|
+
height: $input-height-large;
|
99
|
+
min-height: ($line-height-computed + $font-size-large);
|
100
|
+
padding: ($padding-large-vertical + 1) $padding-large-horizontal;
|
101
|
+
font-size: $font-size-large;
|
102
|
+
line-height: $line-height-large;
|
103
|
+
}
|
104
|
+
}
|
@@ -0,0 +1,120 @@
|
|
1
|
+
// Normalize non-controls
|
2
|
+
//
|
3
|
+
// Restyle and baseline non-control form elements.
|
4
|
+
|
5
|
+
fieldset {
|
6
|
+
padding: 0;
|
7
|
+
margin: 0;
|
8
|
+
border: 0;
|
9
|
+
// Chrome and Firefox set a `min-width: min-content;` on fieldsets,
|
10
|
+
// so we reset that to ensure it behaves more like a standard block element.
|
11
|
+
// See https://github.com/twbs/bootstrap/issues/12359.
|
12
|
+
min-width: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
legend {
|
16
|
+
display: block;
|
17
|
+
width: 100%;
|
18
|
+
padding: 0;
|
19
|
+
margin-bottom: $line-height-computed;
|
20
|
+
font-size: ($font-size-base * 1.5);
|
21
|
+
line-height: inherit;
|
22
|
+
color: $legend-color;
|
23
|
+
border: 0;
|
24
|
+
border-bottom: 1px solid $legend-border-color;
|
25
|
+
}
|
26
|
+
|
27
|
+
// Normalize form controls
|
28
|
+
//
|
29
|
+
// While most of our form styles require extra classes, some basic normalization
|
30
|
+
// is required to ensure optimum display with or without those classes to better
|
31
|
+
// address browser inconsistencies.
|
32
|
+
|
33
|
+
// Override content-box in Normalize (* isn't specific enough)
|
34
|
+
input[type="search"],
|
35
|
+
input[type="search"].form-control {
|
36
|
+
@include box-sizing(border-box);
|
37
|
+
}
|
38
|
+
|
39
|
+
// Position radios and checkboxes better
|
40
|
+
input[type="radio"],
|
41
|
+
input[type="checkbox"] {
|
42
|
+
margin: 4px 0 0;
|
43
|
+
margin-top: 1px \9; // IE8-9
|
44
|
+
line-height: normal;
|
45
|
+
}
|
46
|
+
|
47
|
+
input[type="file"] {
|
48
|
+
display: block;
|
49
|
+
}
|
50
|
+
|
51
|
+
// Make range inputs behave like textual form controls
|
52
|
+
input[type="range"] {
|
53
|
+
display: block;
|
54
|
+
width: 100%;
|
55
|
+
}
|
56
|
+
|
57
|
+
|
58
|
+
// Focus for file, radio, and checkbox
|
59
|
+
input[type="file"]:focus,
|
60
|
+
input[type="radio"]:focus,
|
61
|
+
input[type="checkbox"]:focus {
|
62
|
+
@include tab-focus;
|
63
|
+
}
|
64
|
+
|
65
|
+
// Adjust output element
|
66
|
+
output {
|
67
|
+
display: block;
|
68
|
+
padding-top: ($padding-base-vertical + 1);
|
69
|
+
font-size: $font-size-base;
|
70
|
+
line-height: $line-height-base;
|
71
|
+
color: $gray-9;
|
72
|
+
}
|
73
|
+
|
74
|
+
// Reset height for `textarea`s
|
75
|
+
textarea.form-control {
|
76
|
+
height: auto;
|
77
|
+
}
|
78
|
+
|
79
|
+
|
80
|
+
// Search inputs in iOS
|
81
|
+
//
|
82
|
+
// This overrides the extra rounded corners on search inputs in iOS so that our
|
83
|
+
// `.form-control` class can properly style them. Note that this cannot simply
|
84
|
+
// be added to `.form-control` as it's not specific enough. For details, see
|
85
|
+
// https://github.com/twbs/bootstrap/issues/11586.
|
86
|
+
|
87
|
+
input[type="search"] {
|
88
|
+
-webkit-appearance: none;
|
89
|
+
}
|
90
|
+
|
91
|
+
|
92
|
+
// Special styles for iOS temporal inputs
|
93
|
+
//
|
94
|
+
// In Mobile Safari, setting `display: block` on temporal inputs causes the
|
95
|
+
// text within the input to become vertically misaligned. As a workaround, we
|
96
|
+
// set a pixel line-height that matches the given height of the input, but only
|
97
|
+
// for Safari. See https://bugs.webkit.org/show_bug.cgi?id=139848
|
98
|
+
//
|
99
|
+
// Note that as of 8.3, iOS doesn't support `datetime` or `week`.
|
100
|
+
|
101
|
+
@media screen and (-webkit-min-device-pixel-ratio: 0) {
|
102
|
+
input[type="date"],
|
103
|
+
input[type="time"],
|
104
|
+
input[type="datetime-local"],
|
105
|
+
input[type="month"] {
|
106
|
+
&.form-control {
|
107
|
+
line-height: $input-height-base;
|
108
|
+
}
|
109
|
+
|
110
|
+
&.input-sm,
|
111
|
+
.input-group-sm & {
|
112
|
+
line-height: $input-height-small;
|
113
|
+
}
|
114
|
+
|
115
|
+
&.input-lg,
|
116
|
+
.input-group-lg & {
|
117
|
+
line-height: $input-height-large;
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
// Help text
|
2
|
+
//
|
3
|
+
// Apply to any element you wish to create light text for placement immediately
|
4
|
+
// below a form control. Use for general help, formatting, or instructional text.
|
5
|
+
|
6
|
+
.help-block {
|
7
|
+
display: block; // account for any element using help-block
|
8
|
+
margin-top: 5px;
|
9
|
+
margin-bottom: 10px;
|
10
|
+
color: lighten($black, 25%); // lighten the text some for contrast
|
11
|
+
}
|
@@ -0,0 +1,69 @@
|
|
1
|
+
// Horizontal forms
|
2
|
+
//
|
3
|
+
// Horizontal forms are built on grid classes and allow you to create forms with
|
4
|
+
// labels on the left and inputs on the right.
|
5
|
+
|
6
|
+
.form-horizontal {
|
7
|
+
|
8
|
+
// Consistent vertical alignment of radios and checkboxes
|
9
|
+
//
|
10
|
+
// Labels also get some reset styles, but that is scoped to a media query below.
|
11
|
+
.radio,
|
12
|
+
.checkbox,
|
13
|
+
.radio-inline,
|
14
|
+
.checkbox-inline {
|
15
|
+
margin-top: 0;
|
16
|
+
margin-bottom: 0;
|
17
|
+
padding-top: ($padding-base-vertical + 1); // Default padding plus a border
|
18
|
+
}
|
19
|
+
// Account for padding we're adding to ensure the alignment and of help text
|
20
|
+
// and other content below items
|
21
|
+
.radio,
|
22
|
+
.checkbox {
|
23
|
+
min-height: ($line-height-computed + ($padding-base-vertical + 1));
|
24
|
+
}
|
25
|
+
|
26
|
+
// Make form groups behave like rows
|
27
|
+
.form-group {
|
28
|
+
@include make-row;
|
29
|
+
}
|
30
|
+
|
31
|
+
// Reset spacing and right align labels, but scope to media queries so that
|
32
|
+
// labels on narrow viewports stack the same as a default form example.
|
33
|
+
@media (min-width: $screen-sm-min) {
|
34
|
+
.control-label {
|
35
|
+
text-align: right;
|
36
|
+
margin-bottom: 0;
|
37
|
+
padding-top: ($padding-base-vertical + 1); // Default padding plus a border
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
// Validation states
|
42
|
+
//
|
43
|
+
// Reposition the icon because it's now within a grid column and columns have
|
44
|
+
// `position: relative;` on them. Also accounts for the grid gutter padding.
|
45
|
+
.has-feedback .form-control-feedback {
|
46
|
+
right: floor(($grid-gutter-width / 2));
|
47
|
+
}
|
48
|
+
|
49
|
+
// Form group sizes
|
50
|
+
//
|
51
|
+
// Quick utility class for applying `.input-lg` and `.input-sm` styles to the
|
52
|
+
// inputs and labels within a `.form-group`.
|
53
|
+
.form-group-lg {
|
54
|
+
@media (min-width: $screen-sm-min) {
|
55
|
+
.control-label {
|
56
|
+
padding-top: (($padding-large-vertical * $line-height-large) + 1);
|
57
|
+
font-size: $font-size-large;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
.form-group-sm {
|
62
|
+
@media (min-width: $screen-sm-min) {
|
63
|
+
.control-label {
|
64
|
+
padding-top: ($padding-small-vertical + 1);
|
65
|
+
font-size: $font-size-small;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|