/
_forms.scss
62 lines (57 loc) · 1.05 KB
/
_forms.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
Forms
Styleguide 2.9
*/
// Fix Bootstrap's behavior with email and select fields.
.form-select,
.form-email {
display: block;
margin-top: $form-text-margin-top;
}
input {
font-weight: bold;
}
input::-webkit-input-placeholder { /* Chrome/Opera/Safari */
font-weight: normal;
}
input::-moz-placeholder { /* Firefox 19+ */
font-weight: normal;
}
input:-ms-input-placeholder { /* IE 10+ */
font-weight: normal;
}
input:-moz-placeholder { /* Firefox 18- */
font-weight: normal;
}
fieldset {
&.error {
.fieldset-wrapper {
border-color: $danger !important;
}
.media-library-widget-empty-text {
color: $color-achillies;
}
}
}
@mixin make-inline-form {
fieldset {
display: inline-block;
input {
margin-top: 0;
}
}
@include media-breakpoint-down(md) {
display: block;
}
.button {
display: inline-block;
vertical-align: top;
@include media-breakpoint-down(md) {
display: block;
margin: 0 auto;
}
@include media-breakpoint-down(xs) {
width: 100%;
}
}
}