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.
Files changed (171) hide show
  1. checksums.yaml +4 -4
  2. data/fonts/fontawesome.js +1978 -0
  3. data/fonts/regular.js +1217 -0
  4. data/lib/nitro_sg/version.rb +1 -1
  5. data/sass-mixins/_global.scss +415 -0
  6. data/sass-mixins/_normalize.scss +424 -0
  7. data/sass-mixins/_print.scss +101 -0
  8. data/sass-mixins/application.scss +29 -0
  9. data/sass-mixins/application.scss.flow +1592 -0
  10. data/sass-mixins/base-mixins/_all.scss +11 -0
  11. data/sass-mixins/base-mixins/_all.scss.flow +6 -0
  12. data/sass-mixins/base-mixins/_border-radius.scss +25 -0
  13. data/sass-mixins/base-mixins/_breakpoints.scss +95 -0
  14. data/sass-mixins/base-mixins/_color.sass +22 -0
  15. data/sass-mixins/base-mixins/_forms.scss +33 -0
  16. data/sass-mixins/base-mixins/_general.scss +599 -0
  17. data/sass-mixins/base-mixins/_grid-framework.scss +81 -0
  18. data/sass-mixins/base-mixins/_grid.scss +126 -0
  19. data/sass-mixins/base-mixins/_hover.scss +26 -0
  20. data/sass-mixins/base-mixins/_images.scss +33 -0
  21. data/sass-mixins/base-mixins/_media-queries.sass +58 -0
  22. data/sass-mixins/base-mixins/_type.scss +46 -0
  23. data/sass-mixins/base-variables/_all.scss +11 -0
  24. data/sass-mixins/base-variables/_animation-curves.scss +37 -0
  25. data/sass-mixins/base-variables/_bootstrap-variables.scss +284 -0
  26. data/sass-mixins/base-variables/_border-radius.sass +27 -0
  27. data/sass-mixins/base-variables/_color-bootstrap.scss +62 -0
  28. data/sass-mixins/base-variables/_color-deprecated.scss +26 -0
  29. data/sass-mixins/base-variables/_color-ui-elements.scss +20 -0
  30. data/sass-mixins/base-variables/_colors-export.scss +13 -0
  31. data/sass-mixins/base-variables/_colors-export.scss.flow +92 -0
  32. data/sass-mixins/base-variables/_colors.scss +267 -0
  33. data/sass-mixins/base-variables/_colors.scss.flow +5 -0
  34. data/sass-mixins/base-variables/_fonts.scss +97 -0
  35. data/sass-mixins/base-variables/_forms.scss +44 -0
  36. data/sass-mixins/base-variables/_opacity.scss +9 -0
  37. data/sass-mixins/base-variables/_positioning.scss +24 -0
  38. data/sass-mixins/base-variables/_shadows.scss +5 -0
  39. data/sass-mixins/base-variables/_sizing-ui-elements.scss +2 -0
  40. data/sass-mixins/base-variables/_spacing.sass +27 -0
  41. data/sass-mixins/base-variables/_typography.sass +79 -0
  42. data/sass-mixins/class-helpers/_all.scss +17 -0
  43. data/sass-mixins/class-helpers/_borders.scss +40 -0
  44. data/sass-mixins/class-helpers/_color.sass +61 -0
  45. data/sass-mixins/class-helpers/_display.scss +40 -0
  46. data/sass-mixins/class-helpers/_flexbox.scss +213 -0
  47. data/sass-mixins/class-helpers/_glyphicons.scss +307 -0
  48. data/sass-mixins/class-helpers/_line-height.scss +21 -0
  49. data/sass-mixins/class-helpers/_radius-and-shadows.scss +49 -0
  50. data/sass-mixins/class-helpers/_responsive-utilities.scss +179 -0
  51. data/sass-mixins/class-helpers/_screen-readers.scss +34 -0
  52. data/sass-mixins/class-helpers/_spacing.scss +51 -0
  53. data/sass-mixins/class-helpers/_type.scss +323 -0
  54. data/sass-mixins/class-helpers/_z-index.scss +10 -0
  55. data/sass-mixins/components.scss +5 -0
  56. data/sass-mixins/nitro-ui/_alerts.scss +139 -0
  57. data/sass-mixins/nitro-ui/_all.scss +33 -0
  58. data/sass-mixins/nitro-ui/_animations.scss +37 -0
  59. data/sass-mixins/nitro-ui/_carousel.scss +281 -0
  60. data/sass-mixins/nitro-ui/_code.scss +87 -0
  61. data/sass-mixins/nitro-ui/_connect-cards.scss +150 -0
  62. data/sass-mixins/nitro-ui/_dashboards.scss +516 -0
  63. data/sass-mixins/nitro-ui/_fixed-confirmation-toast.scss +48 -0
  64. data/sass-mixins/nitro-ui/_full-menu.scss +168 -0
  65. data/sass-mixins/nitro-ui/_grid.scss +92 -0
  66. data/sass-mixins/nitro-ui/_icon-toggle.scss +37 -0
  67. data/sass-mixins/nitro-ui/_jumbotron.scss +65 -0
  68. data/sass-mixins/nitro-ui/_links.scss +69 -0
  69. data/sass-mixins/nitro-ui/_list-group.scss +219 -0
  70. data/sass-mixins/nitro-ui/_media.scss +66 -0
  71. data/sass-mixins/nitro-ui/_modals.scss +311 -0
  72. data/sass-mixins/nitro-ui/_notify.scss +56 -0
  73. data/sass-mixins/nitro-ui/_popovers.scss +167 -0
  74. data/sass-mixins/nitro-ui/_progress-bars.scss +125 -0
  75. data/sass-mixins/nitro-ui/_responsive-embed.scss +35 -0
  76. data/sass-mixins/nitro-ui/_side-modal.scss +92 -0
  77. data/sass-mixins/nitro-ui/_tables-responsive.scss +253 -0
  78. data/sass-mixins/nitro-ui/_tables.scss +296 -0
  79. data/sass-mixins/nitro-ui/_thumbnails.scss +38 -0
  80. data/sass-mixins/nitro-ui/_tooltip.scss +124 -0
  81. data/sass-mixins/nitro-ui/_typography.scss +176 -0
  82. data/sass-mixins/nitro-ui/_value-stat.scss +149 -0
  83. data/sass-mixins/nitro-ui/_wells.scss +37 -0
  84. data/sass-mixins/nitro-ui/buttons/_all.scss +97 -0
  85. data/sass-mixins/nitro-ui/buttons/_button-capping.scss +21 -0
  86. data/sass-mixins/nitro-ui/buttons/_button-groups.scss +236 -0
  87. data/sass-mixins/nitro-ui/buttons/_button-mixins.scss +66 -0
  88. data/sass-mixins/nitro-ui/buttons/_button-variables.scss +51 -0
  89. data/sass-mixins/nitro-ui/buttons/_choice-buttons.scss +9 -0
  90. data/sass-mixins/nitro-ui/buttons/_circle-buttons.scss +30 -0
  91. data/sass-mixins/nitro-ui/buttons/_close.scss +45 -0
  92. data/sass-mixins/nitro-ui/buttons/_dropdowns.scss +270 -0
  93. data/sass-mixins/nitro-ui/buttons/_ghost-buttons.scss +58 -0
  94. data/sass-mixins/nitro-ui/buttons/_link-buttons.scss +53 -0
  95. data/sass-mixins/nitro-ui/buttons/_solid-buttons.scss +69 -0
  96. data/sass-mixins/nitro-ui/cards-panels/_all.scss +3 -0
  97. data/sass-mixins/nitro-ui/cards-panels/_cards.scss +409 -0
  98. data/sass-mixins/nitro-ui/cards-panels/_collapsible-card.scss +19 -0
  99. data/sass-mixins/nitro-ui/cards-panels/_panel-collapse.scss +34 -0
  100. data/sass-mixins/nitro-ui/cards-panels/_panel-list-groups.scss +41 -0
  101. data/sass-mixins/nitro-ui/cards-panels/_panel-tables.scss +111 -0
  102. data/sass-mixins/nitro-ui/cards-panels/_panels.scss +120 -0
  103. data/sass-mixins/nitro-ui/forms/_all.scss +18 -0
  104. data/sass-mixins/nitro-ui/forms/_checkbox-radio.scss +154 -0
  105. data/sass-mixins/nitro-ui/forms/_checkbox-toggle.scss +77 -0
  106. data/sass-mixins/nitro-ui/forms/_color-feedback.scss +53 -0
  107. data/sass-mixins/nitro-ui/forms/_dropdown.scss +12 -0
  108. data/sass-mixins/nitro-ui/forms/_form-group.scss +104 -0
  109. data/sass-mixins/nitro-ui/forms/_general-element-reset.scss +120 -0
  110. data/sass-mixins/nitro-ui/forms/_help-block.scss +11 -0
  111. data/sass-mixins/nitro-ui/forms/_horizontal-forms.scss +69 -0
  112. data/sass-mixins/nitro-ui/forms/_input-groups.scss +169 -0
  113. data/sass-mixins/nitro-ui/forms/_label.scss +29 -0
  114. data/sass-mixins/nitro-ui/forms/_multi-input-group.scss +89 -0
  115. data/sass-mixins/nitro-ui/forms/_static-form-text.scss +19 -0
  116. data/sass-mixins/nitro-ui/forms/_validation-states.scss +78 -0
  117. data/sass-mixins/nitro-ui/layouts/_sidebar-layout.scss +59 -0
  118. data/sass-mixins/nitro-ui/navigation/_all.scss +36 -0
  119. data/sass-mixins/nitro-ui/navigation/_breadcrumbs.scss +30 -0
  120. data/sass-mixins/nitro-ui/navigation/_pager.scss +71 -0
  121. data/sass-mixins/nitro-ui/navigation/_pagination.scss +212 -0
  122. data/sass-mixins/nitro-ui/navigation/navbar/_brand.scss +25 -0
  123. data/sass-mixins/nitro-ui/navigation/navbar/_collapse-content.scss +49 -0
  124. data/sass-mixins/nitro-ui/navigation/navbar/_default-navbar.scss +33 -0
  125. data/sass-mixins/nitro-ui/navigation/navbar/_dropdowns-buttons.scss +29 -0
  126. data/sass-mixins/nitro-ui/navigation/navbar/_floats.scss +21 -0
  127. data/sass-mixins/nitro-ui/navigation/navbar/_flush.scss +14 -0
  128. data/sass-mixins/nitro-ui/navigation/navbar/_forms.scss +41 -0
  129. data/sass-mixins/nitro-ui/navigation/navbar/_header.scss +31 -0
  130. data/sass-mixins/nitro-ui/navigation/navbar/_inverse-navbar.scss +32 -0
  131. data/sass-mixins/nitro-ui/navigation/navbar/_light-navbar.scss +36 -0
  132. data/sass-mixins/nitro-ui/navigation/navbar/_links.scss +52 -0
  133. data/sass-mixins/nitro-ui/navigation/navbar/_mixins.scss +161 -0
  134. data/sass-mixins/nitro-ui/navigation/navbar/_navbar.scss +29 -0
  135. data/sass-mixins/nitro-ui/navigation/navbar/_position.scss +50 -0
  136. data/sass-mixins/nitro-ui/navigation/navbar/_text.scss +13 -0
  137. data/sass-mixins/nitro-ui/navigation/navbar/_toggle-button.scss +37 -0
  138. data/sass-mixins/nitro-ui/navigation/navbar/_variables.scss +8 -0
  139. data/sass-mixins/nitro-ui/navigation/navs/_nav-dropdowns.scss +10 -0
  140. data/sass-mixins/nitro-ui/navigation/navs/_nav-justified.scss +32 -0
  141. data/sass-mixins/nitro-ui/navigation/navs/_nav-pills.scss +41 -0
  142. data/sass-mixins/nitro-ui/navigation/navs/_nav-tabs-justified.scss +30 -0
  143. data/sass-mixins/nitro-ui/navigation/navs/_nav-tabs.scss +41 -0
  144. data/sass-mixins/nitro-ui/navigation/navs/_nav.scss +383 -0
  145. data/sass-mixins/nitro-ui/navigation/navs/_navs.scss +70 -0
  146. data/sass-mixins/nitro-ui/navigation/navs/_tabbable-tabs.scss +12 -0
  147. data/sass-mixins/nitro-ui/navigation/navs/_variables.scss +23 -0
  148. data/sass-mixins/nitro-ui/tables/_all.scss +14 -0
  149. data/sass-mixins/nitro-ui/tables/_as-cards.scss +49 -0
  150. data/sass-mixins/nitro-ui/tables/_content.scss +13 -0
  151. data/sass-mixins/nitro-ui/tables/_headers.scss +17 -0
  152. data/sass-mixins/nitro-ui/tables/_hover.scss +66 -0
  153. data/sass-mixins/nitro-ui/tables/_mixins.scss +0 -0
  154. data/sass-mixins/nitro-ui/tables/_mobile.scss +138 -0
  155. data/sass-mixins/nitro-ui/tables/_reset.scss +17 -0
  156. data/sass-mixins/nitro-ui/tables/_single-line.scss +35 -0
  157. data/sass-mixins/nitro-ui/tables/_structure.scss +39 -0
  158. data/sass-mixins/nitro-ui/tables/_table-card.scss +88 -0
  159. data/sass-mixins/nitro-ui/tables/_table-dark.scss +92 -0
  160. data/sass-mixins/nitro-ui/tables/_variables.scss +23 -0
  161. data/sass-mixins/vendor/_bootstrap-overrides.scss +41 -0
  162. data/sass-mixins/vendor/_dropzone.scss +388 -0
  163. data/sass-mixins/vendor/_nitro-bootstrap.scss +95 -0
  164. data/sass-mixins/vendor/_nitro-dropzone.scss +56 -0
  165. data/sass-mixins/vendor/_react-datetime.scss +105 -0
  166. data/sass-mixins/vendor/_selectize.scss +407 -0
  167. data/sass-mixins/vendor/_sweet-alert-extended.scss +3 -0
  168. data/sass-mixins/vendor/react-select.css +375 -0
  169. data/sass-mixins/vendor/svg-with-js.css +5 -0
  170. data/sass-mixins/vendor/type-ahead.scss +43 -0
  171. 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,12 @@
1
+ select.form-control {
2
+ @include select;
3
+ &:focus {
4
+ outline: 0;
5
+ border-color: $ink-lightest;
6
+ box-shadow: 0 2px 9px $p-navy-opacity-3;
7
+ }
8
+ &[multiple] {
9
+ background: linear-gradient(to bottom, $white 10%, $gray-1 100%);
10
+ height: auto;
11
+ }
12
+ }
@@ -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
+ }