This repository has been archived by the owner on Jun 16, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
/
select.scss
104 lines (87 loc) · 2.07 KB
/
select.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
// the path must be absolute becase gulp-scss is not able to use the webpack shorthand!
@import "../../../node_modules/@angular-mdl/core/scss/variables";
$input-text-focus-border-width: 2px;
$popover-direction-up-bottom-offset: $input-text-vertical-spacing + $input-text-focus-border-width;
.mdl-select {
&--floating-label {
@extend .mdl-textfield--floating-label !optional;
.mdl-textfield {
&.is-dirty {
@extend .mdl-textfield--floating-label.is-dirty !optional;
}
}
padding: 0;
.mdl-textfield__label {
&:after {
@extend .mdl-textfield__label:after !optional;
}
&.is-dirty {
&:after {
@extend .mdl-textfield__label.is-dirty:after !optional;
}
}
}
}
.mdl-popover.direction-up {
bottom: $popover-direction-up-bottom-offset;
&.mdl-popover--above {
bottom: $popover-direction-up-bottom-offset + $input-text-vertical-spacing + $input-text-font-size + $input-text-padding * 2;
}
}
&__toggle {
cursor: pointer;
float: right;
margin-top: -1.75rem;
}
.mdl-textfield {
&__input {
box-sizing: border-box;
cursor: pointer;
overflow: hidden;
padding-right: 1.5rem;
text-overflow: ellipsis;
white-space: nowrap;
&:focus {
outline: none;
}
}
&.is-focused {
.mdl-select__toggle {
color: $input-text-highlight-color;
}
}
&.is-invalid {
.mdl-select__toggle {
color: $input-text-error-color;
}
}
&.is-disabled {
.mdl-select__toggle {
color: $input-text-disabled-text-color;
}
}
}
.mdl-list {
max-height: 280px;
overflow-y: auto;
padding: 0;
&__item {
cursor: pointer;
&:hover {
background-color: $default-item-hover-bg-color;
}
&.is-active {
color: $checkbox-color;
background-color: $default-item-active-bg-color;
}
}
}
.mdl-option--disabled {
.mdl-list {
&__item {
cursor: default;
opacity: .5;
}
}
}
}