blob: a84d312b674bdf6b11f4135999f994f8db6449a2 [file] [log] [blame]
Israel Lavi1994c982018-05-21 17:42:00 +03001.sdc-input {
2 margin-bottom: 10px;
3
4 .sdc-input__label {
5 margin-bottom: 5px;
6 display: block;
7 @include body-3-emphasis;
8
9 &.required::before {
10 content: '*';
11 color: $red;
12 margin: 0 4px 0 0;
13 }
14 }
15
16 .sdc-input__input {
17 @include box-sizing;
18 padding: 0 10px;
19 height: 38px;
20 width: 100%;//415px;
21 border: solid 1px $light-gray;
22 border-radius:2px;
23 color: $dark-gray;
24
25 &.error, &.error:focus, &.error:disabled {
26 border: solid 1px $red;
27 color: $red;
28 outline: none;
29 }
30
31 &:read-only{
32 border: none;
33 outline: none;
34 color: $text-black
35 }
36 &:-moz-read-only { /* For Firefox */
37 border: none;
38 outline: none;
39 color: $text-black
40 }
41
42 &:focus {
43 border-color: $blue;
44 outline: 0 none;
45 color: $text-black;
46 }
47
48 &:disabled {
49 background: $light-silver;
50 color: $gray;
51 }
52
53 &::-webkit-input-placeholder /* Chrome/Opera/Safari */ {
54 color: $gray;
55 @include base-font-italic;
56 }
57 &::-moz-placeholder /* Firefox 19+ */ {
58 color: $gray;
59 @include base-font-italic;
60 }
61 &:-moz-placeholder /* Firefox 18- */ {
62 color: $gray;
63 @include base-font-italic;
64 }
65 &:-ms-input-placeholder /* IE 10+ */
66 {
67 color: $gray;
68 @include base-font-italic;
69 }
70 }
71
72 .sdc-label__error{
73 margin-top: 2px;
74 margin-left: 2px;
75 @include body-3;
76 }
77
78}