fixed
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
.switch {
|
.switch {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 53px;
|
width: 53px;
|
||||||
|
|
||||||
height: 33px;
|
height: 33px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
@@ -16,8 +15,6 @@
|
|||||||
.check {
|
.check {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The knob (replaces ::before) */
|
|
||||||
.knob {
|
.knob {
|
||||||
width: 25px;
|
width: 25px;
|
||||||
height: 25px;
|
height: 25px;
|
||||||
@@ -29,7 +26,7 @@
|
|||||||
|
|
||||||
transition: all 0.15s ease-in-out;
|
transition: all 0.15s ease-in-out;
|
||||||
}
|
}
|
||||||
.knob:hover {
|
.switch:hover > .knob {
|
||||||
box-shadow: 0 0 0px 5px #33333327;
|
box-shadow: 0 0 0px 5px #33333327;
|
||||||
background-color: #333;
|
background-color: #333;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ const SelectField = ({ label, options, ...props }) => {
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
ref={selectRef}
|
ref={selectRef}
|
||||||
className={styles.select}
|
className={`${styles.select} ${showOptions ? styles.isFocused : ""}`}
|
||||||
onClick={() => setShowOptions(!showOptions)}
|
onClick={() => setShowOptions(!showOptions)}
|
||||||
{...props}
|
{...props}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -32,12 +32,16 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
left: 0;
|
left: 0;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
border: 1px solid #353a4c;
|
border: 1px solid #4e5474;
|
||||||
background: #282b39;
|
background: #282b39;
|
||||||
animation-name: showDD;
|
animation-name: showDD;
|
||||||
animation-duration: 200ms;
|
animation-duration: 200ms;
|
||||||
z-index: 20;
|
z-index: 20;
|
||||||
}
|
}
|
||||||
|
.isFocused {
|
||||||
|
border: 1px solid #969af9;
|
||||||
|
background: #282b39;
|
||||||
|
}
|
||||||
|
|
||||||
@keyframes showDD {
|
@keyframes showDD {
|
||||||
0% {
|
0% {
|
||||||
|
|||||||
Reference in New Issue
Block a user