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
@@ -0,0 +1,64 @@
|
|
1
|
+
.floating-label {
|
2
|
+
color: $black-hint;
|
3
|
+
cursor: text;
|
4
|
+
font-size: $font-size;
|
5
|
+
line-height: 1;
|
6
|
+
margin: 0;
|
7
|
+
padding: 0;
|
8
|
+
position: absolute;
|
9
|
+
top: (($input-height - $font-size) / 2);
|
10
|
+
left: 0;
|
11
|
+
@include transition(color 0.3s $timing, font-size 0.3s $timing, top 0.3s $timing);
|
12
|
+
.form-group-label [class*="col-"] & {
|
13
|
+
// position
|
14
|
+
left: $grid-gutter;
|
15
|
+
}
|
16
|
+
.form-group-label.control-focus &,
|
17
|
+
.form-group-label.control-highlight & {
|
18
|
+
color: $black-sec;
|
19
|
+
font-size: ($input-height - $line-height);
|
20
|
+
// position
|
21
|
+
top: (($input-height - $line-height) * -1);
|
22
|
+
}
|
23
|
+
.form-group-label.control-focus & {
|
24
|
+
color: $link-color;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
.form-group-label {
|
29
|
+
margin-top: ($line-height * 1.5);
|
30
|
+
margin-bottom: ($line-height * 1.5);
|
31
|
+
position: relative;
|
32
|
+
.form-control {
|
33
|
+
position: relative;
|
34
|
+
z-index: 1;
|
35
|
+
@include placeholder(transparent);
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
// colour
|
40
|
+
@each $color in $palette-list {
|
41
|
+
$i: index($palette-list, $color);
|
42
|
+
|
43
|
+
.form-group-label.form-group-#{$color} .floating-label {
|
44
|
+
color: nth($palette-color, $i);
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
.form-icon-label {
|
49
|
+
cursor: pointer;
|
50
|
+
display: block;
|
51
|
+
padding: (($input-height - $line-height) / 2) 0;
|
52
|
+
.form-group-icon.control-focus & {
|
53
|
+
color: $link-color;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
// colour
|
58
|
+
@each $color in $palette-list {
|
59
|
+
$i: index($palette-list, $color);
|
60
|
+
|
61
|
+
.form-group-icon.form-group-#{$color} .form-icon-label {
|
62
|
+
color: nth($palette-color, $i);
|
63
|
+
}
|
64
|
+
}
|
@@ -0,0 +1,76 @@
|
|
1
|
+
.switch {
|
2
|
+
position: relative;
|
3
|
+
&.checkbox,
|
4
|
+
&.radio {
|
5
|
+
label {
|
6
|
+
padding-left: ($font-size-h4 + ($font-size * 5 - $font-size-h4) / 4 + $grid-gutter / 2);
|
7
|
+
}
|
8
|
+
}
|
9
|
+
}
|
10
|
+
|
11
|
+
.switch-toggle {
|
12
|
+
background-color: $black-hint;
|
13
|
+
border-radius: ($font-size-h6 / 2);
|
14
|
+
cursor: pointer;
|
15
|
+
display: inline-block;
|
16
|
+
height: $font-size-h6;
|
17
|
+
margin-right: ($grid-gutter / 2);
|
18
|
+
position: relative;
|
19
|
+
vertical-align: middle;
|
20
|
+
width: ($font-size-h4 + ($font-size * 5 - $font-size-h4) / 4);
|
21
|
+
@include transition(background-color 0.3s $timing);
|
22
|
+
&:after {
|
23
|
+
background-color: $white;
|
24
|
+
border-radius: 50%;
|
25
|
+
content: "";
|
26
|
+
display: block;
|
27
|
+
height: $font-size-h4;
|
28
|
+
position: absolute;
|
29
|
+
top:(($font-size-h4 - $font-size-h6) / -2);
|
30
|
+
left: 0;
|
31
|
+
width: $font-size-h4;
|
32
|
+
@include box-shadow(0 1px 3px 1px rgba(0, 0, 0, 0.25));
|
33
|
+
@include transition(background-color 0.3s $timing, box-shadow 0.15s $timing, left 0.3s $timing);
|
34
|
+
}
|
35
|
+
input[type="checkbox"]:checked + &,
|
36
|
+
input[type="radio"]:checked + & {
|
37
|
+
background-color: $brand-color-light-m;
|
38
|
+
&:after {
|
39
|
+
background-color: $brand-color;
|
40
|
+
// position
|
41
|
+
left: (($font-size * 5 - $font-size-h4) / 4);
|
42
|
+
}
|
43
|
+
}
|
44
|
+
.checkbox.switch &,
|
45
|
+
.radio.switch & {
|
46
|
+
position: absolute;
|
47
|
+
top: (($line-height - $font-size-h6) / 2);
|
48
|
+
left: 0;
|
49
|
+
}
|
50
|
+
.no-touch & {
|
51
|
+
&:active:after {
|
52
|
+
@include box-shadow(0 1px 3px 1px rgba(0, 0, 0, 0.25), 0 0 0 (($font-size * 5 - $font-size-h4) / 4) rgba(0, 0, 0, 0.1));
|
53
|
+
}
|
54
|
+
}
|
55
|
+
.no-touch input[type="checkbox"]:checked + &,
|
56
|
+
.no-touch input[type="radio"]:checked + & {
|
57
|
+
&:active:after {
|
58
|
+
@include box-shadow(0 1px 3px 1px rgba(0, 0, 0, 0.25), 0 0 0 (($font-size * 5 - $font-size-h4) / 4) rgba(red($brand-color), green($brand-color), blue($brand-color), 0.25));
|
59
|
+
}
|
60
|
+
}
|
61
|
+
.touch & {
|
62
|
+
@include transition(background-color 0.3s $timing 0.15s);
|
63
|
+
&:after {
|
64
|
+
@include transition(background-color 0.3s $timing 0.15s, box-shadow 0.15s $timing, left 0.3s $timing 0.15s);
|
65
|
+
}
|
66
|
+
&.switch-toggle-on:after {
|
67
|
+
@include box-shadow(0 1px 3px 1px rgba(0, 0, 0, 0.25), 0 0 0 (($font-size * 5 - $font-size-h4) / 4) rgba(red($brand-color), green($brand-color), blue($brand-color), 0.25));
|
68
|
+
}
|
69
|
+
}
|
70
|
+
.touch input[type="checkbox"]:checked + &,
|
71
|
+
.touch input[type="radio"]:checked + & {
|
72
|
+
&.switch-toggle-on:after {
|
73
|
+
@include box-shadow(0 1px 3px 1px rgba(0, 0, 0, 0.25), 0 0 0 (($font-size * 5 - $font-size-h4) / 4) rgba(0, 0, 0, 0.1));
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
@@ -1,3 +1,68 @@
|
|
1
|
+
legend {
|
2
|
+
&[class*="col-xx-"] {
|
3
|
+
padding-left: ($grid-gutter / 2);
|
4
|
+
}
|
5
|
+
// 480
|
6
|
+
@include responsive(xs) {
|
7
|
+
&[class*="col-xs-"] {
|
8
|
+
padding-left: ($grid-gutter / 2);
|
9
|
+
}
|
10
|
+
}
|
11
|
+
// 768
|
12
|
+
@include responsive(sm) {
|
13
|
+
&[class*="col-sm-"] {
|
14
|
+
padding-left: ($grid-gutter / 2);
|
15
|
+
}
|
16
|
+
}
|
17
|
+
// 992
|
18
|
+
@include responsive(md) {
|
19
|
+
&[class*="col-md-"] {
|
20
|
+
padding-left: ($grid-gutter / 2);
|
21
|
+
}
|
22
|
+
}
|
23
|
+
// 1440
|
24
|
+
@include responsive(lg) {
|
25
|
+
&[class*="col-lg-"] {
|
26
|
+
padding-left: ($grid-gutter / 2);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
.checkbox,
|
32
|
+
.radio {
|
33
|
+
display: block;
|
34
|
+
position: relative;
|
35
|
+
.form-group & {
|
36
|
+
margin-top: (($input-height - $line-height) / 2);
|
37
|
+
padding-bottom: (($input-height - $line-height) / 2);
|
38
|
+
}
|
39
|
+
label {
|
40
|
+
cursor: pointer;
|
41
|
+
margin: 0;
|
42
|
+
min-height: $font-size;
|
43
|
+
padding-left: $line-height;
|
44
|
+
}
|
45
|
+
&.disabled,
|
46
|
+
fieldset[disabled] & {
|
47
|
+
label {
|
48
|
+
color: $black-hint;
|
49
|
+
cursor: not-allowed;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
.checkbox input[type="checkbox"],
|
55
|
+
.radio input[type="radio"] {
|
56
|
+
margin-left: ($line-height * -1);
|
57
|
+
position: absolute;
|
58
|
+
}
|
59
|
+
|
60
|
+
.checkbox-inline,
|
61
|
+
.radio-inline {
|
62
|
+
display: inline-block;
|
63
|
+
margin-right: $grid-gutter;
|
64
|
+
}
|
65
|
+
|
1
66
|
.form {
|
2
67
|
margin-top: $line-height;
|
3
68
|
margin-bottom: $line-height;
|
@@ -37,18 +102,40 @@
|
|
37
102
|
vertical-align: middle;
|
38
103
|
width: auto;
|
39
104
|
}
|
105
|
+
&.form-control-default,
|
106
|
+
.form-control-default & {
|
107
|
+
border: 1px solid $black-hint;
|
108
|
+
padding: (($input-height - $line-height) / 2 - 1) ($grid-gutter / 2);
|
109
|
+
@include transition(none);
|
110
|
+
&:focus {
|
111
|
+
border: 1px solid $brand-color;
|
112
|
+
padding: (($input-height - $line-height) / 2 - 1) ($grid-gutter / 2);
|
113
|
+
}
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
// colour
|
40
118
|
@each $color in $palette-list {
|
41
119
|
$i: index($palette-list, $color);
|
42
120
|
|
43
|
-
.form-group-#{$color}
|
121
|
+
.form-group-#{$color} .form-control {
|
44
122
|
border-bottom-color: nth($palette-color, $i);
|
45
123
|
}
|
46
124
|
}
|
125
|
+
|
126
|
+
input[type="color"].form-control-default,
|
127
|
+
.form-control-default input[type="color"] {
|
128
|
+
min-width: ($grid-gutter + $line-height + 2);
|
129
|
+
}
|
130
|
+
|
131
|
+
label + .form-control.form-control-default,
|
132
|
+
.form-control-default label + .form-control {
|
133
|
+
margin-top: ($line-height / 4);
|
47
134
|
}
|
48
135
|
|
49
136
|
select.form-control {
|
50
137
|
-webkit-appearance: none;
|
51
|
-
@include responsive(
|
138
|
+
@include responsive("(-webkit-min-device-pixel-ratio: 0)") {
|
52
139
|
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAkCAMAAACg5NohAAAAZlBMVEUAAABlZWXLy8vg4OB6enrX19fg4OCdnZ2KiopsbGzn5+dzc3Pt7e3GxsbPz89ubm7u7u5ycnLY2NiJiYmGhoZoaGjq6up/f3+WlpaGhoaZmZllZWVhYWFYWFhaWlpdXV1bW1tWVlaZeqNTAAAAHHRSTlMA+WVC31BEqMzyNekpcGDpKNxJzcjkL9CjwZ/yNlWBeQAAALBJREFUKM/NztkWwiAMRdFQoNparR2cGf//J8UFNdXEd8/rXrkAq9rLoIGt3Vkn9A8xJoiaSqeSJGskuXlJNs2sFRPjWo7lptzVVEoO7VyEWofvoEn8NTUUxuZo2KyCPjo2+wB9m7ZM01zB/9feN2zXEVS0bLEHZQ1b6EE2jhNvDsBbMBWkampepJtizNpi4UPyGrEimBbhLT4L2nLnzR6+ksnIGm7iGjXv8xq14bSWJwymLjvMk/6KAAAAAElFTkSuQmCC);
|
53
140
|
background-position: 100% (($input-height - 12) / 2 - 1);
|
54
141
|
background-repeat: no-repeat;
|
@@ -62,6 +149,19 @@ select.form-control {
|
|
62
149
|
}
|
63
150
|
}
|
64
151
|
|
152
|
+
select.form-control-default,
|
153
|
+
.form-control-default select {
|
154
|
+
@include responsive("(-webkit-min-device-pixel-ratio: 0)") {
|
155
|
+
background-position: 99% (($input-height - 12) / 2 - 1);
|
156
|
+
background-position: calc(100% - #{$grid-gutter / 2}) (($input-height - 12) / 2 - 1);
|
157
|
+
padding-right: ($grid-gutter * 1.5);
|
158
|
+
&[multiple],
|
159
|
+
&[size] {
|
160
|
+
padding-right: ($grid-gutter / 2);
|
161
|
+
}
|
162
|
+
}
|
163
|
+
}
|
164
|
+
|
65
165
|
textarea.form-control {
|
66
166
|
height: auto;
|
67
167
|
}
|
@@ -81,146 +181,83 @@ textarea.form-control {
|
|
81
181
|
margin-bottom: 0;
|
82
182
|
padding-top: (($input-height - $line-height) / 2);
|
83
183
|
padding-bottom: (($input-height - $line-height) / 2 - 1);
|
84
|
-
|
85
|
-
|
86
|
-
// checkbox & radio
|
87
|
-
.checkbox,
|
88
|
-
.radio {
|
89
|
-
display: block;
|
90
|
-
position: relative;
|
91
|
-
.form-group & {
|
92
|
-
margin-top: (($input-height - $line-height) / 2);
|
93
|
-
padding-bottom: (($input-height - $line-height) / 2);
|
94
|
-
}
|
95
|
-
label {
|
96
|
-
cursor: pointer;
|
97
|
-
margin: 0;
|
98
|
-
min-height: $font-size;
|
99
|
-
padding-left: $line-height;
|
100
|
-
}
|
101
|
-
&.disabled,
|
102
|
-
fieldset[disabled] & {
|
103
|
-
label {
|
104
|
-
color: $black-hint;
|
105
|
-
cursor: not-allowed;
|
106
|
-
}
|
107
|
-
}
|
108
|
-
}
|
109
|
-
|
110
|
-
.checkbox input[type="checkbox"],
|
111
|
-
.radio input[type="radio"] {
|
112
|
-
margin-left: ($line-height * -1);
|
113
|
-
position: absolute;
|
184
|
+
&.form-control-default {
|
185
|
+
padding-top: (($input-height - $line-height) / 2 - 1);
|
114
186
|
}
|
187
|
+
}
|
115
188
|
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
189
|
+
.form-group {
|
190
|
+
margin-top: $line-height;
|
191
|
+
margin-bottom: $line-height;
|
192
|
+
legend + & {
|
193
|
+
margin-top: 0;
|
120
194
|
}
|
195
|
+
}
|
121
196
|
|
122
|
-
|
123
|
-
|
197
|
+
.form-group-btn {
|
198
|
+
margin-bottom: $line-height;
|
199
|
+
.btn {
|
124
200
|
margin-top: $line-height;
|
125
|
-
margin-
|
126
|
-
}
|
127
|
-
|
128
|
-
.form-group-btn {
|
129
|
-
margin-bottom: $line-height;
|
130
|
-
.btn {
|
131
|
-
margin-top: $line-height;
|
132
|
-
margin-right: $grid-gutter;
|
133
|
-
}
|
201
|
+
margin-right: $grid-gutter;
|
134
202
|
}
|
203
|
+
}
|
135
204
|
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
}
|
205
|
+
.form-help {
|
206
|
+
display: block;
|
207
|
+
font-size: $font-size-h6;
|
208
|
+
font-weight: 400;
|
209
|
+
margin-top: ($line-height / 2);
|
210
|
+
margin-bottom: ($line-height / 2);
|
211
|
+
position: relative;
|
212
|
+
}
|
145
213
|
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
214
|
+
.form-help-icon {
|
215
|
+
position: absolute;
|
216
|
+
top: (($line-height - $font-size-h6) / 2);
|
217
|
+
right: 0;
|
218
|
+
}
|
151
219
|
|
152
|
-
|
153
|
-
|
154
|
-
|
220
|
+
.form-help-msg {
|
221
|
+
padding-right: (18em / 14);
|
222
|
+
}
|
155
223
|
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
.form-group-#{$color} & {
|
164
|
-
color: nth($palette-color, $i);
|
224
|
+
.form-label {
|
225
|
+
display: block;
|
226
|
+
// 480
|
227
|
+
@include responsive(xs) {
|
228
|
+
[class*="col-xs"] > & {
|
229
|
+
@include form-label();
|
165
230
|
}
|
166
231
|
}
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
}
|
172
|
-
}
|
173
|
-
// 768
|
174
|
-
@include responsive(sm) {
|
175
|
-
[class*="col-sm"] > & {
|
176
|
-
@include form-label();
|
177
|
-
}
|
232
|
+
// 768
|
233
|
+
@include responsive(sm) {
|
234
|
+
[class*="col-sm"] > & {
|
235
|
+
@include form-label();
|
178
236
|
}
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
237
|
+
}
|
238
|
+
// 992
|
239
|
+
@include responsive(md) {
|
240
|
+
[class*="col-md"] > & {
|
241
|
+
@include form-label();
|
184
242
|
}
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
243
|
+
}
|
244
|
+
// 1440
|
245
|
+
@include responsive(lg) {
|
246
|
+
[class*="col-lg"] > & {
|
247
|
+
@include form-label();
|
190
248
|
}
|
249
|
+
}
|
191
250
|
}
|
192
251
|
|
193
|
-
|
194
|
-
|
252
|
+
// colour
|
253
|
+
@each $color in $palette-list {
|
254
|
+
$i: index($palette-list, $color);
|
255
|
+
|
256
|
+
.form-group-#{$color} .form-label {
|
257
|
+
color: nth($palette-color, $i);
|
258
|
+
}
|
195
259
|
}
|
196
260
|
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
padding-left: ($grid-gutter / 2);
|
201
|
-
}
|
202
|
-
// 480
|
203
|
-
@include responsive(xs) {
|
204
|
-
&[class*="col-xs-"] {
|
205
|
-
padding-left: ($grid-gutter / 2);
|
206
|
-
}
|
207
|
-
}
|
208
|
-
// 768
|
209
|
-
@include responsive(sm) {
|
210
|
-
&[class*="col-sm-"] {
|
211
|
-
padding-left: ($grid-gutter / 2);
|
212
|
-
}
|
213
|
-
}
|
214
|
-
// 992
|
215
|
-
@include responsive(md) {
|
216
|
-
&[class*="col-md-"] {
|
217
|
-
padding-left: ($grid-gutter / 2);
|
218
|
-
}
|
219
|
-
}
|
220
|
-
// 1440
|
221
|
-
@include responsive(lg) {
|
222
|
-
&[class*="col-lg-"] {
|
223
|
-
padding-left: ($grid-gutter / 2);
|
224
|
-
}
|
225
|
-
}
|
226
|
-
}
|
261
|
+
.label {
|
262
|
+
margin-bottom: ($line-height / 2);
|
263
|
+
}
|