mirror of
https://github.com/revoltchat/revite.git
synced 2025-02-22 08:11:03 -05:00
Fix: changed outlines to box-shadow
This commit is contained in:
parent
52c81fc70b
commit
e5b233e14e
7 changed files with 20 additions and 10 deletions
|
@ -61,7 +61,7 @@ export type UploadState =
|
||||||
|
|
||||||
const Base = styled.div`
|
const Base = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 0 12px;
|
/*padding: 0 12px;*/
|
||||||
background: var(--message-box);
|
background: var(--message-box);
|
||||||
|
|
||||||
textarea {
|
textarea {
|
||||||
|
@ -87,6 +87,10 @@ const Blocked = styled.div`
|
||||||
const Action = styled.div`
|
const Action = styled.div`
|
||||||
display: grid;
|
display: grid;
|
||||||
place-items: center;
|
place-items: center;
|
||||||
|
|
||||||
|
> div {
|
||||||
|
padding: 10px 12px;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
// ! FIXME: add to app config and load from app config
|
// ! FIXME: add to app config and load from app config
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import styled from "styled-components";
|
import styled from "styled-components";
|
||||||
|
|
||||||
export default styled.select`
|
export default styled.select`
|
||||||
padding: 8px;
|
padding: 10px;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
color: var(--secondary-foreground);
|
color: var(--secondary-foreground);
|
||||||
|
@ -10,11 +10,11 @@ export default styled.select`
|
||||||
border: none;
|
border: none;
|
||||||
outline: 2px solid transparent;
|
outline: 2px solid transparent;
|
||||||
transition: outline-color 0.2s ease-in-out;
|
transition: outline-color 0.2s ease-in-out;
|
||||||
transition: box-shadow 0.3s;
|
transition: box-shadow .2s ease-in-out;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
box-shadow: 0 0 0 2pt var(--accent);
|
box-shadow: 0 0 0 1.5pt var(--accent);
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
|
@ -8,6 +8,7 @@ export default styled.input<Props>`
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
padding: 8px 16px;
|
padding: 8px 16px;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
|
font-size: 1rem;
|
||||||
|
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
color: var(--foreground);
|
color: var(--foreground);
|
||||||
|
@ -17,13 +18,14 @@ export default styled.input<Props>`
|
||||||
border: none;
|
border: none;
|
||||||
outline: 2px solid transparent;
|
outline: 2px solid transparent;
|
||||||
transition: outline-color 0.2s ease-in-out;
|
transition: outline-color 0.2s ease-in-out;
|
||||||
|
transition: box-shadow .2s ease-in-out;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: var(--secondary-background);
|
background: var(--secondary-background);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
outline: 2px solid var(--accent);
|
box-shadow: 0 0 0 1.5pt var(--accent);
|
||||||
}
|
}
|
||||||
|
|
||||||
${(props) =>
|
${(props) =>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
.container {
|
.container {
|
||||||
font-size: 0.875rem;
|
font-size: .875rem;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,9 +2,9 @@ import {
|
||||||
Envelope,
|
Envelope,
|
||||||
Edit,
|
Edit,
|
||||||
UserPlus,
|
UserPlus,
|
||||||
Shield,
|
Shield
|
||||||
Money,
|
} from "@styled-icons/boxicons-solid";
|
||||||
} from "@styled-icons/boxicons-regular";
|
import { Money } from "@styled-icons/boxicons-regular";
|
||||||
import { Link, useHistory } from "react-router-dom";
|
import { Link, useHistory } from "react-router-dom";
|
||||||
import { Users } from "revolt.js/dist/api/objects";
|
import { Users } from "revolt.js/dist/api/objects";
|
||||||
import { UserPermission } from "revolt.js/dist/api/permissions";
|
import { UserPermission } from "revolt.js/dist/api/permissions";
|
||||||
|
|
|
@ -312,7 +312,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.label {
|
.label {
|
||||||
margin: 0 0 6px 0;
|
margin-bottom: 8px;
|
||||||
color: var(--primary-text);
|
color: var(--primary-text);
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
|
|
@ -6,6 +6,10 @@
|
||||||
.name {
|
.name {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue