viniBaxter-spa_landing 0.6.0 → 0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. checksums.yaml +4 -4
  2. data/lib/viniBaxter/sass/.DS_Store +0 -0
  3. data/lib/viniBaxter/sass/bootstrap/_alert.scss +51 -0
  4. data/lib/viniBaxter/sass/bootstrap/_badge.scss +54 -0
  5. data/lib/viniBaxter/sass/bootstrap/_breadcrumb.scss +44 -0
  6. data/lib/viniBaxter/sass/bootstrap/_button-group.scss +163 -0
  7. data/lib/viniBaxter/sass/bootstrap/_buttons.scss +184 -0
  8. data/lib/viniBaxter/sass/bootstrap/_card.scss +286 -0
  9. data/lib/viniBaxter/sass/bootstrap/_carousel.scss +197 -0
  10. data/lib/viniBaxter/sass/bootstrap/_close.scss +40 -0
  11. data/lib/viniBaxter/sass/bootstrap/_code.scss +48 -0
  12. data/lib/viniBaxter/sass/bootstrap/_custom-forms.scss +523 -0
  13. data/lib/viniBaxter/sass/bootstrap/_dropdown.scss +192 -0
  14. data/lib/viniBaxter/sass/bootstrap/_forms.scss +347 -0
  15. data/lib/viniBaxter/sass/bootstrap/_functions.scss +164 -0
  16. data/lib/viniBaxter/sass/bootstrap/_grid.scss +73 -0
  17. data/lib/viniBaxter/sass/bootstrap/_images.scss +42 -0
  18. data/lib/viniBaxter/sass/bootstrap/_input-group.scss +192 -0
  19. data/lib/viniBaxter/sass/bootstrap/_jumbotron.scss +17 -0
  20. data/lib/viniBaxter/sass/bootstrap/_list-group.scss +154 -0
  21. data/lib/viniBaxter/sass/bootstrap/_media.scss +8 -0
  22. data/lib/viniBaxter/sass/bootstrap/_mixins.scss +47 -0
  23. data/lib/viniBaxter/sass/bootstrap/_modal.scss +240 -0
  24. data/lib/viniBaxter/sass/bootstrap/_nav.scss +123 -0
  25. data/lib/viniBaxter/sass/bootstrap/_navbar.scss +324 -0
  26. data/lib/viniBaxter/sass/bootstrap/_pagination.scss +74 -0
  27. data/lib/viniBaxter/sass/bootstrap/_popover.scss +170 -0
  28. data/lib/viniBaxter/sass/bootstrap/_print.scss +141 -0
  29. data/lib/viniBaxter/sass/bootstrap/_progress.scss +47 -0
  30. data/lib/viniBaxter/sass/bootstrap/_reboot.scss +469 -0
  31. data/lib/viniBaxter/sass/bootstrap/_root.scss +20 -0
  32. data/lib/viniBaxter/sass/bootstrap/_spinners.scss +56 -0
  33. data/lib/viniBaxter/sass/bootstrap/_tables.scss +185 -0
  34. data/lib/viniBaxter/sass/bootstrap/_toasts.scss +46 -0
  35. data/lib/viniBaxter/sass/bootstrap/_tooltip.scss +115 -0
  36. data/lib/viniBaxter/sass/bootstrap/_transitions.scss +20 -0
  37. data/lib/viniBaxter/sass/bootstrap/_type.scss +125 -0
  38. data/lib/viniBaxter/sass/bootstrap/_utilities.scss +18 -0
  39. data/lib/viniBaxter/sass/bootstrap/bootstrap-grid.scss +29 -0
  40. data/lib/viniBaxter/sass/bootstrap/bootstrap-reboot.scss +12 -0
  41. data/lib/viniBaxter/sass/bootstrap/bootstrap.scss +43 -0
  42. data/lib/viniBaxter/sass/bootstrap/mixins/_alert.scss +13 -0
  43. data/lib/viniBaxter/sass/bootstrap/mixins/_background-variant.scss +23 -0
  44. data/lib/viniBaxter/sass/bootstrap/mixins/_badge.scss +17 -0
  45. data/lib/viniBaxter/sass/bootstrap/mixins/_border-radius.scss +76 -0
  46. data/lib/viniBaxter/sass/bootstrap/mixins/_box-shadow.scss +20 -0
  47. data/lib/viniBaxter/sass/bootstrap/mixins/_breakpoints.scss +123 -0
  48. data/lib/viniBaxter/sass/bootstrap/mixins/_buttons.scss +154 -0
  49. data/lib/viniBaxter/sass/bootstrap/mixins/_caret.scss +62 -0
  50. data/lib/viniBaxter/sass/bootstrap/mixins/_clearfix.scss +7 -0
  51. data/lib/viniBaxter/sass/bootstrap/mixins/_deprecate.scss +10 -0
  52. data/lib/viniBaxter/sass/bootstrap/mixins/_float.scss +14 -0
  53. data/lib/viniBaxter/sass/bootstrap/mixins/_forms.scss +178 -0
  54. data/lib/viniBaxter/sass/bootstrap/mixins/_gradients.scss +45 -0
  55. data/lib/viniBaxter/sass/bootstrap/mixins/_grid-framework.scss +80 -0
  56. data/lib/viniBaxter/sass/bootstrap/mixins/_grid.scss +69 -0
  57. data/lib/viniBaxter/sass/bootstrap/mixins/_hover.scss +37 -0
  58. data/lib/viniBaxter/sass/bootstrap/mixins/_image.scss +36 -0
  59. data/lib/viniBaxter/sass/bootstrap/mixins/_list-group.scss +21 -0
  60. data/lib/viniBaxter/sass/bootstrap/mixins/_lists.scss +7 -0
  61. data/lib/viniBaxter/sass/bootstrap/mixins/_nav-divider.scss +11 -0
  62. data/lib/viniBaxter/sass/bootstrap/mixins/_pagination.scss +22 -0
  63. data/lib/viniBaxter/sass/bootstrap/mixins/_reset-text.scss +17 -0
  64. data/lib/viniBaxter/sass/bootstrap/mixins/_resize.scss +6 -0
  65. data/lib/viniBaxter/sass/bootstrap/mixins/_screen-reader.scss +34 -0
  66. data/lib/viniBaxter/sass/bootstrap/mixins/_size.scss +7 -0
  67. data/lib/viniBaxter/sass/bootstrap/mixins/_table-row.scss +39 -0
  68. data/lib/viniBaxter/sass/bootstrap/mixins/_text-emphasis.scss +17 -0
  69. data/lib/viniBaxter/sass/bootstrap/mixins/_text-hide.scss +11 -0
  70. data/lib/viniBaxter/sass/bootstrap/mixins/_text-truncate.scss +8 -0
  71. data/lib/viniBaxter/sass/bootstrap/mixins/_transition.scss +26 -0
  72. data/lib/viniBaxter/sass/bootstrap/mixins/_visibility.scss +8 -0
  73. data/lib/viniBaxter/sass/bootstrap/utilities/_align.scss +8 -0
  74. data/lib/viniBaxter/sass/bootstrap/utilities/_background.scss +19 -0
  75. data/lib/viniBaxter/sass/bootstrap/utilities/_borders.scss +75 -0
  76. data/lib/viniBaxter/sass/bootstrap/utilities/_clearfix.scss +3 -0
  77. data/lib/viniBaxter/sass/bootstrap/utilities/_display.scss +26 -0
  78. data/lib/viniBaxter/sass/bootstrap/utilities/_embed.scss +39 -0
  79. data/lib/viniBaxter/sass/bootstrap/utilities/_flex.scss +51 -0
  80. data/lib/viniBaxter/sass/bootstrap/utilities/_float.scss +11 -0
  81. data/lib/viniBaxter/sass/bootstrap/utilities/_interactions.scss +5 -0
  82. data/lib/viniBaxter/sass/bootstrap/utilities/_overflow.scss +5 -0
  83. data/lib/viniBaxter/sass/bootstrap/utilities/_position.scss +34 -0
  84. data/lib/viniBaxter/sass/bootstrap/utilities/_screenreaders.scss +11 -0
  85. data/lib/viniBaxter/sass/bootstrap/utilities/_shadows.scss +6 -0
  86. data/lib/viniBaxter/sass/bootstrap/utilities/_sizing.scss +20 -0
  87. data/lib/viniBaxter/sass/bootstrap/utilities/_spacing.scss +73 -0
  88. data/lib/viniBaxter/sass/bootstrap/utilities/_stretched-link.scss +19 -0
  89. data/lib/viniBaxter/sass/bootstrap/utilities/_text.scss +72 -0
  90. data/lib/viniBaxter/sass/bootstrap/utilities/_visibility.scss +13 -0
  91. data/lib/viniBaxter/sass/bootstrap/vendor/_rfs.scss +204 -0
  92. data/lib/viniBaxter/sass/spa_landing-basic-nav.scss +8 -0
  93. data/lib/viniBaxter/sass/{spa_landing.scss → spa_landing-nav.scss} +3 -0
  94. data/lib/viniBaxter/sass/spa_landing/.DS_Store +0 -0
  95. data/lib/viniBaxter/sass/spa_landing/theme/_aos.scss +13 -11
  96. data/lib/viniBaxter/sass/spa_landing/theme/_avatar.scss +24 -20
  97. data/lib/viniBaxter/sass/spa_landing/theme/_buttons.scss +65 -5
  98. data/lib/viniBaxter/sass/spa_landing/theme/_card.scss +60 -0
  99. data/lib/viniBaxter/sass/spa_landing/theme/_choices.scss +20 -0
  100. data/lib/viniBaxter/sass/spa_landing/theme/_custom-forms.scss +19 -7
  101. data/lib/viniBaxter/sass/spa_landing/theme/_dropdown-extend.scss +113 -0
  102. data/lib/viniBaxter/sass/spa_landing/theme/_dropdown.scss +18 -19
  103. data/lib/viniBaxter/sass/spa_landing/theme/_dropdown_creative.scss +140 -0
  104. data/lib/viniBaxter/sass/spa_landing/theme/_dropzone.scss +89 -0
  105. data/lib/viniBaxter/sass/spa_landing/theme/_feather.scss +0 -1079
  106. data/lib/viniBaxter/sass/spa_landing/theme/_forms.scss +14 -3
  107. data/lib/viniBaxter/sass/spa_landing/theme/_functions.scss +2 -2
  108. data/lib/viniBaxter/sass/spa_landing/theme/_grid.scss +1 -1
  109. data/lib/viniBaxter/sass/spa_landing/theme/_icon.scss +12 -14
  110. data/lib/viniBaxter/sass/spa_landing/theme/_input-group.scss +16 -0
  111. data/lib/viniBaxter/sass/spa_landing/theme/_mixins.scss +7 -3
  112. data/lib/viniBaxter/sass/spa_landing/theme/_modal.scss +5 -8
  113. data/lib/viniBaxter/sass/spa_landing/theme/_navbar-extend.scss +54 -0
  114. data/lib/viniBaxter/sass/spa_landing/theme/_navbar.scss +267 -272
  115. data/lib/viniBaxter/sass/spa_landing/theme/_navbar_creative.scss +425 -0
  116. data/lib/viniBaxter/sass/spa_landing/theme/_quill.scss +284 -0
  117. data/lib/viniBaxter/sass/spa_landing/theme/_reboot.scss +2 -10
  118. data/lib/viniBaxter/sass/spa_landing/theme/_responsive.scss +307 -0
  119. data/lib/viniBaxter/sass/spa_landing/theme/_shapes.scss +10 -0
  120. data/lib/viniBaxter/sass/spa_landing/theme/_theme-basic-nav.scss +50 -0
  121. data/lib/viniBaxter/sass/spa_landing/theme/_theme.scss +52 -48
  122. data/lib/viniBaxter/sass/spa_landing/theme/_type.scss +2 -7
  123. data/lib/viniBaxter/sass/spa_landing/theme/mixins/_dropdown.scss +29 -0
  124. data/lib/viniBaxter/sass/spa_landing/theme/mixins/_mixins.scss +3 -0
  125. data/lib/viniBaxter/sass/spa_landing/theme/mixins/_navbar.scss +298 -0
  126. data/lib/viniBaxter/sass/spa_landing/theme/mixins/_transparency.scss +8 -0
  127. data/lib/viniBaxter/sass/spa_landing/theme/mixins/_vendor-prefixes.scss +305 -0
  128. data/lib/viniBaxter/sass/spa_landing/theme/now-ui-kit.scss +6 -0
  129. data/lib/viniBaxter/sass/spa_landing/theme/utilities/_borders.scss +10 -2
  130. data/lib/viniBaxter/sass/spa_landing/theme/utilities/_type.scss +8 -4
  131. data/lib/viniBaxter/spa_landing/version.rb +1 -1
  132. metadata +111 -15
  133. data/lib/viniBaxter/sass/spa_landing/theme/_button-group.scss +0 -0
  134. data/lib/viniBaxter/sass/spa_landing/theme/_carousel.scss +0 -0
  135. data/lib/viniBaxter/sass/spa_landing/theme/_code.scss +0 -0
  136. data/lib/viniBaxter/sass/spa_landing/theme/_jumbotron.scss +0 -0
  137. data/lib/viniBaxter/sass/spa_landing/theme/_media.scss +0 -0
  138. data/lib/viniBaxter/sass/spa_landing/theme/_nav.scss +0 -0
  139. data/lib/viniBaxter/sass/spa_landing/theme/_print.scss +0 -0
  140. data/lib/viniBaxter/sass/spa_landing/theme/_progress.scss +0 -0
  141. data/lib/viniBaxter/sass/spa_landing/theme/_root.scss +0 -0
  142. data/lib/viniBaxter/sass/spa_landing/theme/_tooltip.scss +0 -0
  143. data/lib/viniBaxter/sass/spa_landing/theme/_transitions.scss +0 -0
@@ -0,0 +1,164 @@
1
+ // Bootstrap functions
2
+ //
3
+ // Utility mixins and functions for evaluating source code across our variables, maps, and mixins.
4
+
5
+ // Ascending
6
+ // Used to evaluate Sass maps like our grid breakpoints.
7
+ @mixin _assert-ascending($map, $map-name) {
8
+ $prev-key: null;
9
+ $prev-num: null;
10
+ @each $key, $num in $map {
11
+ @if $prev-num == null or unit($num) == '%' or unit($prev-num) == '%' {
12
+ // Do nothing
13
+ } @else if not comparable($prev-num, $num) {
14
+ @warn "Potentially invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} whose unit makes it incomparable to #{$prev-num}, the value of the previous key '#{$prev-key}' !";
15
+ } @else if $prev-num >= $num {
16
+ @warn "Invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} which isn't greater than #{$prev-num}, the value of the previous key '#{$prev-key}' !";
17
+ }
18
+ $prev-key: $key;
19
+ $prev-num: $num;
20
+ }
21
+ }
22
+
23
+ // Starts at zero
24
+ // Used to ensure the min-width of the lowest breakpoint starts at 0.
25
+ @mixin _assert-starts-at-zero($map, $map-name: '$grid-breakpoints') {
26
+ @if length($map) > 0 {
27
+ $values: map-values($map);
28
+ $first-value: nth($values, 1);
29
+ @if $first-value != 0 {
30
+ @warn "First breakpoint in #{$map-name} must start at 0, but starts at #{$first-value}.";
31
+ }
32
+ }
33
+ }
34
+
35
+ // Replace `$search` with `$replace` in `$string`
36
+ // Used on our SVG icon backgrounds for custom forms.
37
+ //
38
+ // @author Hugo Giraudel
39
+ // @param {String} $string - Initial string
40
+ // @param {String} $search - Substring to replace
41
+ // @param {String} $replace ('') - New value
42
+ // @return {String} - Updated string
43
+ @function str-replace($string, $search, $replace: '') {
44
+ $index: str-index($string, $search);
45
+
46
+ @if $index {
47
+ @return str-slice($string, 1, $index - 1) + $replace +
48
+ str-replace(
49
+ str-slice($string, $index + str-length($search)),
50
+ $search,
51
+ $replace
52
+ );
53
+ }
54
+
55
+ @return $string;
56
+ }
57
+
58
+ // See https://codepen.io/kevinweber/pen/dXWoRw
59
+ @function escape-svg($string) {
60
+ @if str-index($string, 'data:image/svg+xml') {
61
+ @each $char, $encoded in $escaped-characters {
62
+ // Do not escape the url brackets
63
+ @if str-index($string, 'url(') == 1 {
64
+ $string: url('#{str-replace(str-slice($string, 6, -3), $char, $encoded)}');
65
+ } @else {
66
+ $string: str-replace($string, $char, $encoded);
67
+ }
68
+ }
69
+ }
70
+
71
+ @return $string;
72
+ }
73
+
74
+ // Color contrast
75
+ @function color-yiq($color, $dark: $yiq-text-dark, $light: $yiq-text-light) {
76
+ $r: red($color);
77
+ $g: green($color);
78
+ $b: blue($color);
79
+
80
+ $yiq: (($r * 299) + ($g * 587) + ($b * 114)) / 1000;
81
+
82
+ @if ($yiq >= $yiq-contrasted-threshold) {
83
+ @return $dark;
84
+ } @else {
85
+ @return $light;
86
+ }
87
+ }
88
+
89
+ // Retrieve color Sass maps
90
+ @function color($key: 'blue') {
91
+ @return map-get($colors, $key);
92
+ }
93
+
94
+ @function theme-color($key: 'primary') {
95
+ @return map-get($theme-colors, $key);
96
+ }
97
+
98
+ @function gray($key: '100') {
99
+ @return map-get($grays, $key);
100
+ }
101
+
102
+ // Request a theme color level
103
+ @function theme-color-level($color-name: 'primary', $level: 0) {
104
+ $color: theme-color($color-name);
105
+ $color-base: if($level > 0, $black, $white);
106
+ $level: abs($level);
107
+
108
+ @return mix($color-base, $color, $level * $theme-color-interval);
109
+ }
110
+
111
+ // Return valid calc
112
+ @function add($value1, $value2, $return-calc: true) {
113
+ @if $value1 == null {
114
+ @return $value2;
115
+ }
116
+
117
+ @if $value2 == null {
118
+ @return $value1;
119
+ }
120
+
121
+ @if type-of($value1) ==
122
+ number and
123
+ type-of($value2) ==
124
+ number and
125
+ comparable($value1, $value2)
126
+ {
127
+ @return $value1 + $value2;
128
+ }
129
+
130
+ @return if(
131
+ $return-calc == true,
132
+ calc(#{$value1} + #{$value2}),
133
+ $value1 + unquote(' + ') + $value2
134
+ );
135
+ }
136
+
137
+ @function subtract($value1, $value2, $return-calc: true) {
138
+ @if $value1 == null and $value2 == null {
139
+ @return null;
140
+ }
141
+
142
+ @if $value1 == null {
143
+ @return -$value2;
144
+ }
145
+
146
+ @if $value2 == null {
147
+ @return $value1;
148
+ }
149
+
150
+ @if type-of($value1) ==
151
+ number and
152
+ type-of($value2) ==
153
+ number and
154
+ comparable($value1, $value2)
155
+ {
156
+ @return $value1 - $value2;
157
+ }
158
+
159
+ @return if(
160
+ $return-calc == true,
161
+ calc(#{$value1} - #{$value2}),
162
+ $value1 + unquote(' - ') + $value2
163
+ );
164
+ }
@@ -0,0 +1,73 @@
1
+ // Container widths
2
+ //
3
+ // Set the container width, and override it for fixed navbars in media queries.
4
+
5
+ @if $enable-grid-classes {
6
+ // Single container class with breakpoint max-widths
7
+ .container,
8
+ // 100% wide container at all breakpoints
9
+ .container-fluid {
10
+ @include make-container();
11
+ }
12
+
13
+ // Responsive containers that are 100% wide until a breakpoint
14
+ @each $breakpoint, $container-max-width in $container-max-widths {
15
+ .container-#{$breakpoint} {
16
+ @extend .container-fluid;
17
+ }
18
+
19
+ @include media-breakpoint-up($breakpoint, $grid-breakpoints) {
20
+ %responsive-container-#{$breakpoint} {
21
+ max-width: $container-max-width;
22
+ }
23
+
24
+ // Extend each breakpoint which is smaller or equal to the current breakpoint
25
+ $extend-breakpoint: true;
26
+
27
+ @each $name, $width in $grid-breakpoints {
28
+ @if ($extend-breakpoint) {
29
+ .container#{breakpoint-infix($name, $grid-breakpoints)} {
30
+ @extend %responsive-container-#{$breakpoint};
31
+ }
32
+
33
+ // Once the current breakpoint is reached, stop extending
34
+ @if ($breakpoint == $name) {
35
+ $extend-breakpoint: false;
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }
41
+ }
42
+
43
+
44
+ // Row
45
+ //
46
+ // Rows contain your columns.
47
+
48
+ @if $enable-grid-classes {
49
+ .row {
50
+ @include make-row();
51
+ }
52
+
53
+ // Remove the negative margin from default .row, then the horizontal padding
54
+ // from all immediate children columns (to prevent runaway style inheritance).
55
+ .no-gutters {
56
+ margin-right: 0;
57
+ margin-left: 0;
58
+
59
+ > .col,
60
+ > [class*="col-"] {
61
+ padding-right: 0;
62
+ padding-left: 0;
63
+ }
64
+ }
65
+ }
66
+
67
+ // Columns
68
+ //
69
+ // Common styles for small and large grid columns
70
+
71
+ @if $enable-grid-classes {
72
+ @include make-grid-columns();
73
+ }
@@ -0,0 +1,42 @@
1
+ // Responsive images (ensure images don't scale beyond their parents)
2
+ //
3
+ // This is purposefully opt-in via an explicit class rather than being the default for all `<img>`s.
4
+ // We previously tried the "images are responsive by default" approach in Bootstrap v2,
5
+ // and abandoned it in Bootstrap v3 because it breaks lots of third-party widgets (including Google Maps)
6
+ // which weren't expecting the images within themselves to be involuntarily resized.
7
+ // See also https://github.com/twbs/bootstrap/issues/18178
8
+ .img-fluid {
9
+ @include img-fluid();
10
+ }
11
+
12
+
13
+ // Image thumbnails
14
+ .img-thumbnail {
15
+ padding: $thumbnail-padding;
16
+ background-color: $thumbnail-bg;
17
+ border: $thumbnail-border-width solid $thumbnail-border-color;
18
+ @include border-radius($thumbnail-border-radius);
19
+ @include box-shadow($thumbnail-box-shadow);
20
+
21
+ // Keep them at most 100% wide
22
+ @include img-fluid();
23
+ }
24
+
25
+ //
26
+ // Figures
27
+ //
28
+
29
+ .figure {
30
+ // Ensures the caption's text aligns with the image.
31
+ display: inline-block;
32
+ }
33
+
34
+ .figure-img {
35
+ margin-bottom: $spacer / 2;
36
+ line-height: 1;
37
+ }
38
+
39
+ .figure-caption {
40
+ @include font-size($figure-caption-font-size);
41
+ color: $figure-caption-color;
42
+ }
@@ -0,0 +1,192 @@
1
+ // stylelint-disable selector-no-qualifying-type
2
+
3
+ //
4
+ // Base styles
5
+ //
6
+
7
+ .input-group {
8
+ position: relative;
9
+ display: flex;
10
+ flex-wrap: wrap; // For form validation feedback
11
+ align-items: stretch;
12
+ width: 100%;
13
+
14
+ > .form-control,
15
+ > .form-control-plaintext,
16
+ > .custom-select,
17
+ > .custom-file {
18
+ position: relative; // For focus state's z-index
19
+ flex: 1 1 auto;
20
+ width: 1%;
21
+ min-width: 0; // https://stackoverflow.com/questions/36247140/why-dont-flex-items-shrink-past-content-size
22
+ margin-bottom: 0;
23
+
24
+ + .form-control,
25
+ + .custom-select,
26
+ + .custom-file {
27
+ margin-left: -$input-border-width;
28
+ }
29
+ }
30
+
31
+ // Bring the "active" form control to the top of surrounding elements
32
+ > .form-control:focus,
33
+ > .custom-select:focus,
34
+ > .custom-file .custom-file-input:focus ~ .custom-file-label {
35
+ z-index: 3;
36
+ }
37
+
38
+ // Bring the custom file input above the label
39
+ > .custom-file .custom-file-input:focus {
40
+ z-index: 4;
41
+ }
42
+
43
+ > .form-control,
44
+ > .custom-select {
45
+ &:not(:last-child) { @include border-right-radius(0); }
46
+ &:not(:first-child) { @include border-left-radius(0); }
47
+ }
48
+
49
+ // Custom file inputs have more complex markup, thus requiring different
50
+ // border-radius overrides.
51
+ > .custom-file {
52
+ display: flex;
53
+ align-items: center;
54
+
55
+ &:not(:last-child) .custom-file-label,
56
+ &:not(:last-child) .custom-file-label::after { @include border-right-radius(0); }
57
+ &:not(:first-child) .custom-file-label { @include border-left-radius(0); }
58
+ }
59
+ }
60
+
61
+
62
+ // Prepend and append
63
+ //
64
+ // While it requires one extra layer of HTML for each, dedicated prepend and
65
+ // append elements allow us to 1) be less clever, 2) simplify our selectors, and
66
+ // 3) support HTML5 form validation.
67
+
68
+ .input-group-prepend,
69
+ .input-group-append {
70
+ display: flex;
71
+
72
+ // Ensure buttons are always above inputs for more visually pleasing borders.
73
+ // This isn't needed for `.input-group-text` since it shares the same border-color
74
+ // as our inputs.
75
+ .btn {
76
+ position: relative;
77
+ z-index: 2;
78
+
79
+ &:focus {
80
+ z-index: 3;
81
+ }
82
+ }
83
+
84
+ .btn + .btn,
85
+ .btn + .input-group-text,
86
+ .input-group-text + .input-group-text,
87
+ .input-group-text + .btn {
88
+ margin-left: -$input-border-width;
89
+ }
90
+ }
91
+
92
+ .input-group-prepend { margin-right: -$input-border-width; }
93
+ .input-group-append { margin-left: -$input-border-width; }
94
+
95
+
96
+ // Textual addons
97
+ //
98
+ // Serves as a catch-all element for any text or radio/checkbox input you wish
99
+ // to prepend or append to an input.
100
+
101
+ .input-group-text {
102
+ display: flex;
103
+ align-items: center;
104
+ padding: $input-padding-y $input-padding-x;
105
+ margin-bottom: 0; // Allow use of <label> elements by overriding our default margin-bottom
106
+ @include font-size($input-font-size); // Match inputs
107
+ font-weight: $font-weight-normal;
108
+ line-height: $input-line-height;
109
+ color: $input-group-addon-color;
110
+ text-align: center;
111
+ white-space: nowrap;
112
+ background-color: $input-group-addon-bg;
113
+ border: $input-border-width solid $input-group-addon-border-color;
114
+ @include border-radius($input-border-radius);
115
+
116
+ // Nuke default margins from checkboxes and radios to vertically center within.
117
+ input[type="radio"],
118
+ input[type="checkbox"] {
119
+ margin-top: 0;
120
+ }
121
+ }
122
+
123
+
124
+ // Sizing
125
+ //
126
+ // Remix the default form control sizing classes into new ones for easier
127
+ // manipulation.
128
+
129
+ .input-group-lg > .form-control:not(textarea),
130
+ .input-group-lg > .custom-select {
131
+ height: $input-height-lg;
132
+ }
133
+
134
+ .input-group-lg > .form-control,
135
+ .input-group-lg > .custom-select,
136
+ .input-group-lg > .input-group-prepend > .input-group-text,
137
+ .input-group-lg > .input-group-append > .input-group-text,
138
+ .input-group-lg > .input-group-prepend > .btn,
139
+ .input-group-lg > .input-group-append > .btn {
140
+ padding: $input-padding-y-lg $input-padding-x-lg;
141
+ @include font-size($input-font-size-lg);
142
+ line-height: $input-line-height-lg;
143
+ @include border-radius($input-border-radius-lg);
144
+ }
145
+
146
+ .input-group-sm > .form-control:not(textarea),
147
+ .input-group-sm > .custom-select {
148
+ height: $input-height-sm;
149
+ }
150
+
151
+ .input-group-sm > .form-control,
152
+ .input-group-sm > .custom-select,
153
+ .input-group-sm > .input-group-prepend > .input-group-text,
154
+ .input-group-sm > .input-group-append > .input-group-text,
155
+ .input-group-sm > .input-group-prepend > .btn,
156
+ .input-group-sm > .input-group-append > .btn {
157
+ padding: $input-padding-y-sm $input-padding-x-sm;
158
+ @include font-size($input-font-size-sm);
159
+ line-height: $input-line-height-sm;
160
+ @include border-radius($input-border-radius-sm);
161
+ }
162
+
163
+ .input-group-lg > .custom-select,
164
+ .input-group-sm > .custom-select {
165
+ padding-right: $custom-select-padding-x + $custom-select-indicator-padding;
166
+ }
167
+
168
+
169
+ // Prepend and append rounded corners
170
+ //
171
+ // These rulesets must come after the sizing ones to properly override sm and lg
172
+ // border-radius values when extending. They're more specific than we'd like
173
+ // with the `.input-group >` part, but without it, we cannot override the sizing.
174
+
175
+
176
+ .input-group > .input-group-prepend > .btn,
177
+ .input-group > .input-group-prepend > .input-group-text,
178
+ .input-group > .input-group-append:not(:last-child) > .btn,
179
+ .input-group > .input-group-append:not(:last-child) > .input-group-text,
180
+ .input-group > .input-group-append:last-child > .btn:not(:last-child):not(.dropdown-toggle),
181
+ .input-group > .input-group-append:last-child > .input-group-text:not(:last-child) {
182
+ @include border-right-radius(0);
183
+ }
184
+
185
+ .input-group > .input-group-append > .btn,
186
+ .input-group > .input-group-append > .input-group-text,
187
+ .input-group > .input-group-prepend:not(:first-child) > .btn,
188
+ .input-group > .input-group-prepend:not(:first-child) > .input-group-text,
189
+ .input-group > .input-group-prepend:first-child > .btn:not(:first-child),
190
+ .input-group > .input-group-prepend:first-child > .input-group-text:not(:first-child) {
191
+ @include border-left-radius(0);
192
+ }