Skip to content

Commit fa0c171

Browse files
updates
1 parent 0bc191e commit fa0c171

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

lib/ui/select.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const GoogleFonts_Icons_ArrowDropUp = (props) => (
3434
const Img = ({ item }) => (<img src={item[1]} title={item[0]} alt="" className='fi r2px ow' />);
3535

3636
let selectID = 0;
37-
const ArrowDropUp_Translate = ['none', '0px 10px'];
37+
const ArrowDropUp_Translate = ['none', '0px -2px'];
3838

3939
const Select = ({
4040
titles,
@@ -55,7 +55,7 @@ const Select = ({
5555
<button
5656
title={switch_ ? titles[1] : titles[0]}
5757
type='button'
58-
className='bb cw sb scp cp'
58+
className='bb cw sb scp cp t'
5959
onClick={() => setSwitch(!switch_)}
6060
onMouseEnter={() => setHover(true)}
6161
onMouseLeave={() => setHover(false)}
@@ -67,7 +67,7 @@ const Select = ({
6767
<Img item={items[id]} />
6868
{items[id][0]}
6969
</button>
70-
{switch_ ? <div className='du'>{
70+
{switch_ ? <div className='du r5px ob'>{
7171
items.map((item, iid) => (
7272
<button
7373
key={iid}

pages/style.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ button {
155155
flex-direction: row;
156156
align-items: center;
157157
gap: 10px;
158+
position: relative;
159+
padding: 1px 6px;
158160
}
159161

160162
.aic { /* Align Items - Center */
@@ -164,9 +166,15 @@ button {
164166
.r2px { /* border Radius - 2PX */
165167
border-radius: 2px;
166168
}
169+
.r5px { /* border Radius - 5PX */
170+
border-radius: 5px;
171+
}
167172
.ow { /* Outline - White */
168173
outline: 4px solid white;
169174
}
175+
.ob { /* Outline - Black */
176+
outline: 4px solid black;
177+
}
170178

171179
.cp { /* Cursor - Pointer */
172180
cursor: pointer;
@@ -176,3 +184,13 @@ button {
176184
transition: 300ms;
177185
-webkit-transition: 300ms;
178186
}
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+
}

0 commit comments

Comments
 (0)