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
@@ -9,48 +9,90 @@
|
|
9
9
|
display: flex;
|
10
10
|
margin-bottom: $line-height;
|
11
11
|
position: relative;
|
12
|
-
@include box-shadow(0
|
12
|
+
@include box-shadow(0 1px 6px rgba(0, 0, 0, 0.3));
|
13
13
|
@include transition(box-shadow 0.3s $timing);
|
14
|
-
|
15
|
-
|
16
|
-
@include box-shadow(0 0 5px rgba(0, 0, 0, 0.25));
|
14
|
+
&[class*="-bg"] {
|
15
|
+
color: $white;
|
17
16
|
}
|
17
|
+
// no boxshadow
|
18
|
+
.no-boxshadow & {
|
19
|
+
border: 1px solid $black-bg;
|
20
|
+
}
|
18
21
|
}
|
19
22
|
|
23
|
+
// colour
|
24
|
+
.card-offwhite {
|
25
|
+
background-color: $white-bg;
|
26
|
+
}
|
27
|
+
|
28
|
+
@each $color in $palette-list {
|
29
|
+
$i: index($palette-list, $color);
|
30
|
+
|
31
|
+
.card-#{$color} {
|
32
|
+
@include box-shadow(0 0 2px rgba(0, 0, 0, 0.3), 0 1px 6px rgba(red(nth($palette-color, $i)), green(nth($palette-color, $i)), blue(nth($palette-color, $i)), 0.3));
|
33
|
+
// no boxshadow
|
34
|
+
.no-boxshadow & {
|
35
|
+
border-color: nth($palette-color-light, $i);
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
.card-#{$color}-bg {
|
40
|
+
@extend .card-#{$color};
|
41
|
+
background-color: nth($palette-color, $i);
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
20
45
|
.card-action {
|
46
|
+
border-top: 1px solid $black-bg;
|
21
47
|
position: relative;
|
22
48
|
@include clearfix();
|
23
|
-
&:
|
24
|
-
border-top:
|
25
|
-
content: '';
|
26
|
-
display: block;
|
27
|
-
position: absolute;
|
28
|
-
top: 0;
|
29
|
-
left: 0;
|
30
|
-
width: 100%;
|
31
|
-
.card-header + & {
|
32
|
-
display: none;
|
33
|
-
}
|
49
|
+
&:first-child {
|
50
|
+
border-top: 0;
|
34
51
|
}
|
35
52
|
.nav {
|
36
53
|
margin-top: 0;
|
37
54
|
margin-bottom: 0;
|
38
55
|
> li {
|
39
|
-
> a
|
56
|
+
> a,
|
57
|
+
> .a {
|
40
58
|
color: $black-sec;
|
41
59
|
&:focus,
|
42
60
|
&:hover {
|
43
61
|
color: $link-color;
|
44
62
|
}
|
63
|
+
.card[class*="-bg"] & {
|
64
|
+
color: $white;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
&.active > {
|
68
|
+
a,
|
69
|
+
.a {
|
70
|
+
color: $link-color;
|
71
|
+
}
|
45
72
|
}
|
46
|
-
&.
|
47
|
-
|
48
|
-
|
73
|
+
&.open > {
|
74
|
+
a,
|
75
|
+
.a {
|
76
|
+
color: $black-text;
|
77
|
+
}
|
49
78
|
}
|
50
79
|
}
|
51
80
|
}
|
52
81
|
}
|
53
82
|
|
83
|
+
// colour
|
84
|
+
@each $color in $palette-list {
|
85
|
+
$i: index($palette-list, $color);
|
86
|
+
|
87
|
+
.card-#{$color} .card-action {
|
88
|
+
border-top-color: nth($palette-color-light, $i);
|
89
|
+
}
|
90
|
+
|
91
|
+
.card-#{$color}-bg .card-action {
|
92
|
+
border-top-color: nth($palette-color-dark-m, $i);
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
54
96
|
.card-header {
|
55
97
|
padding-top: ($line-height / 4);
|
56
98
|
padding-bottom: ($line-height / 4);
|
@@ -58,7 +100,7 @@
|
|
58
100
|
@include clearfix();
|
59
101
|
&:before {
|
60
102
|
border-bottom: 1px solid $black-bg;
|
61
|
-
content:
|
103
|
+
content: "";
|
62
104
|
display: block;
|
63
105
|
position: absolute;
|
64
106
|
bottom: 0;
|
@@ -80,7 +122,14 @@
|
|
80
122
|
}
|
81
123
|
|
82
124
|
.card-img {
|
125
|
+
overflow: hidden;
|
83
126
|
position: relative;
|
127
|
+
&:first-child {
|
128
|
+
border-radius: 2px 2px 0 0;
|
129
|
+
}
|
130
|
+
&:last-child {
|
131
|
+
border-radius: 0 0 2px 2px;
|
132
|
+
}
|
84
133
|
img {
|
85
134
|
display: block;
|
86
135
|
height: auto;
|
@@ -110,6 +159,20 @@
|
|
110
159
|
padding-top: ($line-height / 2);
|
111
160
|
padding-bottom: ($line-height / 2);
|
112
161
|
}
|
162
|
+
.card-inner-side ~ & {
|
163
|
+
overflow: hidden;
|
164
|
+
}
|
165
|
+
}
|
166
|
+
|
167
|
+
.card-inner-side {
|
168
|
+
padding-top: ($line-height / 2);
|
169
|
+
padding-bottom: ($line-height / 2);
|
170
|
+
&.pull-left {
|
171
|
+
padding-left: $grid-gutter;
|
172
|
+
}
|
173
|
+
&.pull-right {
|
174
|
+
padding-right: $grid-gutter;
|
175
|
+
}
|
113
176
|
}
|
114
177
|
|
115
178
|
.card-main {
|
@@ -120,8 +183,18 @@
|
|
120
183
|
flex: 1;
|
121
184
|
}
|
122
185
|
|
186
|
+
// colour
|
187
|
+
@each $color in $palette-list {
|
188
|
+
$i: index($palette-list, $color);
|
189
|
+
|
190
|
+
.card-#{$color}-bg .card-main a {
|
191
|
+
color: nth($palette-color-light, $i);
|
192
|
+
}
|
193
|
+
}
|
194
|
+
|
123
195
|
.card-side {
|
124
196
|
background-color: $white-bg;
|
197
|
+
border-radius: 2px 0 0 2px;
|
125
198
|
max-width: 33.33333%;
|
126
199
|
padding-right: $grid-gutter;
|
127
200
|
padding-left: $grid-gutter;
|
@@ -139,6 +212,7 @@
|
|
139
212
|
padding-left: 0;
|
140
213
|
}
|
141
214
|
&.card-side-right {
|
215
|
+
border-radius: 0 2px 2px 0;
|
142
216
|
-webkit-box-ordinal-group: 2;
|
143
217
|
-moz-box-ordinal-group: 2;
|
144
218
|
-ms-flex-order: 2;
|
@@ -147,24 +221,16 @@
|
|
147
221
|
}
|
148
222
|
}
|
149
223
|
|
150
|
-
.card-wrap {
|
151
|
-
margin-top: $line-height;
|
152
|
-
}
|
153
|
-
|
154
224
|
// colour
|
225
|
+
.card-offwhite .card-side {
|
226
|
+
background-color: $white-bg-dark;
|
227
|
+
}
|
228
|
+
|
155
229
|
@each $color in $palette-list {
|
156
230
|
$i: index($palette-list, $color);
|
157
231
|
|
158
|
-
.card
|
159
|
-
|
160
|
-
&:focus,
|
161
|
-
&:hover {
|
162
|
-
@include box-shadow(0 0 5px nth($palette-color, $i));
|
163
|
-
}
|
164
|
-
.card-action:before {
|
165
|
-
border-top-color: nth($palette-color-light, $i);
|
166
|
-
}
|
167
|
-
.card-side {
|
232
|
+
.card-side {
|
233
|
+
.card-#{$color} & {
|
168
234
|
background-color: nth($palette-color, $i);
|
169
235
|
color: $white;
|
170
236
|
&[href] {
|
@@ -174,11 +240,7 @@
|
|
174
240
|
}
|
175
241
|
}
|
176
242
|
}
|
177
|
-
|
178
|
-
|
179
|
-
.card-#{$color}-bg {
|
180
|
-
background-color: nth($palette-color, $i);
|
181
|
-
.card-side {
|
243
|
+
.card-#{$color}-bg & {
|
182
244
|
background-color: nth($palette-color-dark-m, $i);
|
183
245
|
&[href] {
|
184
246
|
&:focus,
|
@@ -190,14 +252,6 @@
|
|
190
252
|
}
|
191
253
|
}
|
192
254
|
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
> a {
|
197
|
-
color: $white;
|
198
|
-
}
|
199
|
-
&.open > a {
|
200
|
-
color: $black-text;
|
201
|
-
}
|
202
|
-
}
|
203
|
-
}
|
255
|
+
.card-wrap {
|
256
|
+
margin-top: $line-height;
|
257
|
+
}
|
@@ -1,18 +1,23 @@
|
|
1
1
|
.dropdown {
|
2
2
|
position: relative;
|
3
|
+
@include transition(z-index 0s 0.3s);
|
3
4
|
&.open {
|
4
5
|
z-index: ($content-base + 1);
|
6
|
+
@include transition(z-index 0s);
|
5
7
|
}
|
6
8
|
[data-toggle="dropdown"] {
|
7
9
|
cursor: pointer;
|
8
10
|
}
|
9
11
|
}
|
10
12
|
|
13
|
+
.dropdown-inline {
|
14
|
+
display: inline-block;
|
15
|
+
}
|
16
|
+
|
11
17
|
.dropdown-menu {
|
12
18
|
background-color: $white;
|
13
19
|
border: 1px solid $black-hint;
|
14
20
|
border-radius: 0 2px 2px 2px;
|
15
|
-
display: none;
|
16
21
|
list-style: none;
|
17
22
|
margin: -1px 0 0 !important;
|
18
23
|
min-width: 100%;
|
@@ -24,15 +29,26 @@
|
|
24
29
|
top: 100%;
|
25
30
|
left: 0;
|
26
31
|
@include box-shadow(0 5px 10px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.15));
|
32
|
+
@include opacity(0);
|
33
|
+
@include transform(scale(0.25, 0));
|
34
|
+
-webkit-transform-origin: 0 0;
|
35
|
+
transform-origin: 0 0;
|
36
|
+
@include transition(all 0.3s $timing);
|
37
|
+
-webkit-transition-property: opacity, -webkit-transform;
|
38
|
+
transition-property: opacity, transform;
|
27
39
|
.dropdown.open & {
|
28
|
-
|
40
|
+
@include opacity(1);
|
41
|
+
@include transform(scale(1, 1));
|
29
42
|
}
|
30
43
|
&.dropdown-menu-right,
|
44
|
+
.dropdown.pull-right &,
|
31
45
|
.nav.pull-right & {
|
32
46
|
border-radius: 2px 0 2px 2px;
|
33
47
|
// position
|
34
48
|
right: 0;
|
35
49
|
left: auto;
|
50
|
+
-webkit-transform-origin: 100% 0;
|
51
|
+
transform-origin: 100% 0;
|
36
52
|
}
|
37
53
|
a,
|
38
54
|
.a {
|
@@ -58,53 +74,56 @@
|
|
58
74
|
display: block;
|
59
75
|
position: relative;
|
60
76
|
}
|
77
|
+
// no csstransform
|
78
|
+
.no-csstransforms & {
|
79
|
+
display: none;
|
80
|
+
}
|
81
|
+
.no-csstransforms .dropdown.open & {
|
82
|
+
display: block;
|
83
|
+
}
|
61
84
|
}
|
62
85
|
|
63
86
|
.dropdown-toggle {
|
64
|
-
|
65
|
-
z-index: 1;
|
87
|
+
@include transition(background-color 0.3s $timing);
|
66
88
|
.dropdown.open & {
|
67
|
-
background-color: $
|
68
|
-
border: 1px solid $black-hint;
|
69
|
-
border-bottom: 0;
|
89
|
+
background-color: $black-bg;
|
70
90
|
border-radius: 2px 2px 0 0;
|
71
|
-
padding: ($line-height / 2 - 1) ($grid-gutter - 1) ($line-height / 2);
|
72
|
-
.content-nav &,
|
73
|
-
.header & {
|
74
|
-
border-top: 0;
|
75
|
-
border-radius: 0;
|
76
|
-
padding-top: ($line-height / 2);
|
77
|
-
}
|
78
91
|
}
|
79
92
|
}
|
80
93
|
|
94
|
+
// colour
|
95
|
+
@each $color in $palette-list {
|
96
|
+
$i: index($palette-list, $color);
|
97
|
+
|
98
|
+
.dropdown-toggle-#{$color} {
|
99
|
+
.dropdown.open & {
|
100
|
+
background-color: nth($palette-color-dark, $i);
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
81
105
|
.dropdown-toggle-btn {
|
82
106
|
position: relative;
|
83
107
|
z-index: 1;
|
84
108
|
.dropdown.open & {
|
85
109
|
background-color: $white;
|
86
|
-
border-color: $black-hint;
|
87
|
-
border-bottom-color: transparent;
|
88
|
-
border-radius: 2px 2px 0 0;
|
89
110
|
color: $black-text;
|
90
111
|
@include box-shadow(none);
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
112
|
+
}
|
113
|
+
~ .dropdown-menu {
|
114
|
+
min-width: 101%;
|
115
|
+
min-width: calc(100% + 2px);
|
116
|
+
padding-top: ($btn-height + $line-height / 2) !important;
|
117
|
+
// position
|
118
|
+
top: ($line-height / -2);
|
119
|
+
left: -1px;
|
120
|
+
@include transform(scale(1, 0));
|
121
|
+
&.dropdown-menu-right,
|
122
|
+
.dropdown.pull-right &,
|
123
|
+
.nav.pull-right & {
|
102
124
|
// position
|
103
125
|
right: -1px;
|
104
|
-
|
105
|
-
&:before {
|
106
|
-
// position
|
107
|
-
left: -1px;
|
126
|
+
left: auto;
|
108
127
|
}
|
109
128
|
}
|
110
129
|
}
|
@@ -0,0 +1,123 @@
|
|
1
|
+
.checkbox-adv {
|
2
|
+
font-size: $font-size;
|
3
|
+
line-height: $line-height;
|
4
|
+
[class^="circle"] {
|
5
|
+
display: block;
|
6
|
+
height: $font-size;
|
7
|
+
position: absolute;
|
8
|
+
top: (($line-height - $font-size) / 2 - 1);
|
9
|
+
left: 0;
|
10
|
+
width: $font-size;
|
11
|
+
}
|
12
|
+
.circle {
|
13
|
+
border: 2px solid $black-sec;
|
14
|
+
@include transition(border-color 0.3s $timing);
|
15
|
+
}
|
16
|
+
&.disabled,
|
17
|
+
fieldset[disabled] & {
|
18
|
+
.circle {
|
19
|
+
border-color: $black-hint !important;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
input.access-hide:focus ~ .circle {
|
23
|
+
border-color: $black-text;
|
24
|
+
}
|
25
|
+
input.access-hide:checked ~ .circle {
|
26
|
+
border-color: $brand-color;
|
27
|
+
}
|
28
|
+
.circle-check {
|
29
|
+
background-color: transparent;
|
30
|
+
@include transform(scale(0));
|
31
|
+
@include transition(all 0.3s $timing);
|
32
|
+
-webkit-transition-property: background-color, -webkit-transform;
|
33
|
+
transition-property: background-color, transform;
|
34
|
+
&:after {
|
35
|
+
background-color: $brand-color;
|
36
|
+
border-radius: 50%;
|
37
|
+
content: "";
|
38
|
+
display: block;
|
39
|
+
height: ($font-size * 5);
|
40
|
+
position: absolute;
|
41
|
+
top: ($font-size * -2);
|
42
|
+
left: ($font-size * -2);
|
43
|
+
width: ($font-size * 5);
|
44
|
+
@include opacity(0);
|
45
|
+
}
|
46
|
+
}
|
47
|
+
&.disabled,
|
48
|
+
fieldset[disabled] & {
|
49
|
+
.circle-check:after {
|
50
|
+
background-color: $black-hint;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
input.access-hide:checked ~ .circle-check {
|
54
|
+
@include transform(scale(0.5));
|
55
|
+
&:after {
|
56
|
+
@include animation(circle-check 0.6s);
|
57
|
+
}
|
58
|
+
}
|
59
|
+
.circle-icon {
|
60
|
+
background-color: transparent;
|
61
|
+
color: transparent;
|
62
|
+
@include transform(scale(0.5));
|
63
|
+
@include transition(all 0.3s $timing);
|
64
|
+
-webkit-transition-property: background-color, color, -webkit-transform;
|
65
|
+
transition-property: background-color, color, transform;
|
66
|
+
&:before {
|
67
|
+
// position
|
68
|
+
top: auto;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
input.access-hide:checked ~ .circle-icon {
|
72
|
+
background-color: $brand-color;
|
73
|
+
color: $white;
|
74
|
+
@include transform(scale(1));
|
75
|
+
}
|
76
|
+
&.disabled,
|
77
|
+
fieldset[disabled] & {
|
78
|
+
input.access-hide:checked ~ .circle-icon {
|
79
|
+
background-color: $black-hint;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
.radio-adv {
|
85
|
+
@extend .checkbox-adv;
|
86
|
+
[class^="circle"] {
|
87
|
+
border-radius: 50%;
|
88
|
+
}
|
89
|
+
input.access-hide:checked ~ .circle-check {
|
90
|
+
background-color: $brand-color;
|
91
|
+
}
|
92
|
+
&.disabled,
|
93
|
+
fieldset[disabled] & {
|
94
|
+
input.access-hide:checked ~ .circle-check {
|
95
|
+
background-color: $black-hint;
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
// animation
|
101
|
+
@-webkit-keyframes circle-check {
|
102
|
+
0% {
|
103
|
+
opacity: 0;
|
104
|
+
}
|
105
|
+
25% {
|
106
|
+
opacity: 0.25;
|
107
|
+
}
|
108
|
+
100% {
|
109
|
+
opacity: 0;
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
@keyframes circle-check {
|
114
|
+
0% {
|
115
|
+
opacity: 0;
|
116
|
+
}
|
117
|
+
25% {
|
118
|
+
opacity: 0.25;
|
119
|
+
}
|
120
|
+
100% {
|
121
|
+
opacity: 0;
|
122
|
+
}
|
123
|
+
}
|