material-sass 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/material/base.scss +1 -0
- data/app/assets/stylesheets/material/components/_dropdown.scss +18 -14
- data/app/assets/stylesheets/material/components/_form-floating-label.scss +4 -0
- data/app/assets/stylesheets/material/components/_nav.scss +12 -12
- data/app/assets/stylesheets/material/components/_stepper.scss +201 -0
- data/lib/material-sass/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c834ce50258ccb6988e0cfe87575a9ef3980840
|
4
|
+
data.tar.gz: b6ff03462dac56baf6ab9dc7b2fb16b7a873fde6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d8b9195bb54f99447babe98f5c4d07e2be9181376261d70fbb40094eeff26991baee873517eb89ca62cb50c5169b3a109ecd51e740ff676ef0dd9b9e2b964fe
|
7
|
+
data.tar.gz: e92419100a92b96f5b4dcbbbef8fc673ec4bc2ef029c06029c2ecbca46bc81dd9e87e37de5be905a84d9afcdc7604ec5746ab3d78205b7af39b0d9b0c0602717
|
@@ -19,9 +19,9 @@
|
|
19
19
|
margin: 0 !important;
|
20
20
|
min-width: 100%;
|
21
21
|
opacity: 0;
|
22
|
-
padding-top: $margin-base
|
22
|
+
padding-top: $margin-base;
|
23
23
|
padding-right: 0;
|
24
|
-
padding-bottom: $margin-base
|
24
|
+
padding-bottom: $margin-base;
|
25
25
|
padding-left: 0;
|
26
26
|
position: absolute !important;
|
27
27
|
top: 100%;
|
@@ -43,18 +43,22 @@
|
|
43
43
|
left: auto;
|
44
44
|
transform-origin: 100% 0;
|
45
45
|
}
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
46
|
+
li {
|
47
|
+
> a,
|
48
|
+
> .a {
|
49
|
+
color: $black-text-solid;
|
50
|
+
@include text-overflow();
|
51
|
+
&:focus,
|
52
|
+
&:hover {
|
53
|
+
background-color: $offwhite-solid;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
&.active {
|
57
|
+
> a,
|
58
|
+
> .a {
|
59
|
+
background-color: $offwhite-solid;
|
60
|
+
}
|
53
61
|
}
|
54
|
-
}
|
55
|
-
.active > a,
|
56
|
-
.active > .a {
|
57
|
-
background-color: $offwhite-solid;
|
58
62
|
}
|
59
63
|
}
|
60
64
|
|
@@ -80,7 +84,7 @@
|
|
80
84
|
}
|
81
85
|
~ .dropdown-menu {
|
82
86
|
min-width: 100%;
|
83
|
-
padding-top: ($btn-height + $margin-base + ($nav-height - $btn-height))
|
87
|
+
padding-top: ($btn-height + $margin-base + ($nav-height - $btn-height));
|
84
88
|
// position
|
85
89
|
top: ($margin-base * -1 + ($nav-height - $btn-height) / -2);
|
86
90
|
left: 0;
|
@@ -1,17 +1,21 @@
|
|
1
1
|
.floating-label {
|
2
2
|
color: $black-hint;
|
3
3
|
cursor: text;
|
4
|
+
display: block;
|
4
5
|
font-size: $font-size;
|
5
6
|
line-height: 1;
|
6
7
|
margin: 0;
|
8
|
+
overflow: hidden;
|
7
9
|
padding: 0;
|
8
10
|
position: absolute;
|
9
11
|
top: (($input-height - $font-size) / 2);
|
10
12
|
left: 0;
|
13
|
+
text-overflow: ellipsis;
|
11
14
|
transform-origin: 0 0;
|
12
15
|
transition-duration: 0.3s;
|
13
16
|
transition-property: color, transform;
|
14
17
|
transition-timing-function: $timing;
|
18
|
+
white-space: nowrap;
|
15
19
|
.form-group-label [class*="col-"] & {
|
16
20
|
// position
|
17
21
|
left: $grid-gutter;
|
@@ -4,21 +4,21 @@
|
|
4
4
|
padding: 0;
|
5
5
|
position: relative;
|
6
6
|
@include clearfix();
|
7
|
-
a,
|
8
|
-
.a {
|
9
|
-
align-items: center;
|
10
|
-
display: flex;
|
11
|
-
min-height: $nav-height;
|
12
|
-
padding: 0 $grid-gutter;
|
13
|
-
position: relative;
|
14
|
-
&:focus,
|
15
|
-
&:hover {
|
16
|
-
text-decoration: none;
|
17
|
-
}
|
18
|
-
}
|
19
7
|
li {
|
20
8
|
display: block;
|
21
9
|
position: relative;
|
10
|
+
> a,
|
11
|
+
> .a {
|
12
|
+
align-items: center;
|
13
|
+
display: flex;
|
14
|
+
min-height: $nav-height;
|
15
|
+
padding: 0 $grid-gutter;
|
16
|
+
position: relative;
|
17
|
+
&:focus,
|
18
|
+
&:hover {
|
19
|
+
text-decoration: none;
|
20
|
+
}
|
21
|
+
}
|
22
22
|
}
|
23
23
|
ul {
|
24
24
|
margin: 0;
|
@@ -0,0 +1,201 @@
|
|
1
|
+
.stepper {
|
2
|
+
display: flex;
|
3
|
+
flex-shrink: 0;
|
4
|
+
overflow: hidden;
|
5
|
+
padding: $margin-md ($grid-gutter * 1.5);
|
6
|
+
position: relative;
|
7
|
+
&:focus,
|
8
|
+
&:hover {
|
9
|
+
text-decoration: none;
|
10
|
+
}
|
11
|
+
.stepper-horiz & {
|
12
|
+
align-items: center;
|
13
|
+
background-color: $white;
|
14
|
+
&:after,
|
15
|
+
&:before {
|
16
|
+
border-top: 1px solid $black-divider-solid;
|
17
|
+
content: "";
|
18
|
+
display: block;
|
19
|
+
position: absolute;
|
20
|
+
top: 50%;
|
21
|
+
width: $grid-gutter;
|
22
|
+
}
|
23
|
+
&:after {
|
24
|
+
// position
|
25
|
+
right: 0;
|
26
|
+
}
|
27
|
+
&:before {
|
28
|
+
// position
|
29
|
+
left: 0;
|
30
|
+
}
|
31
|
+
&:first-child:before,
|
32
|
+
&:last-child:after {
|
33
|
+
display: none;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
.stepper-horiz-alt & {
|
37
|
+
flex-direction: column;
|
38
|
+
flex-grow: 1;
|
39
|
+
&:after,
|
40
|
+
&:before {
|
41
|
+
// position
|
42
|
+
top: ($line-height / 2 + $margin-md);
|
43
|
+
width: calc(50% - #{$grid-gutter / 2 + $line-height / 2});
|
44
|
+
}
|
45
|
+
}
|
46
|
+
.stepper-vert & {
|
47
|
+
&:after,
|
48
|
+
&:before {
|
49
|
+
border-left: 1px solid $black-divider-solid;
|
50
|
+
content: "";
|
51
|
+
display: block;
|
52
|
+
position: absolute;
|
53
|
+
left: ($grid-gutter * 1.5 + $line-height / 2);
|
54
|
+
}
|
55
|
+
&:after {
|
56
|
+
// position
|
57
|
+
top: ($grid-gutter / 2 + $line-height + $margin-md);
|
58
|
+
bottom: 0;
|
59
|
+
}
|
60
|
+
&:before {
|
61
|
+
height: ($margin-md - $grid-gutter / 2);
|
62
|
+
// position
|
63
|
+
top: 0;
|
64
|
+
}
|
65
|
+
&:first-child:before,
|
66
|
+
&:last-child:after {
|
67
|
+
display: none;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
.stepper-control {
|
73
|
+
cursor: pointer;
|
74
|
+
&:focus,
|
75
|
+
&:hover {
|
76
|
+
background-color: $offwhite-solid;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
.stepper-horiz {
|
81
|
+
background-color: $white;
|
82
|
+
flex-grow: 1;
|
83
|
+
overflow-x: auto;
|
84
|
+
overflow-y: hidden;
|
85
|
+
position: relative;
|
86
|
+
-webkit-overflow-scrolling: touch;
|
87
|
+
-ms-overflow-style: -ms-autohiding-scrollbar;
|
88
|
+
&:before {
|
89
|
+
border-top: 1px solid $black-divider-solid;
|
90
|
+
content: "";
|
91
|
+
display: block;
|
92
|
+
position: absolute;
|
93
|
+
top: 50%;
|
94
|
+
right: ($grid-gutter * 1.5);
|
95
|
+
left: ($grid-gutter * 1.5);
|
96
|
+
}
|
97
|
+
}
|
98
|
+
|
99
|
+
.stepper-horiz-content {
|
100
|
+
flex-grow: 1;
|
101
|
+
padding-right: ($grid-gutter * 1.5);
|
102
|
+
padding-left: ($grid-gutter * 1.5);
|
103
|
+
position: relative;
|
104
|
+
}
|
105
|
+
|
106
|
+
.stepper-horiz-inner {
|
107
|
+
display: flex;
|
108
|
+
justify-content: space-between;
|
109
|
+
}
|
110
|
+
|
111
|
+
.stepper-step {
|
112
|
+
font-size: $font-size-h6;
|
113
|
+
font-weight: $font-weight-light;
|
114
|
+
height: $line-height;
|
115
|
+
line-height: $line-height;
|
116
|
+
position: relative;
|
117
|
+
text-align: center;
|
118
|
+
width: $line-height;
|
119
|
+
&:before {
|
120
|
+
background-color: $black-hint-solid;
|
121
|
+
border-radius: 50%;
|
122
|
+
content: "";
|
123
|
+
display: block;
|
124
|
+
height: 100%;
|
125
|
+
position: absolute;
|
126
|
+
top: 0;
|
127
|
+
left: 0;
|
128
|
+
width: 100%;
|
129
|
+
.stepper.active &,
|
130
|
+
.stepper.done & {
|
131
|
+
background-color: $brand-color;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
}
|
135
|
+
|
136
|
+
.stepper-step-icon {
|
137
|
+
color: $white-text-solid;
|
138
|
+
display: none;
|
139
|
+
position: relative;
|
140
|
+
.stepper.done & {
|
141
|
+
display: inline-block;
|
142
|
+
}
|
143
|
+
}
|
144
|
+
|
145
|
+
.stepper-step-num {
|
146
|
+
color: $white-text-solid;
|
147
|
+
display: inline-block;
|
148
|
+
position: relative;
|
149
|
+
.stepper.active & {
|
150
|
+
color: $brand-text;
|
151
|
+
}
|
152
|
+
.stepper.done & {
|
153
|
+
display: none;
|
154
|
+
}
|
155
|
+
}
|
156
|
+
|
157
|
+
.stepper-text {
|
158
|
+
color: $black-text-solid;
|
159
|
+
font-size: $font-size;
|
160
|
+
font-weight: $font-weight-normal;
|
161
|
+
line-height: 1;
|
162
|
+
margin-left: ($grid-gutter / 2);
|
163
|
+
position: relative;
|
164
|
+
.stepper-horiz-alt & {
|
165
|
+
margin-top: $margin-sm;
|
166
|
+
margin-left: 0;
|
167
|
+
}
|
168
|
+
.stepper.active & {
|
169
|
+
font-weight: $font-weight-medium;
|
170
|
+
}
|
171
|
+
.stepper-control:focus &,
|
172
|
+
.stepper-control:hover & {
|
173
|
+
background-color: $offwhite-solid;
|
174
|
+
}
|
175
|
+
.stepper-vert & {
|
176
|
+
padding-top: (($line-height - $font-size) / 2);
|
177
|
+
}
|
178
|
+
}
|
179
|
+
|
180
|
+
.stepper-text-sub {
|
181
|
+
font-weight: $font-weight-normal;
|
182
|
+
}
|
183
|
+
|
184
|
+
.stepper-vert {
|
185
|
+
background-color: $white;
|
186
|
+
flex-grow: 1;
|
187
|
+
position: relative;
|
188
|
+
}
|
189
|
+
|
190
|
+
.stepper-vert-content {
|
191
|
+
border-left: 1px solid $black-divider-solid;
|
192
|
+
flex-grow: 1;
|
193
|
+
margin-left: ($grid-gutter * 1.5 + $line-height / 2);
|
194
|
+
padding-right: ($grid-gutter * 1.5);
|
195
|
+
padding-left: ($grid-gutter / 2 + $line-height / 2);
|
196
|
+
position: relative;
|
197
|
+
@include clearfix();
|
198
|
+
> :first-child {
|
199
|
+
margin-top: 0;
|
200
|
+
}
|
201
|
+
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: material-sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mkhairi
|
@@ -111,6 +111,7 @@ files:
|
|
111
111
|
- app/assets/stylesheets/material/components/_progress-loadbar.scss
|
112
112
|
- app/assets/stylesheets/material/components/_progress.scss
|
113
113
|
- app/assets/stylesheets/material/components/_snackbar.scss
|
114
|
+
- app/assets/stylesheets/material/components/_stepper.scss
|
114
115
|
- app/assets/stylesheets/material/components/_tab.scss
|
115
116
|
- app/assets/stylesheets/material/components/_table.scss
|
116
117
|
- app/assets/stylesheets/material/components/_tile.scss
|