material-sass 4.0.0.alpha6 → 4.0.0.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/README.md +36 -8
  4. data/Rakefile +16 -3
  5. data/app/assets/javascripts/material-sprockets.js +6 -1
  6. data/app/assets/javascripts/material.js +654 -417
  7. data/app/assets/javascripts/material.min.js +1 -0
  8. data/app/assets/javascripts/material/addons/picker.date.js +234 -0
  9. data/app/assets/javascripts/material/addons/picker.js +172 -0
  10. data/app/assets/javascripts/material/addons/textarea-autosize.js +20 -2
  11. data/app/assets/javascripts/material/addons/waves.js +127 -0
  12. data/app/assets/javascripts/material/components/floating-label.js +92 -0
  13. data/app/assets/javascripts/material/components/navdrawer.js +353 -0
  14. data/app/assets/javascripts/material/components/selection-control-focus.js +47 -0
  15. data/app/assets/javascripts/material/components/tab-switch.js +148 -0
  16. data/app/assets/javascripts/material/components/util.js +133 -0
  17. data/app/assets/javascripts/material/initializers/picker.js +171 -0
  18. data/app/assets/javascripts/material/initializers/textarea-autosize.js +10 -0
  19. data/app/assets/javascripts/material/initializers/waves.js +13 -0
  20. data/app/assets/stylesheets/material/_colours.scss +324 -0
  21. data/app/assets/stylesheets/material/_functions.scss +65 -0
  22. data/app/assets/stylesheets/material/_mixins.scss +23 -23
  23. data/app/assets/stylesheets/material/_print.scss +102 -0
  24. data/app/assets/stylesheets/material/_utilities.scss +21 -17
  25. data/app/assets/stylesheets/material/_variables.scss +13 -42
  26. data/app/assets/stylesheets/material/base/_base.scss +420 -5
  27. data/app/assets/stylesheets/material/base/_grid.scss +34 -33
  28. data/app/assets/stylesheets/material/base/_typography.scss +165 -174
  29. data/app/assets/stylesheets/material/bootstrap/_alert.scss +32 -39
  30. data/app/assets/stylesheets/material/bootstrap/_badge.scss +34 -0
  31. data/app/assets/stylesheets/material/bootstrap/_breadcrumb.scss +18 -18
  32. data/app/assets/stylesheets/material/bootstrap/_carousel.scss +127 -142
  33. data/app/assets/stylesheets/material/bootstrap/_close.scss +18 -19
  34. data/app/assets/stylesheets/material/bootstrap/_code.scss +10 -7
  35. data/app/assets/stylesheets/material/bootstrap/_custom-form.scss +50 -56
  36. data/app/assets/stylesheets/material/bootstrap/_form.scss +159 -129
  37. data/app/assets/stylesheets/material/bootstrap/_image.scss +19 -16
  38. data/app/assets/stylesheets/material/bootstrap/_jumbotron.scss +10 -7
  39. data/app/assets/stylesheets/material/bootstrap/_nav.scss +71 -69
  40. data/app/assets/stylesheets/material/bootstrap/_pagination.scss +34 -26
  41. data/app/assets/stylesheets/material/bootstrap/_popover.scss +26 -59
  42. data/app/assets/stylesheets/material/bootstrap/_responsive-embed.scss +4 -4
  43. data/app/assets/stylesheets/material/bootstrap/_transition.scss +10 -8
  44. data/app/assets/stylesheets/material/material.scss +75 -62
  45. data/app/assets/stylesheets/material/material/_button-flat.scss +26 -39
  46. data/app/assets/stylesheets/material/material/_button-float.scss +10 -14
  47. data/app/assets/stylesheets/material/material/_button-group.scss +268 -0
  48. data/app/assets/stylesheets/material/material/_button.scss +133 -189
  49. data/app/assets/stylesheets/material/material/_card.scss +300 -248
  50. data/app/assets/stylesheets/material/material/_chip.scss +65 -64
  51. data/app/assets/stylesheets/material/material/_data-table.scss +135 -45
  52. data/app/assets/stylesheets/material/material/_dialog.scss +141 -110
  53. data/app/assets/stylesheets/material/material/_expansion-panel.scss +86 -119
  54. data/app/assets/stylesheets/material/material/_menu.scss +308 -228
  55. data/app/assets/stylesheets/material/material/_navdrawer.scss +239 -234
  56. data/app/assets/stylesheets/material/material/_picker.scss +157 -155
  57. data/app/assets/stylesheets/material/material/_progress-circular.scss +80 -80
  58. data/app/assets/stylesheets/material/material/_progress.scss +180 -115
  59. data/app/assets/stylesheets/material/material/_selection-control.scss +132 -139
  60. data/app/assets/stylesheets/material/material/_stepper.scss +94 -93
  61. data/app/assets/stylesheets/material/material/_tab.scss +74 -93
  62. data/app/assets/stylesheets/material/material/_text-field-floating-label.scss +29 -20
  63. data/app/assets/stylesheets/material/material/_text-field-input-group.scss +94 -24
  64. data/app/assets/stylesheets/material/material/_text-field-textarea.scss +13 -26
  65. data/app/assets/stylesheets/material/material/_text-field.scss +127 -118
  66. data/app/assets/stylesheets/material/material/_toolbar.scss +308 -313
  67. data/app/assets/stylesheets/material/material/_tooltip.scss +23 -62
  68. data/app/assets/stylesheets/material/mixins/_background-variant.scss +6 -6
  69. data/app/assets/stylesheets/material/mixins/_border-radius.scss +17 -17
  70. data/app/assets/stylesheets/material/mixins/_breakpoint.scss +32 -2
  71. data/app/assets/stylesheets/material/mixins/_clearfix.scss +1 -1
  72. data/app/assets/stylesheets/material/mixins/_form.scss +62 -25
  73. data/app/assets/stylesheets/material/mixins/_grid-framework.scss +8 -16
  74. data/app/assets/stylesheets/material/mixins/_grid.scss +40 -64
  75. data/app/assets/stylesheets/material/mixins/_material-icons.scss +36 -0
  76. data/app/assets/stylesheets/material/mixins/_nav-divider.scss +1 -1
  77. data/app/assets/stylesheets/material/mixins/_reset-text.scss +2 -21
  78. data/app/assets/stylesheets/material/mixins/_screenreader.scss +14 -12
  79. data/app/assets/stylesheets/material/mixins/_text-alignment.scss +23 -0
  80. data/app/assets/stylesheets/material/mixins/_text-emphasis.scss +6 -6
  81. data/app/assets/stylesheets/material/mixins/_transition.scss +42 -10
  82. data/app/assets/stylesheets/material/utilities/_background.scss +18 -18
  83. data/app/assets/stylesheets/material/utilities/_border.scss +88 -41
  84. data/app/assets/stylesheets/material/utilities/_display.scss +63 -30
  85. data/app/assets/stylesheets/material/utilities/_flex.scss +139 -134
  86. data/app/assets/stylesheets/material/utilities/_material-icons.scss +3 -5
  87. data/app/assets/stylesheets/material/utilities/_position.scss +19 -22
  88. data/app/assets/stylesheets/material/utilities/_sizing.scss +11 -12
  89. data/app/assets/stylesheets/material/utilities/_spacing.scss +51 -56
  90. data/app/assets/stylesheets/material/utilities/_text.scss +80 -75
  91. data/app/assets/stylesheets/material/utilities/_visibility.scss +5 -46
  92. data/app/assets/stylesheets/material/utilities/_waves.scss +11 -18
  93. data/app/assets/stylesheets/material/variables/_elevation-shadow.scss +89 -82
  94. data/app/assets/stylesheets/material/variables/_grid.scss +29 -26
  95. data/app/assets/stylesheets/material/variables/_palette.scss +45 -0
  96. data/app/assets/stylesheets/material/variables/_spacer.scss +34 -88
  97. data/app/assets/stylesheets/material/variables/_transition.scss +29 -0
  98. data/app/assets/stylesheets/material/variables/_typography.scss +88 -74
  99. data/app/assets/stylesheets/material/variables/_variable-bootstrap.scss +196 -133
  100. data/app/assets/stylesheets/material/variables/_variable-material.scss +481 -429
  101. data/lib/material-sass/version.rb +1 -1
  102. data/material-sass.gemspec +3 -3
  103. metadata +26 -21
  104. data/app/assets/javascripts/material/addons-materialise/pickadate.js +0 -139
  105. data/app/assets/javascripts/material/addons-materialise/textarea-autosize.js +0 -11
  106. data/app/assets/javascripts/material/addons-materialise/wave.js +0 -15
  107. data/app/assets/javascripts/material/addons/pickadate.js +0 -7
  108. data/app/assets/javascripts/material/addons/wave.js +0 -5
  109. data/app/assets/javascripts/material/src/floating-label.js +0 -91
  110. data/app/assets/javascripts/material/src/navdrawer.js +0 -352
  111. data/app/assets/javascripts/material/src/tab-switch.js +0 -133
  112. data/app/assets/javascripts/material/src/util.js +0 -138
  113. data/app/assets/stylesheets/material/base/_normalize.scss +0 -253
  114. data/app/assets/stylesheets/material/base/_reboot.scss +0 -239
  115. data/app/assets/stylesheets/material/bootstrap/_button-group.scss +0 -134
  116. data/app/assets/stylesheets/material/mixins/_tab-focus.scss +0 -5
  117. data/app/assets/stylesheets/material/mixins/_transform.scss +0 -9
  118. data/app/assets/stylesheets/material/variables/_animation.scss +0 -22
  119. data/app/assets/stylesheets/material/variables/_colour.scss +0 -389
@@ -6,30 +6,32 @@
6
6
  }
7
7
  }
8
8
 
9
- // specific cases for .collapse.show
10
- tbody.collapse.show {
9
+ tbody {
10
+ &.collapse.show {
11
11
  display: table-row-group;
12
12
  }
13
+ }
13
14
 
14
- tr.collapse.show {
15
+ tr {
16
+ &.collapse.show {
15
17
  display: table-row;
16
18
  }
19
+ }
17
20
 
18
21
  .collapsing {
22
+ @include transition-standard(height);
23
+
19
24
  height: 0;
20
25
  overflow: hidden;
21
26
  position: relative;
22
- @include transition-standard(height);
23
27
  }
24
28
 
25
29
  .fade {
30
+ @include transition-standard(opacity);
31
+
26
32
  opacity: 0;
27
- transform: scale(0.87);
28
- @include transition-acceleration(opacity, transform);
29
33
 
30
34
  &.show {
31
35
  opacity: 1;
32
- transform: scale(1);
33
- @include transition-deceleration(opacity, transform);
34
36
  }
35
37
  }
@@ -1,62 +1,75 @@
1
- @import "mixins";
2
- @import "variables";
3
-
4
- //
5
- // base css
6
- //
7
- @import "base/base";
8
- @import "base/grid";
9
- @import "base/typography";
10
-
11
- //
12
- // bootstrap components
13
- // components covered in bootstrap's (v4.0.0-alpha.6) css but not in material design guidelines
14
- //
15
- @import "bootstrap/alert";
16
- @import "bootstrap/breadcrumb";
17
- @import "bootstrap/button-group";
18
- @import "bootstrap/carousel";
19
- @import "bootstrap/close";
20
- @import "bootstrap/code";
21
- @import "bootstrap/custom-form";
22
- @import "bootstrap/form";
23
- @import "bootstrap/image";
24
- @import "bootstrap/jumbotron";
25
- @import "bootstrap/media";
26
- @import "bootstrap/nav";
27
- @import "bootstrap/pagination";
28
- @import "bootstrap/popover";
29
- @import "bootstrap/responsive-embed";
30
- @import "bootstrap/transition";
31
-
32
- //
33
- // material components
34
- // components covered in material design guidelines https://material.google.com/components
35
- //
36
- @import "material/button";
37
- @import "material/button-flat";
38
- @import "material/button-float";
39
- @import "material/card";
40
- @import "material/chip";
41
- @import "material/data-table";
42
- @import "material/dialog";
43
- @import "material/expansion-panel";
44
- @import "material/menu";
45
- @import "material/navdrawer";
46
- @import "material/picker";
47
- @import "material/progress";
48
- @import "material/progress-circular";
49
- @import "material/selection-control";
50
- @import "material/stepper";
51
- @import "material/tab";
52
- @import "material/text-field";
53
- @import "material/text-field-floating-label";
54
- @import "material/text-field-input-group";
55
- @import "material/text-field-textarea";
56
- @import "material/toolbar";
57
- @import "material/tooltip";
58
-
59
- //
60
- // utilities
61
- //
62
- @import "utilities";
1
+ @import 'colours';
2
+ @import 'functions';
3
+ @import 'mixins';
4
+ @import 'variables';
5
+
6
+
7
+
8
+ // Base CSS
9
+
10
+ @import 'base/base';
11
+ @import 'base/grid';
12
+ @import 'base/typography';
13
+
14
+
15
+
16
+ // Bootstrap components
17
+ // Components covered in Bootstrap's css but not in Material design
18
+
19
+ @import 'bootstrap/alert';
20
+ @import 'bootstrap/badge';
21
+ @import 'bootstrap/breadcrumb';
22
+ @import 'bootstrap/carousel';
23
+ @import 'bootstrap/close';
24
+ @import 'bootstrap/code';
25
+ @import 'bootstrap/custom-form';
26
+ @import 'bootstrap/form';
27
+ @import 'bootstrap/image';
28
+ @import 'bootstrap/jumbotron';
29
+ @import 'bootstrap/media';
30
+ @import 'bootstrap/nav';
31
+ @import 'bootstrap/pagination';
32
+ @import 'bootstrap/popover';
33
+ @import 'bootstrap/responsive-embed';
34
+ @import 'bootstrap/transition';
35
+
36
+
37
+
38
+ // Material components
39
+ // Components covered in Material design (https://material.google.com/components)
40
+
41
+ @import 'material/button';
42
+ @import 'material/button-flat';
43
+ @import 'material/button-float';
44
+ @import 'material/button-group';
45
+ @import 'material/card';
46
+ @import 'material/chip';
47
+ @import 'material/data-table';
48
+ @import 'material/dialog';
49
+ @import 'material/expansion-panel';
50
+ @import 'material/menu';
51
+ @import 'material/navdrawer';
52
+ @import 'material/picker';
53
+ @import 'material/progress';
54
+ @import 'material/progress-circular';
55
+ @import 'material/selection-control';
56
+ @import 'material/stepper';
57
+ @import 'material/tab';
58
+ @import 'material/text-field';
59
+ @import 'material/text-field-floating-label';
60
+ @import 'material/text-field-input-group';
61
+ @import 'material/text-field-textarea';
62
+ @import 'material/toolbar';
63
+ @import 'material/tooltip';
64
+
65
+
66
+
67
+ // Utilities
68
+
69
+ @import 'utilities';
70
+
71
+
72
+
73
+ // Very basic print styles
74
+
75
+ @import 'print';
@@ -1,53 +1,40 @@
1
- [class*="btn-flat"],
2
- [class*="btn-outline"] {
1
+ [class*='btn-outline'] {
3
2
  background-color: transparent;
4
3
  box-shadow: none;
5
4
 
6
- // active, focus, hover
7
- &:active,
8
- &.active {
9
- background-color: $btn-bg-active;
10
- box-shadow: none;
11
- }
5
+ &:active,
6
+ &.active {
7
+ box-shadow: none;
8
+ }
12
9
 
13
- // disabled
14
- &:disabled,
15
- &.disabled {
16
- background-color: transparent;
17
- }
10
+ &:disabled,
11
+ &.disabled {
12
+ background-color: transparent;
13
+ }
18
14
  }
19
15
 
20
- // colour
21
- .btn-flat-inverse,
22
- .btn-outline-inverse {
16
+ // Colour
17
+ @each $color, $values in $theme-colors {
18
+ .btn-outline-#{$color} {
23
19
  @include plain-active-focus-hover {
24
- color: $btn-color-inverse;
20
+ color: map-get(theme-color($color), color);
25
21
  }
26
22
 
27
- &::before {
28
- background-color: $btn-flat-focus-overlay-inverse;
23
+ &:disabled,
24
+ &.disabled {
25
+ color: $btn-color-disabled;
29
26
  }
30
-
31
- // active, focus, hover
32
- &:active,
33
- &.active {
34
- background-color: $btn-bg-inverse-active;
35
- }
36
-
37
- // disabled
38
- &:disabled,
39
- &.disabled {
40
- color: $btn-color-inverse-disabled;
41
- }
42
27
  }
28
+ }
43
29
 
44
- @each $color in $palettes {
45
- $i: index($palettes, $color);
30
+ [class*='bg-dark'] [class*='btn-outline'],
31
+ .btn-outline-light {
32
+ @include focus-hover {
33
+ background-image: linear-gradient(to bottom, $btn-overlay-inverse, $btn-overlay-inverse);
34
+ }
46
35
 
47
- .btn-flat-#{$color},
48
- .btn-outline-#{$color} {
49
- @include plain-active-focus-hover {
50
- color: nth($palettes-color, $i);
51
- }
52
- }
36
+ &:active,
37
+ &.active {
38
+ background-color: $btn-bg-active-inverse;
53
39
  }
40
+ }
@@ -3,27 +3,23 @@
3
3
  box-shadow: map-get($btn-float-elevation-shadow, shadow);
4
4
  height: $btn-float-size;
5
5
  line-height: $btn-float-size;
6
- padding: 0;
7
- position: relative;
8
6
  min-width: 0;
7
+ padding: 0;
9
8
  width: $btn-float-size;
10
- z-index: map-get($btn-float-elevation-shadow, elevation);
11
9
 
12
- &::before {
13
- border-radius: 50%;
10
+ &:active,
11
+ &.active {
12
+ box-shadow: map-get($btn-float-elevation-shadow-active, shadow);
14
13
  }
15
14
 
16
- // active, focus, hover
17
- &:active,
18
- &.active {
19
- box-shadow: map-get($btn-float-elevation-shadow-active, shadow);
20
- z-index: map-get($btn-float-elevation-shadow-active, elevation);
21
- }
22
- }
15
+ &:disabled,
16
+ &.disabled {
17
+ box-shadow: none;
18
+ }
23
19
 
24
- // size
25
- .btn-float.btn-sm {
20
+ &.btn-sm {
26
21
  height: $btn-float-size-sm;
27
22
  line-height: $btn-float-size-sm;
28
23
  width: $btn-float-size-sm;
29
24
  }
25
+ }
@@ -0,0 +1,268 @@
1
+ .btn-group,
2
+ .btn-group-vertical {
3
+ @include border-radius($btn-border-radius);
4
+
5
+ background-color: $btn-group-bg;
6
+ box-shadow: map-get($btn-elevation-shadow, shadow);
7
+ display: inline-flex;
8
+ position: relative;
9
+ vertical-align: middle;
10
+
11
+ > .btn {
12
+ @include transition-standard(border-color, opacity);
13
+
14
+ box-shadow: none;
15
+ flex: 0 1 auto;
16
+ min-width: 0;
17
+
18
+ &:active,
19
+ &.active {
20
+ box-shadow: none;
21
+ }
22
+
23
+ &:disabled,
24
+ &.disabled {
25
+ opacity: $btn-group-toggle-opacity;
26
+ }
27
+
28
+ &[class*='btn-outline'] {
29
+ opacity: $btn-group-toggle-opacity;
30
+
31
+ &:active,
32
+ &.active {
33
+ opacity: 1;
34
+ }
35
+
36
+ &:disabled,
37
+ &.disabled {
38
+ opacity: 1;
39
+ }
40
+ }
41
+ }
42
+
43
+ // Colour
44
+ @each $color, $values in $theme-colors {
45
+ > .btn-#{$color} {
46
+ &:disabled,
47
+ &.disabled {
48
+ @include color-yiq(map-get(theme-color($color), lighter));
49
+
50
+ background-color: map-get(theme-color($color), lighter);
51
+ }
52
+ }
53
+ }
54
+
55
+ > .btn-group,
56
+ > .btn-group-vertical {
57
+ box-shadow: none;
58
+ }
59
+ }
60
+
61
+ .btn-group {
62
+ &.show > .btn.dropdown-toggle {
63
+ box-shadow: none;
64
+ }
65
+
66
+ // Border colour
67
+ > .btn {
68
+ border-left: $btn-group-inner-spacer-x solid transparent;
69
+ margin-left: ($btn-group-inner-spacer-x * -1);
70
+
71
+ &:disabled,
72
+ &.disabled {
73
+ + .btn:disabled,
74
+ + .btn.disabled,
75
+ + .btn-group > .btn:disabled:first-child,
76
+ + .btn-group > .btn.disabled:first-child {
77
+ border-left-color: $btn-group-divider-bg;
78
+ }
79
+ }
80
+
81
+ &.active {
82
+ + .btn.active,
83
+ + .btn-group > .btn.active:first-child {
84
+ border-left-color: $btn-group-divider-bg;
85
+ }
86
+ }
87
+ }
88
+
89
+ > .btn:first-child {
90
+ border-left-width: 0;
91
+ margin-left: 0;
92
+ }
93
+
94
+ > .btn-group > .btn:first-child {
95
+ border-left-width: $btn-group-inner-spacer-x;
96
+ margin-left: ($btn-group-inner-spacer-x * -1);
97
+ }
98
+
99
+ // Border radius
100
+ > .btn:first-child:not(:last-child):not(.dropdown-toggle) {
101
+ @include border-right-radius(0);
102
+ }
103
+
104
+ > .btn:last-child:not(:first-child),
105
+ > .dropdown-toggle:not(:first-child) {
106
+ @include border-left-radius(0);
107
+ }
108
+
109
+ > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
110
+ border-radius: 0;
111
+ }
112
+
113
+ > .btn-group:first-child:not(:last-child) {
114
+ > .btn:last-child,
115
+ > .dropdown-toggle {
116
+ @include border-right-radius(0);
117
+ }
118
+ }
119
+
120
+ > .btn-group:last-child:not(:first-child) > .btn:first-child {
121
+ @include border-left-radius(0);
122
+ }
123
+
124
+ > .btn-group:not(:first-child):not(:last-child) > .btn {
125
+ border-radius: 0;
126
+ }
127
+ }
128
+
129
+ .btn-group-vertical {
130
+ align-items: flex-start;
131
+ flex-direction: column;
132
+ justify-content: center;
133
+
134
+ > .btn,
135
+ > .btn-group {
136
+ width: 100%;
137
+ }
138
+
139
+ // Border colour
140
+ > .btn {
141
+ border-top: $btn-group-inner-spacer-x solid transparent;
142
+ margin-top: ($btn-group-inner-spacer-x * -1);
143
+
144
+ &:disabled,
145
+ &.disabled {
146
+ + .btn:disabled,
147
+ + .btn.disabled,
148
+ + .btn-group > .btn:disabled:first-child,
149
+ + .btn-group > .btn.disabled:first-child {
150
+ border-top-color: $btn-group-divider-bg;
151
+ }
152
+ }
153
+
154
+ &.active {
155
+ + .btn.active,
156
+ + .btn-group > .btn.active:first-child {
157
+ border-top-color: $btn-group-divider-bg;
158
+ }
159
+ }
160
+ }
161
+
162
+ > .btn:first-child {
163
+ border-top-width: 0;
164
+ margin-top: 0;
165
+ }
166
+
167
+ > .btn-group-vertical > .btn:first-child {
168
+ border-top-width: $btn-group-inner-spacer-x;
169
+ margin-top: ($btn-group-inner-spacer-x * -1);
170
+ }
171
+
172
+ // Border radius
173
+ > .btn:first-child:not(:last-child) {
174
+ @include border-bottom-radius(0);
175
+ }
176
+
177
+ > .btn:last-child:not(:first-child) {
178
+ @include border-top-radius(0);
179
+ }
180
+
181
+ > .btn:not(:first-child):not(:last-child) {
182
+ border-radius: 0;
183
+ }
184
+
185
+ > .btn-group:first-child:not(:last-child) {
186
+ > .btn:last-child,
187
+ > .dropdown-toggle {
188
+ @include border-bottom-radius(0);
189
+ }
190
+ }
191
+
192
+ > .btn-group:last-child:not(:first-child) > .btn:first-child {
193
+ @include border-top-radius(0);
194
+ }
195
+
196
+ > .btn-group:not(:first-child):not(:last-child) > .btn {
197
+ border-radius: 0;
198
+ }
199
+ }
200
+
201
+ // Fluid
202
+ .btn-group-fluid {
203
+ background-color: transparent;
204
+ box-shadow: none;
205
+ }
206
+
207
+ // Size
208
+ .btn-group-lg > .btn {
209
+ @extend %btn-lg;
210
+ }
211
+
212
+ .btn-group-sm > .btn {
213
+ @extend %btn-sm;
214
+ }
215
+
216
+
217
+
218
+ // Checkbox and radio options
219
+
220
+ [data-toggle='buttons'] {
221
+ > .btn,
222
+ > .btn-group > .btn {
223
+ [type='checkbox'],
224
+ [type='radio'] {
225
+ clip: rect(0, 0, 0, 0);
226
+ pointer-events: none;
227
+ position: absolute;
228
+ }
229
+ }
230
+ }
231
+
232
+
233
+
234
+ // Split button dropdown
235
+
236
+ .btn + .dropdown-toggle-split {
237
+ padding-right: ($btn-padding-x / 2);
238
+ padding-left: ($btn-padding-x / 2);
239
+
240
+ &::after {
241
+ margin-left: ($caret-spacer-x * -1);
242
+ }
243
+ }
244
+
245
+ // Size
246
+ .btn-lg + .dropdown-toggle-split {
247
+ padding-right: ($btn-padding-x-lg / 2);
248
+ padding-left: ($btn-padding-x-lg / 2);
249
+ }
250
+
251
+ .btn-sm + .dropdown-toggle-split {
252
+ padding-right: ($btn-padding-x-sm / 2);
253
+ padding-left: ($btn-padding-x-sm / 2);
254
+ }
255
+
256
+
257
+
258
+ // Toolbar
259
+
260
+ .btn-toolbar {
261
+ display: flex;
262
+ flex-wrap: wrap;
263
+ justify-content: flex-start;
264
+
265
+ .input-group {
266
+ width: auto;
267
+ }
268
+ }