material-sass 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +2 -0
- data/app/assets/fonts/MaterialDesignIcon.eot +0 -0
- data/app/assets/fonts/MaterialDesignIcon.svg +772 -766
- data/app/assets/fonts/MaterialDesignIcon.ttf +0 -0
- data/app/assets/fonts/MaterialDesignIcon.woff +0 -0
- data/app/assets/javascripts/material.js +326 -128
- data/app/assets/javascripts/material/_.js +5 -9
- data/app/assets/javascripts/material/bootstrap.js +3 -0
- data/app/assets/javascripts/material/content.js +15 -14
- data/app/assets/javascripts/material/datepicker.js +1 -1
- data/app/assets/javascripts/material/dropdown.js +25 -9
- data/app/assets/javascripts/material/esc.js +1 -1
- data/app/assets/javascripts/material/footer.js +3 -1
- data/app/assets/javascripts/material/form-adv.js +1 -2
- data/app/assets/javascripts/material/get-target.js +8 -0
- data/app/assets/javascripts/material/header.js +37 -7
- data/app/assets/javascripts/material/menu.js +47 -12
- data/app/assets/javascripts/material/modal.js +10 -0
- data/app/assets/javascripts/material/sortable.js +1 -2
- data/app/assets/javascripts/material/tab.js +1 -1
- data/app/assets/javascripts/material/tile.js +57 -14
- data/app/assets/javascripts/material/toast.js +53 -42
- data/app/assets/javascripts/material/wave.js +7 -0
- data/app/assets/javascripts/material/webfont.js +33 -0
- data/app/assets/javascripts/material/winresize.js +19 -4
- data/app/assets/stylesheets/material/_code.scss +40 -43
- data/app/assets/stylesheets/material/_grid.scss +72 -74
- data/app/assets/stylesheets/material/_print.scss +83 -0
- data/app/assets/stylesheets/material/_reset.scss +104 -84
- data/app/assets/stylesheets/material/_utilities-responsive.scss +97 -0
- data/app/assets/stylesheets/material/{_utilitise.scss → _utilities.scss} +87 -29
- data/app/assets/stylesheets/material/_variable.scss +78 -77
- data/app/assets/stylesheets/material/addon/_material-design-icon.scss +6 -3050
- data/app/assets/stylesheets/material/addon/_waves.scss +51 -0
- data/app/assets/stylesheets/material/addon/material-design-icon/_core.scss +17 -0
- data/app/assets/stylesheets/material/addon/material-design-icon/_icons.scss +773 -0
- data/app/assets/stylesheets/material/addon/material-design-icon/_path.scss +10 -0
- data/app/assets/stylesheets/material/addon/material-design-icon/_variables.scss +777 -0
- data/app/assets/stylesheets/material/base.scss +43 -10
- data/app/assets/stylesheets/material/element/_avatar.scss +23 -19
- data/app/assets/stylesheets/material/element/_breadcrumb.scss +27 -0
- data/app/assets/stylesheets/material/element/_button-float.scss +118 -48
- data/app/assets/stylesheets/material/element/_button.scss +56 -68
- data/app/assets/stylesheets/material/element/_card.scss +104 -50
- data/app/assets/stylesheets/material/element/_dropdown.scss +51 -32
- data/app/assets/stylesheets/material/element/_form-adv-checkbox.scss +123 -0
- data/app/assets/stylesheets/material/element/_form-adv-datepicker.scss +250 -227
- data/app/assets/stylesheets/material/element/_form-adv-label.scss +64 -0
- data/app/assets/stylesheets/material/element/_form-adv-switch.scss +76 -0
- data/app/assets/stylesheets/material/element/_form-adv-textarea.scss +4 -0
- data/app/assets/stylesheets/material/element/_form.scss +163 -126
- data/app/assets/stylesheets/material/element/_label.scss +22 -0
- data/app/assets/stylesheets/material/element/_modal.scss +25 -10
- data/app/assets/stylesheets/material/element/_nav.scss +3 -0
- data/app/assets/stylesheets/material/element/_progress.scss +504 -0
- data/app/assets/stylesheets/material/element/_tab.scss +18 -14
- data/app/assets/stylesheets/material/element/_table.scss +14 -43
- data/app/assets/stylesheets/material/element/_tile.scss +154 -113
- data/app/assets/stylesheets/material/element/_toast.scss +31 -24
- data/app/assets/stylesheets/material/mixin/_css3.scss +5 -0
- data/app/assets/stylesheets/material/mixin/_grid.scss +28 -24
- data/app/assets/stylesheets/material/mixin/_responsive.scss +1 -1
- data/app/assets/stylesheets/material/mixin/{_utilitise.scss → _utilities.scss} +4 -3
- data/app/assets/stylesheets/material/project.scss +8 -2
- data/app/assets/stylesheets/material/theme/_content.scss +33 -38
- data/app/assets/stylesheets/material/theme/_footer.scss +1 -7
- data/app/assets/stylesheets/material/theme/_header.scss +175 -8
- data/app/assets/stylesheets/material/theme/_menu.scss +267 -78
- data/lib/material-sass/engine.rb +1 -1
- data/lib/material-sass/version.rb +1 -1
- metadata +33 -48
- data/app/assets/fonts/FontAwesome.otf +0 -0
- data/app/assets/fonts/fontawesome-webfont.eot +0 -0
- data/app/assets/fonts/fontawesome-webfont.svg +0 -565
- data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/app/assets/fonts/fontawesome-webfont.woff +0 -0
- data/app/assets/fonts/fontawesome-webfont.woff2 +0 -0
- data/app/assets/javascripts/material/btn.js +0 -11
- data/app/assets/stylesheets/material/_addon.scss +0 -2
- data/app/assets/stylesheets/material/_element.scss +0 -15
- data/app/assets/stylesheets/material/_mixin.scss +0 -4
- data/app/assets/stylesheets/material/_theme.scss +0 -4
- data/app/assets/stylesheets/material/_variable-color.scss +0 -6
- data/app/assets/stylesheets/material/addon/_font-awesome.scss +0 -18
- data/app/assets/stylesheets/material/addon/font-awesome/_animated.scss +0 -33
- data/app/assets/stylesheets/material/addon/font-awesome/_bordered-pulled.scss +0 -11
- data/app/assets/stylesheets/material/addon/font-awesome/_core.scss +0 -10
- data/app/assets/stylesheets/material/addon/font-awesome/_fixed-width.scss +0 -5
- data/app/assets/stylesheets/material/addon/font-awesome/_flipped-rotated.scss +0 -29
- data/app/assets/stylesheets/material/addon/font-awesome/_icon.scss +0 -593
- data/app/assets/stylesheets/material/addon/font-awesome/_icons.scss +0 -593
- data/app/assets/stylesheets/material/addon/font-awesome/_larger.scss +0 -22
- data/app/assets/stylesheets/material/addon/font-awesome/_list.scss +0 -21
- data/app/assets/stylesheets/material/addon/font-awesome/_mixins.scss +0 -25
- data/app/assets/stylesheets/material/addon/font-awesome/_path.scss +0 -12
- data/app/assets/stylesheets/material/addon/font-awesome/_stacked.scss +0 -29
- data/app/assets/stylesheets/material/addon/font-awesome/_variable.scss +0 -601
- data/app/assets/stylesheets/material/addon/font-awesome/_variables.scss +0 -602
- data/app/assets/stylesheets/material/element/_form-adv.scss +0 -277
@@ -1,16 +1,49 @@
|
|
1
|
-
|
2
|
-
@import "mixin";
|
3
|
-
@import "variable";
|
1
|
+
@charset "UTF-8";
|
4
2
|
|
5
|
-
|
3
|
+
@import "mixin/css3";
|
4
|
+
@import "mixin/grid";
|
5
|
+
@import "mixin/responsive";
|
6
|
+
@import "mixin/utilities";
|
7
|
+
|
8
|
+
@import "variable";
|
9
|
+
|
10
|
+
// css reset
|
6
11
|
@import "reset";
|
7
12
|
|
8
|
-
//
|
9
|
-
@import "addon";
|
13
|
+
// elements
|
14
|
+
@import "addon/material-design-icon";
|
15
|
+
@import "addon/waves";
|
16
|
+
|
10
17
|
@import "code";
|
11
18
|
@import "grid";
|
12
|
-
@import "
|
19
|
+
@import "print";
|
20
|
+
@import "utilities";
|
21
|
+
@import "utilities-responsive";
|
22
|
+
|
23
|
+
// theme elements
|
24
|
+
@import "element/avatar";
|
25
|
+
@import "element/breadcrumb";
|
26
|
+
@import "element/button";
|
27
|
+
@import "element/button-float";
|
28
|
+
@import "element/card";
|
29
|
+
@import "element/dropdown";
|
30
|
+
@import "element/form";
|
31
|
+
@import "element/form-adv-checkbox";
|
32
|
+
@import "element/form-adv-datepicker";
|
33
|
+
@import "element/form-adv-label";
|
34
|
+
@import "element/form-adv-switch";
|
35
|
+
@import "element/form-adv-textarea";
|
36
|
+
@import "element/label";
|
37
|
+
@import "element/modal";
|
38
|
+
@import "element/nav";
|
39
|
+
@import "element/progress";
|
40
|
+
@import "element/sortable";
|
41
|
+
@import "element/tab";
|
42
|
+
@import "element/table";
|
43
|
+
@import "element/tile";
|
44
|
+
@import "element/toast";
|
13
45
|
|
14
|
-
|
15
|
-
@import "
|
16
|
-
@import "theme";
|
46
|
+
@import "theme/content";
|
47
|
+
@import "theme/footer";
|
48
|
+
@import "theme/header";
|
49
|
+
@import "theme/menu";
|
@@ -11,24 +11,6 @@
|
|
11
11
|
&:hover {
|
12
12
|
text-decoration: none;
|
13
13
|
}
|
14
|
-
&.avatar-inline {
|
15
|
-
display: inline-block;
|
16
|
-
}
|
17
|
-
&.avatar-lg {
|
18
|
-
height: ($line-height * 4);
|
19
|
-
line-height: ($line-height * 4);
|
20
|
-
width: ($line-height * 4);
|
21
|
-
}
|
22
|
-
&.avatar-sm {
|
23
|
-
height: ($line-height * 1.5);
|
24
|
-
line-height: ($line-height * 1.5);
|
25
|
-
margin-top: ($line-height * -0.25);
|
26
|
-
margin-bottom: ($line-height * -0.25);
|
27
|
-
width: ($line-height * 1.5);
|
28
|
-
}
|
29
|
-
&.avatar-transparent {
|
30
|
-
background-color: transparent;
|
31
|
-
}
|
32
14
|
&.pull-left {
|
33
15
|
margin-right: $grid-gutter;
|
34
16
|
}
|
@@ -60,4 +42,26 @@
|
|
60
42
|
background-color: nth($palette-color, $i);
|
61
43
|
color: $white;
|
62
44
|
}
|
63
|
-
}
|
45
|
+
}
|
46
|
+
|
47
|
+
.avatar-inline {
|
48
|
+
display: inline-block;
|
49
|
+
}
|
50
|
+
|
51
|
+
.avatar-lg {
|
52
|
+
height: ($line-height * 4);
|
53
|
+
line-height: ($line-height * 4);
|
54
|
+
width: ($line-height * 4);
|
55
|
+
}
|
56
|
+
|
57
|
+
.avatar-sm {
|
58
|
+
height: ($line-height * 1.5);
|
59
|
+
line-height: ($line-height * 1.5);
|
60
|
+
margin-top: ($line-height * -0.25);
|
61
|
+
margin-bottom: ($line-height * -0.25);
|
62
|
+
width: ($line-height * 1.5);
|
63
|
+
}
|
64
|
+
|
65
|
+
.avatar-transparent {
|
66
|
+
background-color: transparent;
|
67
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
.breadcrumb {
|
2
|
+
list-style: none;
|
3
|
+
margin: $line-height 0;
|
4
|
+
padding: ($line-height / 2) 0;
|
5
|
+
@include clearfix();
|
6
|
+
> li {
|
7
|
+
display: block;
|
8
|
+
float: left;
|
9
|
+
+ li:before {
|
10
|
+
@extend .icon;
|
11
|
+
color: $black-hint;
|
12
|
+
content: unicode($mdicon-var-chevron-right);
|
13
|
+
display: inline-block;
|
14
|
+
line-height: $line-height;
|
15
|
+
margin-left: 0.4em;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
> .active {
|
19
|
+
color: $black-text;
|
20
|
+
> a,
|
21
|
+
> .a {
|
22
|
+
color: $black-text;
|
23
|
+
cursor: text;
|
24
|
+
text-decoration: none;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
background-color: $black-bg;
|
3
3
|
border-radius: 50%;
|
4
4
|
clear: both;
|
5
|
-
color: $
|
5
|
+
color: $black-text;
|
6
6
|
cursor: pointer;
|
7
7
|
display: block;
|
8
8
|
font-size: $line-height;
|
@@ -11,12 +11,69 @@
|
|
11
11
|
text-align: center;
|
12
12
|
width: ($line-height * 2);
|
13
13
|
@include box-shadow(0 3px 10px rgba(0, 0, 0, 0.5));
|
14
|
-
.
|
15
|
-
|
14
|
+
@include transition(all 0.3s $timing);
|
15
|
+
-webkit-transition-property: box-shadow, opacity, -webkit-transform;
|
16
|
+
transition-property: box-shadow, opacity, transform;
|
17
|
+
}
|
18
|
+
|
19
|
+
a.fbtn {
|
20
|
+
&:focus,
|
21
|
+
&:hover {
|
22
|
+
color: $black-text;
|
23
|
+
@include box-shadow(0 3px 10px rgba(0, 0, 0, 0.5), 0 3px 15px rgba(0, 0, 0, 0.5));
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
// colour
|
28
|
+
@each $color in $palette-list {
|
29
|
+
$i: index($palette-list, $color);
|
30
|
+
|
31
|
+
.fbtn-#{$color} {
|
32
|
+
background-color: nth($palette-color, $i);
|
33
|
+
color: $white !important;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
// size
|
38
|
+
.fbtn-lg {
|
39
|
+
padding: ($line-height * 0.75) 0;
|
40
|
+
width: ($line-height * 2.5);
|
41
|
+
.fbtn-sub {
|
42
|
+
// position
|
43
|
+
top: ($line-height * 0.75);
|
44
|
+
}
|
45
|
+
~ .fbtn-dropdown {
|
46
|
+
min-width: ($grid-gutter * 2 + $line-height * 2.5);
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
.fbtn-container {
|
51
|
+
position: fixed;
|
52
|
+
right: $grid-gutter;
|
53
|
+
bottom: $line-height;
|
54
|
+
z-index: ($content-base + 1);
|
55
|
+
@include backface(hidden);
|
56
|
+
@include transition(margin-bottom 0.3s $timing, right 0.3s $timing);
|
57
|
+
}
|
58
|
+
|
59
|
+
.fbtn-dropdown {
|
60
|
+
max-height: 0;
|
61
|
+
overflow: hidden;
|
62
|
+
padding-right: $grid-gutter;
|
63
|
+
padding-left: $grid-gutter;
|
64
|
+
position: absolute;
|
65
|
+
right: ($grid-gutter * -1);
|
66
|
+
bottom: 100%;
|
67
|
+
@include transition(max-height 0s 0.5s);
|
68
|
+
.fbtn-inner.open & {
|
69
|
+
max-height: 99999px;
|
70
|
+
overflow: visible;
|
71
|
+
@include transition(max-height 0s);
|
72
|
+
}
|
73
|
+
.fbtn {
|
74
|
+
margin: ($line-height / 2) auto;
|
16
75
|
@include opacity(0);
|
17
76
|
@include transform(scale(0.5));
|
18
|
-
-webkit-transition: opacity 0.15s $timing 0s, -webkit-transform 0.15s $timing 0s;
|
19
|
-
transition: opacity 0.15s $timing 0s, transform 0.15s $timing 0s;
|
20
77
|
&:nth-last-child(1) {
|
21
78
|
-webkit-transition-delay: 300ms;
|
22
79
|
transition-delay: 300ms;
|
@@ -74,72 +131,85 @@
|
|
74
131
|
}
|
75
132
|
}
|
76
133
|
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
}
|
83
|
-
}
|
84
|
-
|
85
|
-
.fbtn-container {
|
86
|
-
position: fixed;
|
87
|
-
right: $grid-gutter;
|
88
|
-
bottom: $line-height;
|
89
|
-
z-index: ($header-base + 1);
|
90
|
-
@include transition(margin-bottom 0.3s $timing, right 0.3s $timing);
|
134
|
+
.fbtn-ori,
|
135
|
+
.fbtn-sub {
|
136
|
+
@include transition(all 0.3s $timing);
|
137
|
+
-webkit-transition-property: opacity, -webkit-transform;
|
138
|
+
transition-property: opacity, transform;
|
91
139
|
}
|
92
140
|
|
93
|
-
.fbtn-
|
94
|
-
max-height: 0;
|
95
|
-
overflow: hidden;
|
96
|
-
padding-right: $grid-gutter;
|
97
|
-
padding-left: $grid-gutter;
|
98
|
-
position: absolute;
|
99
|
-
right: ($grid-gutter * -1);
|
100
|
-
bottom: 100%;
|
101
|
-
@include transition(max-height 0s linear 0.5s);
|
141
|
+
.fbtn-ori {
|
102
142
|
.fbtn-inner.open & {
|
103
|
-
|
104
|
-
|
105
|
-
@include transition(max-height 0s linear 0s);
|
143
|
+
@include opacity(0);
|
144
|
+
@include transform(rotate(225deg));
|
106
145
|
}
|
107
146
|
}
|
108
147
|
|
109
148
|
.fbtn-rotate {
|
110
|
-
@include
|
111
|
-
-webkit-transition: -webkit-transform
|
112
|
-
transition: transform
|
149
|
+
@include transition(all 0.3s $timing);
|
150
|
+
-webkit-transition-property: opacity, -webkit-transform;
|
151
|
+
transition-property: opacity, transform;
|
113
152
|
.fbtn-inner.open & {
|
114
153
|
@include transform(rotate(225deg));
|
115
154
|
}
|
116
155
|
}
|
117
156
|
|
157
|
+
.fbtn-sub {
|
158
|
+
position: absolute;
|
159
|
+
top: ($line-height / 2);
|
160
|
+
left: 0;
|
161
|
+
text-align: center;
|
162
|
+
width: 100%;
|
163
|
+
@include opacity(0);
|
164
|
+
@include transform(rotate(-225deg));
|
165
|
+
.fbtn-inner.open & {
|
166
|
+
@include opacity(1);
|
167
|
+
@include transform(rotate(0));
|
168
|
+
}
|
169
|
+
}
|
170
|
+
|
118
171
|
.fbtn-text {
|
119
172
|
background-color: $black-text;
|
120
173
|
background-color: rgba(0, 0, 0, 0.8);
|
121
174
|
border-radius: 2px;
|
122
|
-
|
175
|
+
color: $white;
|
123
176
|
font-size: $font-size-h6;
|
177
|
+
height: 0;
|
124
178
|
margin-top: ($line-height / -2);
|
125
179
|
margin-right: $grid-gutter;
|
180
|
+
overflow: hidden;
|
126
181
|
padding-right: ($grid-gutter / 2);
|
127
182
|
padding-left: ($grid-gutter / 2);
|
128
183
|
position: absolute;
|
129
184
|
top: 50%;
|
130
185
|
right: 100%;
|
131
186
|
white-space: nowrap;
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
187
|
+
width: 0;
|
188
|
+
@include opacity(0);
|
189
|
+
@include transition(opacity 0.3s $timing);
|
190
|
+
// touch & no touch
|
191
|
+
.no-touch .fbtn:hover & {
|
192
|
+
height: auto;
|
193
|
+
width: auto;
|
194
|
+
@include opacity(1);
|
195
|
+
}
|
196
|
+
.no-touch .fbtn-dropdown .fbtn:hover & {
|
197
|
+
height: 0;
|
198
|
+
width: 0;
|
199
|
+
@include opacity(0);
|
200
|
+
}
|
201
|
+
.no-touch .fbtn-inner.open .fbtn-dropdown .fbtn:hover & {
|
202
|
+
height: auto;
|
203
|
+
width: auto;
|
204
|
+
@include opacity(1);
|
205
|
+
}
|
206
|
+
.touch & {
|
207
|
+
display: none;
|
208
|
+
height: auto;
|
209
|
+
width: auto;
|
210
|
+
@include opacity(1);
|
211
|
+
}
|
212
|
+
.touch .fbtn-inner.open & {
|
213
|
+
display: block;
|
144
214
|
}
|
145
|
-
|
215
|
+
}
|
@@ -13,14 +13,14 @@
|
|
13
13
|
line-height: $line-height;
|
14
14
|
margin-bottom: 0;
|
15
15
|
max-width: 100%;
|
16
|
-
padding: (($btn-height - $line-height - 2) / 2) $grid-gutter;
|
16
|
+
padding: (($btn-height - $line-height - 2) / 2) ($grid-gutter - 1);
|
17
17
|
position: relative;
|
18
18
|
text-align: center;
|
19
19
|
text-transform: uppercase;
|
20
20
|
vertical-align: middle;
|
21
21
|
white-space: nowrap;
|
22
|
-
@include box-shadow(0 1px 5px rgba(0, 0, 0, 0.15), 0 1px 5px rgba(0, 0, 0, 0.15));
|
23
|
-
@include transition(
|
22
|
+
@include box-shadow(0 1px 5px rgba(0, 0, 0, 0.15), 0 1px 5px 1px rgba(0, 0, 0, 0.15));
|
23
|
+
@include transition(background-color 0.3s $timing, box-shadow 0.3s $timing);
|
24
24
|
@include user-select(none);
|
25
25
|
&:active,
|
26
26
|
&:focus,
|
@@ -28,34 +28,19 @@
|
|
28
28
|
color: $black-text;
|
29
29
|
outline: 0;
|
30
30
|
text-decoration: none;
|
31
|
-
@include box-shadow(0 5px 10px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.15));
|
32
|
-
}
|
33
|
-
&:active {
|
34
|
-
background-color: $white-bg;
|
35
|
-
@include transition(all 0.45s $timing, background-color 0s linear 0.45s);
|
31
|
+
@include box-shadow(0 1px 5px rgba(0, 0, 0, 0.15), 0 5px 10px 1px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.15));
|
36
32
|
}
|
37
33
|
&[disabled],
|
38
34
|
fieldset[disabled] & {
|
39
35
|
cursor: not-allowed;
|
40
36
|
@include opacity(0.5);
|
41
37
|
}
|
42
|
-
&.
|
43
|
-
|
44
|
-
|
45
|
-
background-size: 900% 900%;
|
38
|
+
&.waves-effect {
|
39
|
+
border: 0;
|
40
|
+
padding: (($btn-height - $line-height) / 2) $grid-gutter;
|
46
41
|
}
|
47
42
|
}
|
48
43
|
|
49
|
-
.btn-block {
|
50
|
-
display: block;
|
51
|
-
white-space: normal;
|
52
|
-
width: 100%;
|
53
|
-
}
|
54
|
-
|
55
|
-
.btn-sm {
|
56
|
-
padding: 0 ($grid-gutter / 2);
|
57
|
-
}
|
58
|
-
|
59
44
|
// colour
|
60
45
|
@each $color in $palette-list {
|
61
46
|
$i: index($palette-list, $color);
|
@@ -68,64 +53,67 @@
|
|
68
53
|
&:hover {
|
69
54
|
color: $white;
|
70
55
|
}
|
71
|
-
&:active {
|
72
|
-
background-color: nth($palette-color-light-m, $i);
|
73
|
-
}
|
74
56
|
&[disabled],
|
75
57
|
fieldset[disabled] & {
|
76
58
|
background-color: nth($palette-color, $i);
|
77
59
|
}
|
78
|
-
&.btn-active {
|
79
|
-
background-image: -webkit-radial-gradient(circle, nth($palette-color-light-m, $i) 10%, nth($palette-color, $i) 11%);
|
80
|
-
background-image: radial-gradient(circle, nth($palette-color-light-m, $i) 10%, nth($palette-color, $i) 11%);
|
81
|
-
}
|
82
60
|
}
|
83
61
|
}
|
84
62
|
|
85
|
-
//
|
86
|
-
.btn-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
63
|
+
// size
|
64
|
+
.btn-sm {
|
65
|
+
font-size: $font-size-h6;
|
66
|
+
line-height: ($line-height - 2);
|
67
|
+
padding: 0 ($grid-gutter / 2 - 1);
|
68
|
+
&.waves-effect {
|
69
|
+
padding: 1px ($grid-gutter / 2);
|
92
70
|
}
|
93
71
|
}
|
94
|
-
|
95
|
-
// flat colour
|
96
|
-
@each $color in $palette-list {
|
97
|
-
$i: index($palette-list, $color);
|
98
72
|
|
99
|
-
|
73
|
+
.btn-block {
|
74
|
+
display: block;
|
75
|
+
white-space: normal;
|
76
|
+
width: 100%;
|
77
|
+
}
|
78
|
+
|
79
|
+
.btn-flat {
|
80
|
+
background-color: transparent;
|
81
|
+
@include box-shadow(none);
|
82
|
+
&:active,
|
83
|
+
&:focus,
|
84
|
+
&:hover {
|
85
|
+
background-color: $black-bg;
|
86
|
+
@include box-shadow(none);
|
87
|
+
}
|
88
|
+
&[disabled],
|
89
|
+
fieldset[disabled] & {
|
90
|
+
color: $black-text;
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
// colour
|
95
|
+
@each $color in $palette-list {
|
96
|
+
$i: index($palette-list, $color);
|
97
|
+
|
98
|
+
.btn-flat.btn-#{$color} {
|
99
|
+
color: nth($palette-color, $i);
|
100
|
+
&:active,
|
101
|
+
&:focus,
|
102
|
+
&:hover {
|
103
|
+
background-color: nth($palette-color-light, $i);
|
104
|
+
}
|
105
|
+
&[disabled],
|
106
|
+
fieldset[disabled] & {
|
100
107
|
color: nth($palette-color, $i);
|
101
|
-
&:active {
|
102
|
-
background-color: nth($palette-color-light, $i);
|
103
|
-
}
|
104
|
-
&[disabled],
|
105
|
-
fieldset[disabled] & {
|
106
|
-
color: nth($palette-color, $i);
|
107
|
-
}
|
108
|
-
&.btn-active {
|
109
|
-
background-image: -webkit-radial-gradient(circle, nth($palette-color-light, $i) 10%, $white 11%);
|
110
|
-
background-image: radial-gradient(circle, nth($palette-color-light, $i) 10%, $white 11%);
|
111
|
-
}
|
112
108
|
}
|
113
109
|
}
|
114
|
-
|
115
|
-
// size
|
116
|
-
.btn-sm {
|
117
|
-
font-size: $font-size-h6;
|
118
|
-
line-height: ($line-height - 2);
|
119
|
-
padding-top: 0;
|
120
|
-
padding-bottom: 0;
|
121
110
|
}
|
122
111
|
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
}
|
112
|
+
.btn-text {
|
113
|
+
color: $black-text;
|
114
|
+
display: inline-block;
|
115
|
+
font-size: $font-size;
|
116
|
+
font-weight: 400;
|
117
|
+
line-height: $line-height;
|
118
|
+
padding: (($btn-height - $line-height) / 2) 0;
|
119
|
+
}
|