-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path_SelectBox.scss
executable file
·95 lines (88 loc) · 1.74 KB
/
_SelectBox.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
@import "../../_scss/w98/var/colors";
@import "../../_scss/w98/mixins/box-shadows";
@import "../../_scss/w98/functions/box-shadows";
@import "../../_scss/w98/var/var";
.SelectBox {
position: relative;
width: 100%;
background-color: #ffffff;
padding: 2px;
&:disabled,
&.disabled {
pointer-events: none;
> div {
overflow: hidden;
}
background-color: $grey;
button {
// @todo remove important
color: $darkgrey !important; // stylelint-disable-line
}
.icon {
filter: grayscale(1);
}
}
> div {
position: relative;
overflow: auto;
}
&:after {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
@include shadow-input;
pointer-events: none;
content: "";
}
button:not(.icon) {
display: block;
outline: none;
background: transparent;
border: none;
white-space: nowrap;
overflow: hidden;
color: $black;
width: 100%;
text-align: left;
&:after {
content: attr(title);
position: initial;
}
&.is-active {
background-color: $blue;
color: #ffffff;
outline-offset: -1px;
outline: 1px dotted #ffffff;
}
}
&--ExplorerIcon {
> div {
display: flex;
flex-direction: row;
overflow-y: hidden;
padding-bottom: 20px;
.explorer-icon {
margin: 2px 8px;
}
}
}
.icon--list {
margin: 0px;
padding: 1px;
.icon__text {
width: initial;
}
// stylelint-disable selector-max-specificity
&:focus:not(.is-active),
&:active:not(.is-active) {
.icon__text {
background-color: transparent;
color: $black;
outline: none;
outline-offset: -1px;
}
}
}
}