mumuki-styles 2.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/fonts/dev-awesome.eot +0 -0
  3. data/app/assets/fonts/dev-awesome.ttf +0 -0
  4. data/app/assets/fonts/dev-awesome.woff +0 -0
  5. data/app/assets/fonts/dev-awesome.woff2 +0 -0
  6. data/app/assets/javascripts/mumuki-styles.js +6256 -1739
  7. data/app/assets/stylesheets/css/mumuki-styles.css +9905 -5622
  8. data/app/assets/stylesheets/scss/_colors.scss +64 -30
  9. data/app/assets/stylesheets/scss/_fa5.scss +2 -0
  10. data/app/assets/stylesheets/scss/_fonts.scss +1 -1
  11. data/app/assets/stylesheets/scss/_footer.scss +23 -16
  12. data/app/assets/stylesheets/scss/_links.scss +7 -0
  13. data/app/assets/stylesheets/scss/_modules.scss +4 -2
  14. data/app/assets/stylesheets/scss/_navbar.scss +30 -22
  15. data/app/assets/stylesheets/scss/_vendor.scss +1 -4
  16. data/app/assets/stylesheets/scss/bootswatch/_bootswatch.scss +188 -255
  17. data/app/assets/stylesheets/scss/bootswatch/_variables.scss +80 -843
  18. data/app/assets/stylesheets/scss/modules/_blockquote.scss +7 -0
  19. data/app/assets/stylesheets/scss/modules/_breadcrumb.scss +1 -1
  20. data/app/assets/stylesheets/scss/modules/_callout.scss +4 -4
  21. data/app/assets/stylesheets/scss/modules/_code.scss +5 -0
  22. data/app/assets/stylesheets/scss/modules/_conversation.scss +4 -5
  23. data/app/assets/stylesheets/scss/modules/_follow_us.scss +4 -4
  24. data/app/assets/stylesheets/scss/modules/_form.scss +19 -0
  25. data/app/assets/stylesheets/scss/modules/_multiple_scenarios.scss +5 -5
  26. data/app/assets/stylesheets/scss/modules/_new_message.scss +2 -2
  27. data/app/assets/stylesheets/scss/modules/_pre.scss +11 -0
  28. data/app/assets/stylesheets/scss/mumuki-styles.scss +2 -1
  29. data/app/assets/stylesheets/vendor/bootstrap/_accordion.scss +116 -0
  30. data/app/assets/stylesheets/vendor/bootstrap/_alert.scss +57 -0
  31. data/app/assets/stylesheets/vendor/bootstrap/_badge.scss +29 -0
  32. data/app/assets/stylesheets/vendor/bootstrap/_breadcrumb.scss +28 -0
  33. data/app/assets/stylesheets/vendor/bootstrap/_button-group.scss +139 -0
  34. data/app/assets/stylesheets/vendor/bootstrap/_buttons.scss +111 -0
  35. data/app/assets/stylesheets/vendor/bootstrap/_card.scss +215 -0
  36. data/app/assets/stylesheets/vendor/bootstrap/_carousel.scss +229 -0
  37. data/app/assets/stylesheets/vendor/bootstrap/_close.scss +40 -0
  38. data/app/assets/stylesheets/vendor/bootstrap/_containers.scss +41 -0
  39. data/app/assets/stylesheets/vendor/bootstrap/_dropdown.scss +246 -0
  40. data/app/assets/stylesheets/vendor/bootstrap/_forms.scss +9 -0
  41. data/app/assets/stylesheets/vendor/bootstrap/_functions.scss +205 -0
  42. data/app/assets/stylesheets/vendor/bootstrap/_grid.scss +22 -0
  43. data/app/assets/stylesheets/vendor/bootstrap/_helpers.scss +7 -0
  44. data/app/assets/stylesheets/vendor/bootstrap/_images.scss +42 -0
  45. data/app/assets/stylesheets/vendor/bootstrap/_list-group.scss +174 -0
  46. data/app/assets/stylesheets/vendor/bootstrap/_mixins.scss +41 -0
  47. data/app/assets/stylesheets/vendor/bootstrap/_modal.scss +237 -0
  48. data/app/assets/stylesheets/vendor/bootstrap/_nav.scss +139 -0
  49. data/app/assets/stylesheets/vendor/bootstrap/_navbar.scss +306 -0
  50. data/app/assets/stylesheets/vendor/bootstrap/_offcanvas.scss +77 -0
  51. data/app/assets/stylesheets/vendor/bootstrap/_pagination.scss +64 -0
  52. data/app/assets/stylesheets/vendor/bootstrap/_popover.scss +158 -0
  53. data/app/assets/stylesheets/vendor/bootstrap/_progress.scss +48 -0
  54. data/app/assets/stylesheets/vendor/bootstrap/_reboot.scss +621 -0
  55. data/app/assets/stylesheets/vendor/bootstrap/_root.scss +16 -0
  56. data/app/assets/stylesheets/vendor/bootstrap/_spinners.scss +69 -0
  57. data/app/assets/stylesheets/vendor/bootstrap/_tables.scss +150 -0
  58. data/app/assets/stylesheets/vendor/bootstrap/_toasts.scss +51 -0
  59. data/app/assets/stylesheets/vendor/bootstrap/_tooltip.scss +115 -0
  60. data/app/assets/stylesheets/vendor/bootstrap/_transitions.scss +21 -0
  61. data/app/assets/stylesheets/vendor/bootstrap/_type.scss +104 -0
  62. data/app/assets/stylesheets/vendor/bootstrap/_utilities.scss +594 -0
  63. data/app/assets/stylesheets/vendor/bootstrap/_variables.scss +1464 -0
  64. data/app/assets/stylesheets/vendor/bootstrap/bootstrap-utilities.scss +18 -0
  65. data/app/assets/stylesheets/vendor/bootstrap/bootstrap.scss +52 -0
  66. data/app/assets/stylesheets/vendor/bootstrap/forms/_floating-labels.scss +61 -0
  67. data/app/assets/stylesheets/vendor/bootstrap/forms/_form-check.scss +152 -0
  68. data/app/assets/stylesheets/vendor/bootstrap/forms/_form-control.scss +219 -0
  69. data/app/assets/stylesheets/vendor/bootstrap/forms/_form-range.scss +91 -0
  70. data/app/assets/stylesheets/vendor/bootstrap/forms/_form-select.scss +67 -0
  71. data/app/assets/stylesheets/vendor/bootstrap/forms/_form-text.scss +11 -0
  72. data/app/assets/stylesheets/vendor/bootstrap/forms/_input-group.scss +121 -0
  73. data/app/assets/stylesheets/vendor/bootstrap/forms/_labels.scss +36 -0
  74. data/app/assets/stylesheets/vendor/bootstrap/forms/_validation.scss +12 -0
  75. data/app/assets/stylesheets/vendor/bootstrap/helpers/_clearfix.scss +3 -0
  76. data/app/assets/stylesheets/vendor/bootstrap/helpers/_colored-links.scss +12 -0
  77. data/app/assets/stylesheets/vendor/bootstrap/helpers/_position.scss +30 -0
  78. data/app/assets/stylesheets/vendor/bootstrap/helpers/_ratio.scss +26 -0
  79. data/app/assets/stylesheets/vendor/bootstrap/helpers/_stretched-link.scss +15 -0
  80. data/app/assets/stylesheets/vendor/bootstrap/helpers/_text-truncation.scss +7 -0
  81. data/app/assets/stylesheets/vendor/bootstrap/helpers/_visually-hidden.scss +8 -0
  82. data/app/assets/stylesheets/vendor/bootstrap/mixins/_alert.scss +11 -0
  83. data/app/assets/stylesheets/vendor/bootstrap/mixins/_border-radius.scss +78 -0
  84. data/app/assets/stylesheets/vendor/bootstrap/mixins/_box-shadow.scss +18 -0
  85. data/app/assets/stylesheets/vendor/bootstrap/mixins/_breakpoints.scss +127 -0
  86. data/app/assets/stylesheets/vendor/bootstrap/mixins/_buttons.scss +133 -0
  87. data/app/assets/stylesheets/vendor/bootstrap/mixins/_caret.scss +64 -0
  88. data/app/assets/stylesheets/vendor/bootstrap/mixins/_clearfix.scss +9 -0
  89. data/app/assets/stylesheets/vendor/bootstrap/mixins/_container.scss +9 -0
  90. data/app/assets/stylesheets/vendor/bootstrap/mixins/_deprecate.scss +10 -0
  91. data/app/assets/stylesheets/vendor/bootstrap/mixins/_forms.scss +134 -0
  92. data/app/assets/stylesheets/vendor/bootstrap/mixins/_gradients.scss +47 -0
  93. data/app/assets/stylesheets/vendor/bootstrap/mixins/_grid.scss +120 -0
  94. data/app/assets/stylesheets/vendor/bootstrap/mixins/_image.scss +16 -0
  95. data/app/assets/stylesheets/vendor/bootstrap/mixins/_list-group.scss +24 -0
  96. data/app/assets/stylesheets/vendor/bootstrap/mixins/_lists.scss +7 -0
  97. data/app/assets/stylesheets/vendor/bootstrap/mixins/_pagination.scss +31 -0
  98. data/app/assets/stylesheets/vendor/{bootstrap-sass/assets/stylesheets/bootstrap → bootstrap}/mixins/_reset-text.scss +6 -7
  99. data/app/assets/stylesheets/vendor/{bootstrap-sass/assets/stylesheets/bootstrap → bootstrap}/mixins/_resize.scss +1 -1
  100. data/app/assets/stylesheets/vendor/bootstrap/mixins/_table-variants.scss +21 -0
  101. data/app/assets/stylesheets/vendor/{bootstrap-sass/assets/stylesheets/bootstrap/mixins/_text-overflow.scss → bootstrap/mixins/_text-truncate.scss} +2 -2
  102. data/app/assets/stylesheets/vendor/bootstrap/mixins/_transition.scss +26 -0
  103. data/app/assets/stylesheets/vendor/bootstrap/mixins/_utilities.scss +68 -0
  104. data/app/assets/stylesheets/vendor/bootstrap/mixins/_visually-hidden.scss +29 -0
  105. data/app/assets/stylesheets/vendor/bootstrap/utilities/_api.scss +47 -0
  106. data/app/assets/stylesheets/vendor/bootstrap/vendor/_rfs.scss +312 -0
  107. data/app/assets/stylesheets/vendor/dev-awesome/dist/scss/_dev-awesome.scss +3 -3
  108. data/lib/mumuki/styles/version.rb +1 -1
  109. metadata +85 -81
  110. data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.eot +0 -0
  111. data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.svg +0 -288
  112. data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf +0 -0
  113. data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.woff +0 -0
  114. data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.woff2 +0 -0
  115. data/app/assets/stylesheets/scss/_awesome-bootstrap-checkbox-overrides.scss +0 -8
  116. data/app/assets/stylesheets/scss/modules/_checkbox.scss +0 -65
  117. data/app/assets/stylesheets/scss/modules/_notification.scss +0 -15
  118. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.scss +0 -245
  119. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/_bootstrap.scss +0 -56
  120. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_alerts.scss +0 -73
  121. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_badges.scss +0 -68
  122. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_breadcrumbs.scss +0 -28
  123. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_button-groups.scss +0 -244
  124. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_buttons.scss +0 -168
  125. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_carousel.scss +0 -270
  126. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_close.scss +0 -36
  127. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_code.scss +0 -69
  128. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_component-animations.scss +0 -37
  129. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_dropdowns.scss +0 -216
  130. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_forms.scss +0 -617
  131. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_glyphicons.scss +0 -307
  132. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_grid.scss +0 -84
  133. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_input-groups.scss +0 -171
  134. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_jumbotron.scss +0 -54
  135. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_labels.scss +0 -66
  136. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_list-group.scss +0 -130
  137. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_media.scss +0 -66
  138. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_mixins.scss +0 -40
  139. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_modals.scss +0 -150
  140. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_navbar.scss +0 -662
  141. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_navs.scss +0 -242
  142. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_normalize.scss +0 -424
  143. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_pager.scss +0 -54
  144. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_pagination.scss +0 -89
  145. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_panels.scss +0 -271
  146. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_popovers.scss +0 -131
  147. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_print.scss +0 -101
  148. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_progress-bars.scss +0 -87
  149. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_responsive-embed.scss +0 -35
  150. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_responsive-utilities.scss +0 -179
  151. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_scaffolding.scss +0 -161
  152. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_tables.scss +0 -234
  153. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_thumbnails.scss +0 -38
  154. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_tooltip.scss +0 -101
  155. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_type.scss +0 -298
  156. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_utilities.scss +0 -55
  157. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_variables.scss +0 -874
  158. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_wells.scss +0 -29
  159. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_alerts.scss +0 -14
  160. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_background-variant.scss +0 -12
  161. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_border-radius.scss +0 -18
  162. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_buttons.scss +0 -65
  163. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_center-block.scss +0 -7
  164. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_clearfix.scss +0 -22
  165. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_forms.scss +0 -88
  166. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_gradients.scss +0 -58
  167. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +0 -81
  168. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_grid.scss +0 -122
  169. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_hide-text.scss +0 -21
  170. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_image.scss +0 -33
  171. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_labels.scss +0 -12
  172. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_list-group.scss +0 -32
  173. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +0 -10
  174. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_nav-vertical-align.scss +0 -9
  175. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_opacity.scss +0 -8
  176. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_pagination.scss +0 -24
  177. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_panels.scss +0 -24
  178. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_progress-bar.scss +0 -10
  179. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_reset-filter.scss +0 -8
  180. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_responsive-visibility.scss +0 -21
  181. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_size.scss +0 -10
  182. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_tab-focus.scss +0 -9
  183. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_table-row.scss +0 -28
  184. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +0 -12
  185. data/app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_vendor-prefixes.scss +0 -222
@@ -0,0 +1,18 @@
1
+ /*!
2
+ * Bootstrap Utilities v5.0.0-beta3 (https://getbootstrap.com/)
3
+ * Copyright 2011-2021 The Bootstrap Authors
4
+ * Copyright 2011-2021 Twitter, Inc.
5
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
6
+ */
7
+
8
+ // Configuration
9
+ @import "functions";
10
+ @import "variables";
11
+ @import "mixins";
12
+ @import "utilities";
13
+
14
+ // Helpers
15
+ @import "helpers";
16
+
17
+ // Utilities
18
+ @import "utilities/api";
@@ -0,0 +1,52 @@
1
+ /*!
2
+ * Bootstrap v5.0.0-beta3 (https://getbootstrap.com/)
3
+ * Copyright 2011-2021 The Bootstrap Authors
4
+ * Copyright 2011-2021 Twitter, Inc.
5
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
6
+ */
7
+
8
+ // scss-docs-start import-stack
9
+ // Configuration
10
+ @import "functions";
11
+ @import "variables";
12
+ @import "mixins";
13
+ @import "utilities";
14
+
15
+ // Layout & components
16
+ @import "root";
17
+ @import "reboot";
18
+ @import "type";
19
+ @import "images";
20
+ @import "containers";
21
+ @import "grid";
22
+ @import "tables";
23
+ @import "forms";
24
+ @import "buttons";
25
+ @import "transitions";
26
+ @import "dropdown";
27
+ @import "button-group";
28
+ @import "nav";
29
+ @import "navbar";
30
+ @import "card";
31
+ @import "accordion";
32
+ @import "breadcrumb";
33
+ @import "pagination";
34
+ @import "badge";
35
+ @import "alert";
36
+ @import "progress";
37
+ @import "list-group";
38
+ @import "close";
39
+ @import "toasts";
40
+ @import "modal";
41
+ @import "tooltip";
42
+ @import "popover";
43
+ @import "carousel";
44
+ @import "spinners";
45
+ @import "offcanvas";
46
+
47
+ // Helpers
48
+ @import "helpers";
49
+
50
+ // Utilities
51
+ @import "utilities/api";
52
+ // scss-docs-end import-stack
@@ -0,0 +1,61 @@
1
+ .form-floating {
2
+ position: relative;
3
+
4
+ > .form-control,
5
+ > .form-select {
6
+ height: $form-floating-height;
7
+ padding: $form-floating-padding-y $form-floating-padding-x;
8
+ }
9
+
10
+ > label {
11
+ position: absolute;
12
+ top: 0;
13
+ left: 0;
14
+ height: 100%; // allow textareas
15
+ padding: $form-floating-padding-y $form-floating-padding-x;
16
+ pointer-events: none;
17
+ border: $input-border-width solid transparent; // Required for aligning label's text with the input as it affects inner box model
18
+ transform-origin: 0 0;
19
+ @include transition($form-floating-transition);
20
+ }
21
+
22
+ // stylelint-disable no-duplicate-selectors
23
+ > .form-control {
24
+ &::placeholder {
25
+ color: transparent;
26
+ }
27
+
28
+ &:focus,
29
+ &:not(:placeholder-shown) {
30
+ padding-top: $form-floating-input-padding-t;
31
+ padding-bottom: $form-floating-input-padding-b;
32
+ }
33
+ // Duplicated because `:-webkit-autofill` invalidates other selectors when grouped
34
+ &:-webkit-autofill {
35
+ padding-top: $form-floating-input-padding-t;
36
+ padding-bottom: $form-floating-input-padding-b;
37
+ }
38
+ }
39
+
40
+ > .form-select {
41
+ padding-top: $form-floating-input-padding-t;
42
+ padding-bottom: $form-floating-input-padding-b;
43
+ }
44
+
45
+ > .form-control:focus,
46
+ > .form-control:not(:placeholder-shown),
47
+ > .form-select {
48
+ ~ label {
49
+ opacity: $form-floating-label-opacity;
50
+ transform: $form-floating-label-transform;
51
+ }
52
+ }
53
+ // Duplicated because `:-webkit-autofill` invalidates other selectors when grouped
54
+ > .form-control:-webkit-autofill {
55
+ ~ label {
56
+ opacity: $form-floating-label-opacity;
57
+ transform: $form-floating-label-transform;
58
+ }
59
+ }
60
+ // stylelint-enable no-duplicate-selectors
61
+ }
@@ -0,0 +1,152 @@
1
+ //
2
+ // Check/radio
3
+ //
4
+
5
+ .form-check {
6
+ display: block;
7
+ min-height: $form-check-min-height;
8
+ padding-left: $form-check-padding-start;
9
+ margin-bottom: $form-check-margin-bottom;
10
+
11
+ .form-check-input {
12
+ float: left;
13
+ margin-left: $form-check-padding-start * -1;
14
+ }
15
+ }
16
+
17
+ .form-check-input {
18
+ width: $form-check-input-width;
19
+ height: $form-check-input-width;
20
+ margin-top: ($line-height-base - $form-check-input-width) / 2; // line-height minus check height
21
+ vertical-align: top;
22
+ background-color: $form-check-input-bg;
23
+ background-repeat: no-repeat;
24
+ background-position: center;
25
+ background-size: contain;
26
+ border: $form-check-input-border;
27
+ appearance: none;
28
+ color-adjust: exact; // Keep themed appearance for print
29
+ @include transition($form-check-transition);
30
+
31
+ &[type="checkbox"] {
32
+ @include border-radius($form-check-input-border-radius);
33
+ }
34
+
35
+ &[type="radio"] {
36
+ // stylelint-disable-next-line property-disallowed-list
37
+ border-radius: $form-check-radio-border-radius;
38
+ }
39
+
40
+ &:active {
41
+ filter: $form-check-input-active-filter;
42
+ }
43
+
44
+ &:focus {
45
+ border-color: $form-check-input-focus-border;
46
+ outline: 0;
47
+ box-shadow: $form-check-input-focus-box-shadow;
48
+ }
49
+
50
+ &:checked {
51
+ background-color: $form-check-input-checked-bg-color;
52
+ border-color: $form-check-input-checked-border-color;
53
+
54
+ &[type="checkbox"] {
55
+ @if $enable-gradients {
56
+ background-image: escape-svg($form-check-input-checked-bg-image), var(--#{$variable-prefix}gradient);
57
+ } @else {
58
+ background-image: escape-svg($form-check-input-checked-bg-image);
59
+ }
60
+ }
61
+
62
+ &[type="radio"] {
63
+ @if $enable-gradients {
64
+ background-image: escape-svg($form-check-radio-checked-bg-image), var(--#{$variable-prefix}gradient);
65
+ } @else {
66
+ background-image: escape-svg($form-check-radio-checked-bg-image);
67
+ }
68
+ }
69
+ }
70
+
71
+ &[type="checkbox"]:indeterminate {
72
+ background-color: $form-check-input-indeterminate-bg-color;
73
+ border-color: $form-check-input-indeterminate-border-color;
74
+
75
+ @if $enable-gradients {
76
+ background-image: escape-svg($form-check-input-indeterminate-bg-image), var(--#{$variable-prefix}gradient);
77
+ } @else {
78
+ background-image: escape-svg($form-check-input-indeterminate-bg-image);
79
+ }
80
+ }
81
+
82
+ &:disabled {
83
+ pointer-events: none;
84
+ filter: none;
85
+ opacity: $form-check-input-disabled-opacity;
86
+ }
87
+
88
+ // Use disabled attribute in addition of :disabled pseudo-class
89
+ // See: https://github.com/twbs/bootstrap/issues/28247
90
+ &[disabled],
91
+ &:disabled {
92
+ ~ .form-check-label {
93
+ opacity: $form-check-label-disabled-opacity;
94
+ }
95
+ }
96
+ }
97
+
98
+ .form-check-label {
99
+ color: $form-check-label-color;
100
+ cursor: $form-check-label-cursor;
101
+ }
102
+
103
+ //
104
+ // Switch
105
+ //
106
+
107
+ .form-switch {
108
+ padding-left: $form-switch-padding-start;
109
+
110
+ .form-check-input {
111
+ width: $form-switch-width;
112
+ margin-left: $form-switch-padding-start * -1;
113
+ background-image: escape-svg($form-switch-bg-image);
114
+ background-position: left center;
115
+ @include border-radius($form-switch-border-radius);
116
+ @include transition($form-switch-transition);
117
+
118
+ &:focus {
119
+ background-image: escape-svg($form-switch-focus-bg-image);
120
+ }
121
+
122
+ &:checked {
123
+ background-position: $form-switch-checked-bg-position;
124
+
125
+ @if $enable-gradients {
126
+ background-image: escape-svg($form-switch-checked-bg-image), var(--#{$variable-prefix}gradient);
127
+ } @else {
128
+ background-image: escape-svg($form-switch-checked-bg-image);
129
+ }
130
+ }
131
+ }
132
+ }
133
+
134
+ .form-check-inline {
135
+ display: inline-block;
136
+ margin-right: $form-check-inline-margin-end;
137
+ }
138
+
139
+ .btn-check {
140
+ position: absolute;
141
+ clip: rect(0, 0, 0, 0);
142
+ pointer-events: none;
143
+
144
+ &[disabled],
145
+ &:disabled {
146
+ + .btn {
147
+ pointer-events: none;
148
+ filter: none;
149
+ opacity: $form-check-btn-check-disabled-opacity;
150
+ }
151
+ }
152
+ }
@@ -0,0 +1,219 @@
1
+ //
2
+ // General form controls (plus a few specific high-level interventions)
3
+ //
4
+
5
+ .form-control {
6
+ display: block;
7
+ width: 100%;
8
+ padding: $input-padding-y $input-padding-x;
9
+ font-family: $input-font-family;
10
+ @include font-size($input-font-size);
11
+ font-weight: $input-font-weight;
12
+ line-height: $input-line-height;
13
+ color: $input-color;
14
+ background-color: $input-bg;
15
+ background-clip: padding-box;
16
+ border: $input-border-width solid $input-border-color;
17
+ appearance: none; // Fix appearance for date inputs in Safari
18
+
19
+ // Note: This has no effect on <select>s in some browsers, due to the limited stylability of `<select>`s in CSS.
20
+ @include border-radius($input-border-radius, 0);
21
+
22
+ @include box-shadow($input-box-shadow);
23
+ @include transition($input-transition);
24
+
25
+ &[type="file"] {
26
+ overflow: hidden; // prevent pseudo element button overlap
27
+
28
+ &:not(:disabled):not([readonly]) {
29
+ cursor: pointer;
30
+ }
31
+ }
32
+
33
+ // Customize the `:focus` state to imitate native WebKit styles.
34
+ &:focus {
35
+ color: $input-focus-color;
36
+ background-color: $input-focus-bg;
37
+ border-color: $input-focus-border-color;
38
+ outline: 0;
39
+ @if $enable-shadows {
40
+ @include box-shadow($input-box-shadow, $input-focus-box-shadow);
41
+ } @else {
42
+ // Avoid using mixin so we can pass custom focus shadow properly
43
+ box-shadow: $input-focus-box-shadow;
44
+ }
45
+ }
46
+
47
+ // Add some height to date inputs on iOS
48
+ // https://github.com/twbs/bootstrap/issues/23307
49
+ // TODO: we can remove this workaround once https://bugs.webkit.org/show_bug.cgi?id=198959 is resolved
50
+ &::-webkit-date-and-time-value {
51
+ // Multiply line-height by 1em if it has no unit
52
+ height: if(unit($input-line-height) == "", $input-line-height * 1em, $input-line-height);
53
+ }
54
+
55
+ // Placeholder
56
+ &::placeholder {
57
+ color: $input-placeholder-color;
58
+ // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526.
59
+ opacity: 1;
60
+ }
61
+
62
+ // Disabled and read-only inputs
63
+ //
64
+ // HTML5 says that controls under a fieldset > legend:first-child won't be
65
+ // disabled if the fieldset is disabled. Due to implementation difficulty, we
66
+ // don't honor that edge case; we style them as disabled anyway.
67
+ &:disabled,
68
+ &[readonly] {
69
+ background-color: $input-disabled-bg;
70
+ border-color: $input-disabled-border-color;
71
+ // iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655.
72
+ opacity: 1;
73
+ }
74
+
75
+ // File input buttons theming
76
+ &::file-selector-button {
77
+ padding: $input-padding-y $input-padding-x;
78
+ margin: (-$input-padding-y) (-$input-padding-x);
79
+ margin-inline-end: $input-padding-x;
80
+ color: $form-file-button-color;
81
+ @include gradient-bg($form-file-button-bg);
82
+ pointer-events: none;
83
+ border-color: inherit;
84
+ border-style: solid;
85
+ border-width: 0;
86
+ border-inline-end-width: $input-border-width;
87
+ border-radius: 0; // stylelint-disable-line property-disallowed-list
88
+ @include transition($btn-transition);
89
+ }
90
+
91
+ &:hover:not(:disabled):not([readonly])::file-selector-button {
92
+ background-color: $form-file-button-hover-bg;
93
+ }
94
+
95
+ &::-webkit-file-upload-button {
96
+ padding: $input-padding-y $input-padding-x;
97
+ margin: (-$input-padding-y) (-$input-padding-x);
98
+ margin-inline-end: $input-padding-x;
99
+ color: $form-file-button-color;
100
+ @include gradient-bg($form-file-button-bg);
101
+ pointer-events: none;
102
+ border-color: inherit;
103
+ border-style: solid;
104
+ border-width: 0;
105
+ border-inline-end-width: $input-border-width;
106
+ border-radius: 0; // stylelint-disable-line property-disallowed-list
107
+ @include transition($btn-transition);
108
+ }
109
+
110
+ &:hover:not(:disabled):not([readonly])::-webkit-file-upload-button {
111
+ background-color: $form-file-button-hover-bg;
112
+ }
113
+ }
114
+
115
+ // Readonly controls as plain text
116
+ //
117
+ // Apply class to a readonly input to make it appear like regular plain
118
+ // text (without any border, background color, focus indicator)
119
+
120
+ .form-control-plaintext {
121
+ display: block;
122
+ width: 100%;
123
+ padding: $input-padding-y 0;
124
+ margin-bottom: 0; // match inputs if this class comes on inputs with default margins
125
+ line-height: $input-line-height;
126
+ color: $input-plaintext-color;
127
+ background-color: transparent;
128
+ border: solid transparent;
129
+ border-width: $input-border-width 0;
130
+
131
+ &.form-control-sm,
132
+ &.form-control-lg {
133
+ padding-right: 0;
134
+ padding-left: 0;
135
+ }
136
+ }
137
+
138
+ // Form control sizing
139
+ //
140
+ // Build on `.form-control` with modifier classes to decrease or increase the
141
+ // height and font-size of form controls.
142
+ //
143
+ // Repeated in `_input_group.scss` to avoid Sass extend issues.
144
+
145
+ .form-control-sm {
146
+ min-height: $input-height-sm;
147
+ padding: $input-padding-y-sm $input-padding-x-sm;
148
+ @include font-size($input-font-size-sm);
149
+ @include border-radius($input-border-radius-sm);
150
+
151
+ &::file-selector-button {
152
+ padding: $input-padding-y-sm $input-padding-x-sm;
153
+ margin: (-$input-padding-y-sm) (-$input-padding-x-sm);
154
+ margin-inline-end: $input-padding-x-sm;
155
+ }
156
+
157
+ &::-webkit-file-upload-button {
158
+ padding: $input-padding-y-sm $input-padding-x-sm;
159
+ margin: (-$input-padding-y-sm) (-$input-padding-x-sm);
160
+ margin-inline-end: $input-padding-x-sm;
161
+ }
162
+ }
163
+
164
+ .form-control-lg {
165
+ min-height: $input-height-lg;
166
+ padding: $input-padding-y-lg $input-padding-x-lg;
167
+ @include font-size($input-font-size-lg);
168
+ @include border-radius($input-border-radius-lg);
169
+
170
+ &::file-selector-button {
171
+ padding: $input-padding-y-lg $input-padding-x-lg;
172
+ margin: (-$input-padding-y-lg) (-$input-padding-x-lg);
173
+ margin-inline-end: $input-padding-x-lg;
174
+ }
175
+
176
+ &::-webkit-file-upload-button {
177
+ padding: $input-padding-y-lg $input-padding-x-lg;
178
+ margin: (-$input-padding-y-lg) (-$input-padding-x-lg);
179
+ margin-inline-end: $input-padding-x-lg;
180
+ }
181
+ }
182
+
183
+ // Make sure textareas don't shrink too much when resized
184
+ // https://github.com/twbs/bootstrap/pull/29124
185
+ // stylelint-disable selector-no-qualifying-type
186
+ textarea {
187
+ &.form-control {
188
+ min-height: $input-height;
189
+ }
190
+
191
+ &.form-control-sm {
192
+ min-height: $input-height-sm;
193
+ }
194
+
195
+ &.form-control-lg {
196
+ min-height: $input-height-lg;
197
+ }
198
+ }
199
+ // stylelint-enable selector-no-qualifying-type
200
+
201
+ .form-control-color {
202
+ max-width: 3rem;
203
+ height: auto; // Override fixed browser height
204
+ padding: $input-padding-y;
205
+
206
+ &:not(:disabled):not([readonly]) {
207
+ cursor: pointer;
208
+ }
209
+
210
+ &::-moz-color-swatch {
211
+ height: if(unit($input-line-height) == "", $input-line-height * 1em, $input-line-height);
212
+ @include border-radius($input-border-radius);
213
+ }
214
+
215
+ &::-webkit-color-swatch {
216
+ height: if(unit($input-line-height) == "", $input-line-height * 1em, $input-line-height);
217
+ @include border-radius($input-border-radius);
218
+ }
219
+ }