-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy path_select.scss
170 lines (136 loc) Β· 3.68 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
// http://filamentgroup.github.io/select-css/demo/
.aesthetic-windows-95-select {
@include windows-95-push-in;
position: relative;
overflow: hidden;
display: block;
background-color: $aesthetic-windows-95-white;
cursor: pointer;
select {
cursor: pointer;
padding-left: 8px;
padding-top: 3px;
padding-bottom: 3px;
border: none;
box-shadow: none;
background: transparent;
background-image: none;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
display: inline;
// Don't show rounded corners on background
margin-left: -5px;
width: calc(100% + 5px);
&:focus, &:focus-within {
@include windows-95-focus-outline;
background-color: $aesthetic-windows-95-blue;
color: $aesthetic-windows-95-white;
}
}
.aesthetic-windows-95-select-checkmark {
position: absolute;
top: 0px;
right: 0px;
width: 15px;
height: 16px;
background: linear-gradient(to bottom right, $aesthetic-windows-95-white 0%, $aesthetic-windows-95-grey 2%, $aesthetic-windows-95-grey 94%, $aesthetic-windows-95-black 100%);
border-top: 2px solid $aesthetic-windows-95-grey-border;
border-left: 2px solid $aesthetic-windows-95-grey-border;
border-right: 1px solid $aesthetic-windows-95-black;
border-bottom: 1px solid $aesthetic-windows-95-black;
cursor: pointer;
pointer-events: none;
&:after {
content: " ";
width: 100px;
height: 100px;
z-index: 100;
width: 0;
height: 0;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-top: 7px solid $aesthetic-windows-95-black;
margin-top: -3px;
position: absolute;
top: 50%;
right: 4px;
z-index: 2;
cursor: pointer;
pointer-events: none;
}
}
}
.aesthetic-windows-xp-select {
border: 2px solid $aesthetic-windows-xp-light-blue;
position: relative;
overflow: hidden;
display: block;
background-color: $aesthetic-windows-95-white;
cursor: pointer;
select {
cursor: pointer;
padding-left: 8px;
padding-top: 4px;
padding-bottom: 3px;
border: none;
box-shadow: none;
background: $aesthetic-windows-xp-white;
background-image: none;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
display: inline;
// Don't show rounded corners on background
margin-left: -5px;
width: calc(102% + 5px);
&:focus, &:focus-within {
@include windows-xp-focus-outline;
background-color: $aesthetic-windows-xp-blue;
color: $aesthetic-windows-xp-white;
}
}
&:after {
content: " ";
width: 21px;
height: 25px;
position: absolute;
top: 0px;
right: 0px;
background-color: $aesthetic-windows-xp-white;
pointer-events: none;
}
.aesthetic-windows-xp-select-checkmark {
position: absolute;
top: 1px;
right: 1px;
width: 14px;
height: 16px;
transform: rotate(180deg);
background: linear-gradient(to top left, $aesthetic-windows-xp-white 0%, $aesthetic-windows-xp-light-select-blue 50%);
border: 1px solid $aesthetic-windows-xp-light-blue;
border-bottom-left-radius: 1px;
border-bottom-right-radius: 1px;
border-top-right-radius: 1px;
cursor: pointer;
pointer-events: none;
z-index: 1;
&:after {
content: "^";
font-family: sans-serif;
color: $aesthetic-windows-xp-dark-select-blue;
font-weight: bold;
width: 100px;
height: 100px;
z-index: 100;
width: 0;
height: 0;
border: none;
position: absolute;
top: 1px;
left: 2px;
cursor: pointer;
pointer-events: none;
}
}
}