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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +36 -8
- data/Rakefile +16 -3
- data/app/assets/javascripts/material-sprockets.js +6 -1
- data/app/assets/javascripts/material.js +654 -417
- data/app/assets/javascripts/material.min.js +1 -0
- data/app/assets/javascripts/material/addons/picker.date.js +234 -0
- data/app/assets/javascripts/material/addons/picker.js +172 -0
- data/app/assets/javascripts/material/addons/textarea-autosize.js +20 -2
- data/app/assets/javascripts/material/addons/waves.js +127 -0
- data/app/assets/javascripts/material/components/floating-label.js +92 -0
- data/app/assets/javascripts/material/components/navdrawer.js +353 -0
- data/app/assets/javascripts/material/components/selection-control-focus.js +47 -0
- data/app/assets/javascripts/material/components/tab-switch.js +148 -0
- data/app/assets/javascripts/material/components/util.js +133 -0
- data/app/assets/javascripts/material/initializers/picker.js +171 -0
- data/app/assets/javascripts/material/initializers/textarea-autosize.js +10 -0
- data/app/assets/javascripts/material/initializers/waves.js +13 -0
- data/app/assets/stylesheets/material/_colours.scss +324 -0
- data/app/assets/stylesheets/material/_functions.scss +65 -0
- data/app/assets/stylesheets/material/_mixins.scss +23 -23
- data/app/assets/stylesheets/material/_print.scss +102 -0
- data/app/assets/stylesheets/material/_utilities.scss +21 -17
- data/app/assets/stylesheets/material/_variables.scss +13 -42
- data/app/assets/stylesheets/material/base/_base.scss +420 -5
- data/app/assets/stylesheets/material/base/_grid.scss +34 -33
- data/app/assets/stylesheets/material/base/_typography.scss +165 -174
- data/app/assets/stylesheets/material/bootstrap/_alert.scss +32 -39
- data/app/assets/stylesheets/material/bootstrap/_badge.scss +34 -0
- data/app/assets/stylesheets/material/bootstrap/_breadcrumb.scss +18 -18
- data/app/assets/stylesheets/material/bootstrap/_carousel.scss +127 -142
- data/app/assets/stylesheets/material/bootstrap/_close.scss +18 -19
- data/app/assets/stylesheets/material/bootstrap/_code.scss +10 -7
- data/app/assets/stylesheets/material/bootstrap/_custom-form.scss +50 -56
- data/app/assets/stylesheets/material/bootstrap/_form.scss +159 -129
- data/app/assets/stylesheets/material/bootstrap/_image.scss +19 -16
- data/app/assets/stylesheets/material/bootstrap/_jumbotron.scss +10 -7
- data/app/assets/stylesheets/material/bootstrap/_nav.scss +71 -69
- data/app/assets/stylesheets/material/bootstrap/_pagination.scss +34 -26
- data/app/assets/stylesheets/material/bootstrap/_popover.scss +26 -59
- data/app/assets/stylesheets/material/bootstrap/_responsive-embed.scss +4 -4
- data/app/assets/stylesheets/material/bootstrap/_transition.scss +10 -8
- data/app/assets/stylesheets/material/material.scss +75 -62
- data/app/assets/stylesheets/material/material/_button-flat.scss +26 -39
- data/app/assets/stylesheets/material/material/_button-float.scss +10 -14
- data/app/assets/stylesheets/material/material/_button-group.scss +268 -0
- data/app/assets/stylesheets/material/material/_button.scss +133 -189
- data/app/assets/stylesheets/material/material/_card.scss +300 -248
- data/app/assets/stylesheets/material/material/_chip.scss +65 -64
- data/app/assets/stylesheets/material/material/_data-table.scss +135 -45
- data/app/assets/stylesheets/material/material/_dialog.scss +141 -110
- data/app/assets/stylesheets/material/material/_expansion-panel.scss +86 -119
- data/app/assets/stylesheets/material/material/_menu.scss +308 -228
- data/app/assets/stylesheets/material/material/_navdrawer.scss +239 -234
- data/app/assets/stylesheets/material/material/_picker.scss +157 -155
- data/app/assets/stylesheets/material/material/_progress-circular.scss +80 -80
- data/app/assets/stylesheets/material/material/_progress.scss +180 -115
- data/app/assets/stylesheets/material/material/_selection-control.scss +132 -139
- data/app/assets/stylesheets/material/material/_stepper.scss +94 -93
- data/app/assets/stylesheets/material/material/_tab.scss +74 -93
- data/app/assets/stylesheets/material/material/_text-field-floating-label.scss +29 -20
- data/app/assets/stylesheets/material/material/_text-field-input-group.scss +94 -24
- data/app/assets/stylesheets/material/material/_text-field-textarea.scss +13 -26
- data/app/assets/stylesheets/material/material/_text-field.scss +127 -118
- data/app/assets/stylesheets/material/material/_toolbar.scss +308 -313
- data/app/assets/stylesheets/material/material/_tooltip.scss +23 -62
- data/app/assets/stylesheets/material/mixins/_background-variant.scss +6 -6
- data/app/assets/stylesheets/material/mixins/_border-radius.scss +17 -17
- data/app/assets/stylesheets/material/mixins/_breakpoint.scss +32 -2
- data/app/assets/stylesheets/material/mixins/_clearfix.scss +1 -1
- data/app/assets/stylesheets/material/mixins/_form.scss +62 -25
- data/app/assets/stylesheets/material/mixins/_grid-framework.scss +8 -16
- data/app/assets/stylesheets/material/mixins/_grid.scss +40 -64
- data/app/assets/stylesheets/material/mixins/_material-icons.scss +36 -0
- data/app/assets/stylesheets/material/mixins/_nav-divider.scss +1 -1
- data/app/assets/stylesheets/material/mixins/_reset-text.scss +2 -21
- data/app/assets/stylesheets/material/mixins/_screenreader.scss +14 -12
- data/app/assets/stylesheets/material/mixins/_text-alignment.scss +23 -0
- data/app/assets/stylesheets/material/mixins/_text-emphasis.scss +6 -6
- data/app/assets/stylesheets/material/mixins/_transition.scss +42 -10
- data/app/assets/stylesheets/material/utilities/_background.scss +18 -18
- data/app/assets/stylesheets/material/utilities/_border.scss +88 -41
- data/app/assets/stylesheets/material/utilities/_display.scss +63 -30
- data/app/assets/stylesheets/material/utilities/_flex.scss +139 -134
- data/app/assets/stylesheets/material/utilities/_material-icons.scss +3 -5
- data/app/assets/stylesheets/material/utilities/_position.scss +19 -22
- data/app/assets/stylesheets/material/utilities/_sizing.scss +11 -12
- data/app/assets/stylesheets/material/utilities/_spacing.scss +51 -56
- data/app/assets/stylesheets/material/utilities/_text.scss +80 -75
- data/app/assets/stylesheets/material/utilities/_visibility.scss +5 -46
- data/app/assets/stylesheets/material/utilities/_waves.scss +11 -18
- data/app/assets/stylesheets/material/variables/_elevation-shadow.scss +89 -82
- data/app/assets/stylesheets/material/variables/_grid.scss +29 -26
- data/app/assets/stylesheets/material/variables/_palette.scss +45 -0
- data/app/assets/stylesheets/material/variables/_spacer.scss +34 -88
- data/app/assets/stylesheets/material/variables/_transition.scss +29 -0
- data/app/assets/stylesheets/material/variables/_typography.scss +88 -74
- data/app/assets/stylesheets/material/variables/_variable-bootstrap.scss +196 -133
- data/app/assets/stylesheets/material/variables/_variable-material.scss +481 -429
- data/lib/material-sass/version.rb +1 -1
- data/material-sass.gemspec +3 -3
- metadata +26 -21
- data/app/assets/javascripts/material/addons-materialise/pickadate.js +0 -139
- data/app/assets/javascripts/material/addons-materialise/textarea-autosize.js +0 -11
- data/app/assets/javascripts/material/addons-materialise/wave.js +0 -15
- data/app/assets/javascripts/material/addons/pickadate.js +0 -7
- data/app/assets/javascripts/material/addons/wave.js +0 -5
- data/app/assets/javascripts/material/src/floating-label.js +0 -91
- data/app/assets/javascripts/material/src/navdrawer.js +0 -352
- data/app/assets/javascripts/material/src/tab-switch.js +0 -133
- data/app/assets/javascripts/material/src/util.js +0 -138
- data/app/assets/stylesheets/material/base/_normalize.scss +0 -253
- data/app/assets/stylesheets/material/base/_reboot.scss +0 -239
- data/app/assets/stylesheets/material/bootstrap/_button-group.scss +0 -134
- data/app/assets/stylesheets/material/mixins/_tab-focus.scss +0 -5
- data/app/assets/stylesheets/material/mixins/_transform.scss +0 -9
- data/app/assets/stylesheets/material/variables/_animation.scss +0 -22
- data/app/assets/stylesheets/material/variables/_colour.scss +0 -389
@@ -6,30 +6,32 @@
|
|
6
6
|
}
|
7
7
|
}
|
8
8
|
|
9
|
-
|
10
|
-
|
9
|
+
tbody {
|
10
|
+
&.collapse.show {
|
11
11
|
display: table-row-group;
|
12
12
|
}
|
13
|
+
}
|
13
14
|
|
14
|
-
|
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
|
2
|
-
@import
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
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*=
|
2
|
-
[class*="btn-outline"] {
|
1
|
+
[class*='btn-outline'] {
|
3
2
|
background-color: transparent;
|
4
3
|
box-shadow: none;
|
5
4
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
box-shadow: none;
|
11
|
-
}
|
5
|
+
&:active,
|
6
|
+
&.active {
|
7
|
+
box-shadow: none;
|
8
|
+
}
|
12
9
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
}
|
10
|
+
&:disabled,
|
11
|
+
&.disabled {
|
12
|
+
background-color: transparent;
|
13
|
+
}
|
18
14
|
}
|
19
15
|
|
20
|
-
//
|
21
|
-
|
22
|
-
.btn-outline
|
16
|
+
// Colour
|
17
|
+
@each $color, $values in $theme-colors {
|
18
|
+
.btn-outline-#{$color} {
|
23
19
|
@include plain-active-focus-hover {
|
24
|
-
color:
|
20
|
+
color: map-get(theme-color($color), color);
|
25
21
|
}
|
26
22
|
|
27
|
-
|
28
|
-
|
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
|
-
|
45
|
-
|
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
|
-
|
48
|
-
|
49
|
-
|
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
|
-
|
13
|
-
|
10
|
+
&:active,
|
11
|
+
&.active {
|
12
|
+
box-shadow: map-get($btn-float-elevation-shadow-active, shadow);
|
14
13
|
}
|
15
14
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
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
|
-
|
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
|
+
}
|