mirror of
https://github.com/remvze/moodist.git
synced 2025-12-18 17:34:17 +00:00
style: minor changes
This commit is contained in:
parent
5c9a2aa23a
commit
b27f24d374
2 changed files with 47 additions and 16 deletions
|
|
@ -33,15 +33,44 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.selectBox {
|
.selectWrapper {
|
||||||
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-width: 0;
|
|
||||||
height: 45px;
|
height: 45px;
|
||||||
padding: 0 12px;
|
padding: 0 12px;
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
font-size: var(--font-sm);
|
background-color: var(--color-neutral-50);
|
||||||
color: var(--color-foreground);
|
|
||||||
background-color: var(--color-neutral-100);
|
|
||||||
border: 1px solid var(--color-neutral-200);
|
border: 1px solid var(--color-neutral-200);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
position: absolute;
|
||||||
|
top: -1px;
|
||||||
|
left: 50%;
|
||||||
|
width: 80%;
|
||||||
|
height: 1px;
|
||||||
|
content: '';
|
||||||
|
background: linear-gradient(
|
||||||
|
90deg,
|
||||||
|
transparent,
|
||||||
|
var(--color-neutral-300),
|
||||||
|
transparent
|
||||||
|
);
|
||||||
|
transform: translateX(-50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
& .selectBox {
|
||||||
|
width: 100%;
|
||||||
|
min-width: 0;
|
||||||
|
height: 100%;
|
||||||
|
font-size: var(--font-sm);
|
||||||
|
color: var(--color-foreground);
|
||||||
|
background-color: transparent;
|
||||||
|
border: none;
|
||||||
|
outline: none;
|
||||||
|
|
||||||
|
& option {
|
||||||
|
color: var(--color-neutral-50);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -93,6 +93,7 @@ export function Exercise() {
|
||||||
<p className={styles.phase}>{PHASE_LABELS[currentPhase]}</p>
|
<p className={styles.phase}>{PHASE_LABELS[currentPhase]}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div className={styles.selectWrapper}>
|
||||||
<select
|
<select
|
||||||
className={styles.selectBox}
|
className={styles.selectBox}
|
||||||
value={selectedExercise}
|
value={selectedExercise}
|
||||||
|
|
@ -104,6 +105,7 @@ export function Exercise() {
|
||||||
</option>
|
</option>
|
||||||
))}
|
))}
|
||||||
</select>
|
</select>
|
||||||
|
</div>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue