File tree Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ const GoogleFonts_Icons_ArrowDropUp = (props) => (
34
34
const Img = ( { item } ) => ( < img src = { item [ 1 ] } title = { item [ 0 ] } alt = "" className = 'fi r2px ow' /> ) ;
35
35
36
36
let selectID = 0 ;
37
- const ArrowDropUp_Translate = [ 'none' , '0px 10px ' ] ;
37
+ const ArrowDropUp_Translate = [ 'none' , '0px -2px ' ] ;
38
38
39
39
const Select = ( {
40
40
titles,
@@ -55,7 +55,7 @@ const Select = ({
55
55
< button
56
56
title = { switch_ ? titles [ 1 ] : titles [ 0 ] }
57
57
type = 'button'
58
- className = 'bb cw sb scp cp'
58
+ className = 'bb cw sb scp cp t '
59
59
onClick = { ( ) => setSwitch ( ! switch_ ) }
60
60
onMouseEnter = { ( ) => setHover ( true ) }
61
61
onMouseLeave = { ( ) => setHover ( false ) }
@@ -67,7 +67,7 @@ const Select = ({
67
67
< Img item = { items [ id ] } />
68
68
{ items [ id ] [ 0 ] }
69
69
</ button >
70
- { switch_ ? < div className = 'du' > {
70
+ { switch_ ? < div className = 'du r5px ob ' > {
71
71
items . map ( ( item , iid ) => (
72
72
< button
73
73
key = { iid }
Original file line number Diff line number Diff line change @@ -155,6 +155,8 @@ button {
155
155
flex-direction : row;
156
156
align-items : center;
157
157
gap : 10px ;
158
+ position : relative;
159
+ padding : 1px 6px ;
158
160
}
159
161
160
162
.aic { /* Align Items - Center */
@@ -164,9 +166,15 @@ button {
164
166
.r2px { /* border Radius - 2PX */
165
167
border-radius : 2px ;
166
168
}
169
+ .r5px { /* border Radius - 5PX */
170
+ border-radius : 5px ;
171
+ }
167
172
.ow { /* Outline - White */
168
173
outline : 4px solid white;
169
174
}
175
+ .ob { /* Outline - Black */
176
+ outline : 4px solid black;
177
+ }
170
178
171
179
.cp { /* Cursor - Pointer */
172
180
cursor : pointer;
@@ -176,3 +184,13 @@ button {
176
184
transition : 300ms ;
177
185
-webkit-transition : 300ms ;
178
186
}
187
+
188
+ .du { /* Drop-Up */
189
+ position : absolute;
190
+ flex-direction : column;
191
+ bottom : 100% ;
192
+ left : calc (24px + 10px );
193
+ padding : 2px 0px ;
194
+ gap : 2px ;
195
+ background-color : black;
196
+ }
You can’t perform that action at this time.
0 commit comments