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
@@ -1,6 +1,4 @@
|
|
1
|
-
//
|
2
|
-
// todo: only non-clickable stepper is supported for now
|
3
|
-
//
|
1
|
+
// Todo: only non-clickable stepper is supported for now
|
4
2
|
|
5
3
|
.stepper {
|
6
4
|
align-items: center;
|
@@ -14,7 +12,7 @@
|
|
14
12
|
&::after,
|
15
13
|
&::before {
|
16
14
|
border-top: $stepper-border-width solid $stepper-border-color;
|
17
|
-
content:
|
15
|
+
content: '';
|
18
16
|
display: block;
|
19
17
|
position: absolute;
|
20
18
|
}
|
@@ -28,108 +26,111 @@
|
|
28
26
|
}
|
29
27
|
}
|
30
28
|
|
31
|
-
//
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
29
|
+
// Horizontal and vertical stepper
|
30
|
+
.stepper-horiz {
|
31
|
+
background-color: $stepper-bg;
|
32
|
+
display: flex;
|
33
|
+
justify-content: space-between;
|
34
|
+
overflow-x: auto;
|
35
|
+
overflow-y: hidden;
|
36
|
+
position: relative;
|
37
|
+
|
38
|
+
&::before {
|
39
|
+
border-top: $stepper-border-width solid $stepper-border-color;
|
40
|
+
content: '';
|
41
|
+
display: block;
|
42
|
+
position: absolute;
|
43
|
+
top: 50%;
|
44
|
+
right: $stepper-padding-x;
|
45
|
+
left: $stepper-padding-x;
|
46
|
+
}
|
47
|
+
|
48
|
+
.stepper {
|
49
|
+
&::after,
|
50
|
+
&::before {
|
42
51
|
border-top: $stepper-border-width solid $stepper-border-color;
|
43
|
-
|
44
|
-
|
45
|
-
position: absolute;
|
46
|
-
top: 50%;
|
47
|
-
right: $stepper-padding-x;
|
48
|
-
left: $stepper-padding-x;
|
52
|
+
top: 50%;
|
53
|
+
width: ($stepper-padding-x - $stepper-inner-spacer);
|
49
54
|
}
|
50
55
|
|
51
|
-
|
52
|
-
|
53
|
-
&::before {
|
54
|
-
border-top: $stepper-border-width solid $stepper-border-color;
|
55
|
-
// position
|
56
|
-
top: 50%;
|
57
|
-
width: ($stepper-padding-x - $stepper-inner-spacer);
|
58
|
-
}
|
59
|
-
&::after {
|
60
|
-
// position
|
61
|
-
right: 0;
|
62
|
-
}
|
63
|
-
&::before {
|
64
|
-
// position
|
65
|
-
left: 0;
|
66
|
-
}
|
56
|
+
&::after {
|
57
|
+
right: 0;
|
67
58
|
}
|
68
|
-
}
|
69
59
|
|
70
|
-
|
71
|
-
|
72
|
-
position: relative;
|
73
|
-
|
74
|
-
.stepper {
|
75
|
-
&::after,
|
76
|
-
&::before {
|
77
|
-
border-left: $stepper-border-width solid $stepper-border-color;
|
78
|
-
height: ($stepper-padding-y - $stepper-inner-spacer);
|
79
|
-
// position
|
80
|
-
left: ($stepper-icon-height / 2 + $stepper-padding-x);
|
81
|
-
}
|
82
|
-
&::after {
|
83
|
-
// position
|
84
|
-
bottom: 0;
|
85
|
-
}
|
86
|
-
&::before {
|
87
|
-
// position
|
88
|
-
top: 0;
|
89
|
-
}
|
60
|
+
&::before {
|
61
|
+
left: 0;
|
90
62
|
}
|
91
63
|
}
|
64
|
+
}
|
92
65
|
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
.stepper-icon {
|
97
|
-
background-color: $stepper-icon-bg;
|
98
|
-
border-radius: 50%;
|
99
|
-
color: $stepper-icon-color;
|
100
|
-
font-size: $stepper-icon-font-size;
|
101
|
-
font-weight: $stepper-icon-font-weight;
|
102
|
-
height: $stepper-icon-height;
|
103
|
-
line-height: $stepper-icon-height;
|
104
|
-
margin-right: $stepper-inner-spacer;
|
105
|
-
position: relative;
|
106
|
-
text-align: center;
|
107
|
-
vertical-align: middle;
|
108
|
-
width: $stepper-icon-height;
|
109
|
-
|
110
|
-
.stepper.active &,
|
111
|
-
.stepper.done & {
|
112
|
-
background-color: $stepper-icon-bg-active;
|
113
|
-
color: $stepper-icon-color-active;
|
114
|
-
}
|
115
|
-
}
|
66
|
+
.stepper-vert {
|
67
|
+
background-color: $stepper-bg;
|
68
|
+
position: relative;
|
116
69
|
|
117
|
-
.stepper
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
70
|
+
.stepper {
|
71
|
+
&::after,
|
72
|
+
&::before {
|
73
|
+
border-left: $stepper-border-width solid $stepper-border-color;
|
74
|
+
height: ($stepper-padding-y - $stepper-inner-spacer);
|
75
|
+
left: ($stepper-icon-height / 2 + $stepper-padding-x);
|
76
|
+
}
|
122
77
|
|
123
|
-
|
124
|
-
|
125
|
-
color: $stepper-text-color-active;
|
78
|
+
&::after {
|
79
|
+
bottom: 0;
|
126
80
|
}
|
127
81
|
|
128
|
-
|
129
|
-
|
82
|
+
&::before {
|
83
|
+
top: 0;
|
130
84
|
}
|
131
85
|
}
|
86
|
+
}
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
// Misc
|
91
|
+
|
92
|
+
.stepper-icon {
|
93
|
+
background-color: $stepper-icon-bg;
|
94
|
+
border-radius: 50%;
|
95
|
+
color: $stepper-icon-color;
|
96
|
+
font-size: $stepper-icon-font-size;
|
97
|
+
font-weight: $stepper-icon-font-weight;
|
98
|
+
height: $stepper-icon-height;
|
99
|
+
line-height: $stepper-icon-height;
|
100
|
+
margin-right: $stepper-inner-spacer;
|
101
|
+
position: relative;
|
102
|
+
text-align: center;
|
103
|
+
vertical-align: middle;
|
104
|
+
width: $stepper-icon-height;
|
105
|
+
|
106
|
+
.stepper.active &,
|
107
|
+
.stepper.done & {
|
108
|
+
@include color-yiq($stepper-icon-bg-active);
|
109
|
+
|
110
|
+
background-color: $stepper-icon-bg-active;
|
111
|
+
}
|
112
|
+
|
113
|
+
.material-icons {
|
114
|
+
font-size: 1.333em;
|
115
|
+
}
|
116
|
+
}
|
132
117
|
|
133
|
-
|
134
|
-
|
118
|
+
.stepper-text {
|
119
|
+
color: $stepper-text-color;
|
120
|
+
font-size: $stepper-text-font-size;
|
121
|
+
font-weight: $stepper-text-font-weight;
|
122
|
+
position: relative;
|
123
|
+
|
124
|
+
.stepper.active &,
|
125
|
+
.stepper.done & {
|
126
|
+
color: $stepper-text-color-active;
|
135
127
|
}
|
128
|
+
|
129
|
+
.stepper.active & {
|
130
|
+
font-weight: bolder;
|
131
|
+
}
|
132
|
+
}
|
133
|
+
|
134
|
+
.stepper-text-sub {
|
135
|
+
font-weight: $font-weight-regular;
|
136
|
+
}
|
@@ -1,131 +1,112 @@
|
|
1
|
-
//
|
2
|
-
// todo: tabs with icons
|
3
|
-
//
|
4
|
-
|
5
1
|
.nav-tabs {
|
6
|
-
box-shadow: inset 0 -
|
2
|
+
box-shadow: inset 0 ($nav-tab-border-width * -2) 0 ($nav-tab-border-width * -1) $nav-tab-border-color;
|
3
|
+
|
4
|
+
&.border-0,
|
5
|
+
&.border-bottom-0 {
|
6
|
+
box-shadow: none;
|
7
|
+
}
|
7
8
|
|
8
9
|
.nav-link {
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
font-size: $nav-tab-
|
13
|
-
font-weight: $nav-tab-
|
14
|
-
height:
|
15
|
-
|
16
|
-
line-height: 1;
|
17
|
-
min-height: $nav-tab-link-height;
|
10
|
+
@include transition-standard(background-color, color, opacity);
|
11
|
+
|
12
|
+
color: $nav-tab-color;
|
13
|
+
font-size: $nav-tab-font-size;
|
14
|
+
font-weight: $nav-tab-font-weight;
|
15
|
+
line-height: $nav-tab-line-height;
|
16
|
+
min-height: $nav-tab-height;
|
18
17
|
opacity: $nav-tab-link-opacity;
|
19
|
-
padding:
|
18
|
+
padding: $nav-tab-link-padding-y $nav-tab-link-padding-x;
|
20
19
|
position: relative;
|
21
20
|
text-transform: uppercase;
|
22
|
-
|
21
|
+
|
22
|
+
@include active-focus-hover {
|
23
|
+
background-color: $nav-tab-bg-hover;
|
24
|
+
}
|
23
25
|
|
24
26
|
&::before {
|
27
|
+
@include transition-standard(opacity);
|
28
|
+
|
25
29
|
background-color: $nav-tab-indicator-bg;
|
26
|
-
content:
|
30
|
+
content: '';
|
27
31
|
display: block;
|
28
32
|
height: $nav-tab-indicator-height;
|
29
33
|
opacity: 0;
|
30
34
|
position: absolute;
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
@include transition-standard(opacity);
|
35
|
+
right: 0;
|
36
|
+
bottom: 0;
|
37
|
+
left: 0;
|
35
38
|
}
|
36
39
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
+
&:active,
|
41
|
+
&.active {
|
42
|
+
opacity: 1;
|
40
43
|
}
|
41
44
|
|
42
|
-
|
43
|
-
|
44
|
-
background-color: $nav-link-bg-active;
|
45
|
-
}
|
45
|
+
&.active {
|
46
|
+
color: $nav-tab-color-active;
|
46
47
|
|
47
|
-
|
48
|
-
|
49
|
-
opacity: $nav-tab-link-opacity-visible;
|
48
|
+
&::before {
|
49
|
+
opacity: 1;
|
50
50
|
}
|
51
|
+
}
|
51
52
|
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
53
|
+
&.disabled {
|
54
|
+
background-color: transparent;
|
55
|
+
color: $nav-tab-color-disabled;
|
56
|
+
opacity: 1;
|
57
|
+
}
|
58
|
+
}
|
57
59
|
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
color: $nav-link-color-disabled;
|
62
|
-
opacity: $nav-tab-link-opacity-visible;
|
63
|
-
}
|
60
|
+
.nav-item.show .nav-link {
|
61
|
+
background-color: $nav-tab-bg-hover;
|
62
|
+
opacity: 1;
|
64
63
|
}
|
65
64
|
}
|
66
65
|
|
67
|
-
|
68
|
-
|
69
|
-
&.border-0,
|
70
|
-
&.border-bottom-0 {
|
71
|
-
box-shadow: none;
|
72
|
-
}
|
66
|
+
.nav-tabs-material {
|
67
|
+
position: relative;
|
73
68
|
|
74
|
-
|
75
|
-
|
76
|
-
|
69
|
+
&.animate {
|
70
|
+
.nav-link::before {
|
71
|
+
opacity: 0;
|
72
|
+
}
|
77
73
|
|
78
|
-
|
79
|
-
|
80
|
-
}
|
81
|
-
}
|
74
|
+
.nav-tabs-indicator {
|
75
|
+
@include transition-standard(left, right);
|
82
76
|
}
|
77
|
+
}
|
83
78
|
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
-webkit-overflow-scrolling: touch;
|
79
|
+
.nav-link::before {
|
80
|
+
transition: none;
|
81
|
+
}
|
88
82
|
|
89
|
-
|
90
|
-
|
91
|
-
|
83
|
+
.nav-tabs-indicator {
|
84
|
+
background-color: $nav-tab-indicator-bg;
|
85
|
+
display: none;
|
86
|
+
height: $nav-tab-indicator-height;
|
87
|
+
position: absolute;
|
88
|
+
bottom: 0;
|
92
89
|
|
93
|
-
|
94
|
-
|
95
|
-
}
|
96
|
-
}
|
90
|
+
&.show {
|
91
|
+
display: block;
|
97
92
|
}
|
98
93
|
}
|
94
|
+
}
|
99
95
|
|
100
|
-
|
101
|
-
|
96
|
+
.nav-tabs-scrollable {
|
97
|
+
box-shadow: inset 0 ($nav-tab-border-width * -2) 0 ($nav-tab-border-width * -1) $nav-tab-border-color;
|
98
|
+
height: $nav-tab-height;
|
99
|
+
overflow: hidden;
|
102
100
|
|
103
|
-
|
104
|
-
|
105
|
-
|
101
|
+
.nav-tabs {
|
102
|
+
box-shadow: none;
|
103
|
+
flex-wrap: nowrap;
|
104
|
+
overflow-x: auto;
|
105
|
+
overflow-y: hidden;
|
106
|
+
padding-bottom: $nav-tab-height;
|
106
107
|
|
107
|
-
|
108
|
-
background-color: $nav-tab-indicator-bg;
|
109
|
-
height: $nav-tab-indicator-height;
|
108
|
+
&::-webkit-scrollbar {
|
110
109
|
display: none;
|
111
|
-
position: absolute;
|
112
|
-
bottom: 0;
|
113
|
-
|
114
|
-
&.show {
|
115
|
-
display: block;
|
116
|
-
}
|
117
110
|
}
|
118
|
-
|
119
|
-
// animation
|
120
|
-
&.animate {
|
121
|
-
.nav-link::before {
|
122
|
-
opacity: 0;
|
123
|
-
}
|
124
|
-
|
125
|
-
.nav-tabs-indicator {
|
126
|
-
transition-duration: $transition-duration;
|
127
|
-
transition-property: left, right;
|
128
|
-
transition-timing-function: $transition-timing-function-standard;
|
129
|
-
}
|
130
|
-
}
|
131
111
|
}
|
112
|
+
}
|
@@ -1,27 +1,27 @@
|
|
1
1
|
.floating-label {
|
2
|
+
@include floating-label-size($textfield-font-size, $textfield-height, $textfield-line-height, $textfield-padding-y);
|
3
|
+
|
4
|
+
padding-top: $floating-label-font-size-focus;
|
2
5
|
position: relative;
|
3
|
-
@include floating-label-size($textfield-font-size, $textfield-height, $textfield-padding-top, $textfield-padding-bottom);
|
4
6
|
|
5
7
|
> label {
|
8
|
+
@include text-truncate;
|
9
|
+
@include transition-standard(color, line-height, top, transform);
|
10
|
+
|
6
11
|
color: $floating-label-color;
|
7
|
-
cursor: text;
|
8
12
|
display: block;
|
9
13
|
font-weight: normal;
|
10
14
|
margin: 0;
|
11
|
-
overflow: hidden;
|
12
15
|
padding: 0;
|
13
16
|
position: absolute;
|
14
|
-
|
15
|
-
text-overflow: ellipsis;
|
17
|
+
left: 0;
|
16
18
|
transform-origin: 0 0;
|
17
|
-
white-space: nowrap;
|
18
|
-
@include transition-standard(color, top, transform);
|
19
19
|
}
|
20
20
|
|
21
21
|
&.has-value > label,
|
22
22
|
&.is-focused > label {
|
23
|
-
|
24
|
-
|
23
|
+
line-height: 1;
|
24
|
+
top: 0;
|
25
25
|
}
|
26
26
|
|
27
27
|
&.is-focused > label {
|
@@ -31,26 +31,35 @@
|
|
31
31
|
> .form-control {
|
32
32
|
position: relative;
|
33
33
|
|
34
|
+
&:focus {
|
35
|
+
&::placeholder {
|
36
|
+
color: $textfield-hint-color;
|
37
|
+
opacity: 1;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
34
41
|
&::placeholder {
|
42
|
+
@include transition-standard(opacity);
|
43
|
+
|
35
44
|
color: transparent;
|
36
45
|
opacity: 0;
|
37
46
|
}
|
38
47
|
}
|
39
48
|
}
|
40
49
|
|
41
|
-
//
|
42
|
-
|
43
|
-
|
50
|
+
// Size
|
51
|
+
.floating-label-lg {
|
52
|
+
@include floating-label-size($textfield-font-size-lg, $textfield-height-lg, $textfield-line-height-lg, $textfield-padding-y-lg);
|
44
53
|
|
45
|
-
|
46
|
-
|
47
|
-
}
|
54
|
+
> .form-control {
|
55
|
+
@extend %form-control-lg;
|
48
56
|
}
|
57
|
+
}
|
49
58
|
|
50
|
-
|
51
|
-
|
59
|
+
.floating-label-sm {
|
60
|
+
@include floating-label-size($textfield-font-size-sm, $textfield-height-sm, $textfield-line-height-sm, $textfield-padding-y-sm);
|
52
61
|
|
53
|
-
|
54
|
-
|
55
|
-
}
|
62
|
+
> .form-control {
|
63
|
+
@extend %form-control-sm;
|
56
64
|
}
|
65
|
+
}
|