mirror of
https://github.com/revoltchat/revite.git
synced 2025-02-22 00:00:56 -05:00
Update: New settings close button
This commit is contained in:
parent
862bce7967
commit
de05fad9f4
2 changed files with 25 additions and 10 deletions
|
@ -1,4 +1,4 @@
|
||||||
import { ArrowBack, X, XCircle } from "@styled-icons/boxicons-regular";
|
import { ArrowBack, X } from "@styled-icons/boxicons-regular";
|
||||||
import { Helmet } from "react-helmet";
|
import { Helmet } from "react-helmet";
|
||||||
import { Switch, useHistory, useParams } from "react-router-dom";
|
import { Switch, useHistory, useParams } from "react-router-dom";
|
||||||
|
|
||||||
|
@ -148,9 +148,9 @@ export function GenericSettings({
|
||||||
)}
|
)}
|
||||||
{!isTouchscreenDevice && (
|
{!isTouchscreenDevice && (
|
||||||
<div className={styles.action}>
|
<div className={styles.action}>
|
||||||
<IconButton onClick={exitSettings}>
|
<div onClick={exitSettings} className={styles.closeButton}>
|
||||||
<XCircle size={48} />
|
<X size={28} />
|
||||||
</IconButton>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -168,24 +168,39 @@
|
||||||
|
|
||||||
&:after {
|
&:after {
|
||||||
content: "ESC";
|
content: "ESC";
|
||||||
|
margin-top: 4px;
|
||||||
display: flex;
|
display: flex;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
align-content: center;
|
align-content: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
color: var(--foreground);
|
color: var(--foreground);
|
||||||
width: 48px;
|
width: 40px;
|
||||||
opacity: .5;
|
opacity: .5;
|
||||||
font-size: .75em;
|
font-size: .75em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.closeButton {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
border-radius: 50%;
|
||||||
|
height: 40px;
|
||||||
|
width: 40px;
|
||||||
|
border: 3px solid var(--tertiary-background);
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
svg {
|
||||||
|
color: var(--secondary-foreground);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
transform: translateY(2px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
> div {
|
> div {
|
||||||
display: inline;
|
display: inline;
|
||||||
> svg {
|
|
||||||
&:active {
|
|
||||||
transform: translateY(2px);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue