Run prettier

This commit is contained in:
David Baker 2022-05-04 11:24:25 +01:00
commit 0136fd3cab
9 changed files with 27 additions and 22 deletions

View file

@ -7,7 +7,7 @@
} }
.fieldRow { .fieldRow {
margin-bottom: 24px;; margin-bottom: 24px;
} }
.fieldRow:last-child { .fieldRow:last-child {

View file

@ -9,7 +9,11 @@ export function Toggle({ id, label, className, onChange, isSelected }) {
const toggle = useCallback(() => { const toggle = useCallback(() => {
onChange(!isSelected); onChange(!isSelected);
}); });
const { buttonProps } = useToggleButton({ isSelected }, { toggle }, buttonRef); const { buttonProps } = useToggleButton(
{ isSelected },
{ toggle },
buttonRef
);
return ( return (
<Field <Field

View file

@ -6,12 +6,12 @@
.button { .button {
position: relative; position: relative;
padding: 0; padding: 0;
transition: background-color 0.20s ease-out 0.1s; transition: background-color 0.2s ease-out 0.1s;
width: 44px; width: 44px;
height: 24px; height: 24px;
border: none; border: none;
border-radius: 21px; border-radius: 21px;
background-color: #6F7882; background-color: #6f7882;
cursor: pointer; cursor: pointer;
margin-right: 8px; margin-right: 8px;
} }
@ -22,7 +22,7 @@
width: 20px; width: 20px;
height: 20px; height: 20px;
border-radius: 21px; border-radius: 21px;
background-color: #15191E; background-color: #15191e;
left: 2px; left: 2px;
top: 2px; top: 2px;
} }
@ -30,11 +30,11 @@
.label { .label {
padding: 10px 8px; padding: 10px 8px;
line-height: 24px; line-height: 24px;
color: #6F7882; color: #6f7882;
} }
.toggle.on .button { .toggle.on .button {
background-color: #0DBD8B; background-color: #0dbd8b;
} }
.toggle.on .ball { .toggle.on .ball {
@ -43,4 +43,4 @@
.toggle.on .label { .toggle.on .label {
color: #ffffff; color: #ffffff;
} }

View file

@ -22,6 +22,6 @@
@media (min-width: 800px) { @media (min-width: 800px) {
.preview { .preview {
margin-top: 40px; margin-top: 40px;
background-color: #21262C; background-color: #21262c;
} }
} }

View file

@ -6,18 +6,20 @@
border-radius: 116px; border-radius: 116px;
color: ##fff; color: ##fff;
border: 6px solid #0dbd8b; border: 6px solid #0dbd8b;
background-color: #21262C; background-color: #21262c;
position: relative; position: relative;
padding: 0; padding: 0;
} }
.talking { .talking {
background-color: #0dbd8b; background-color: #0dbd8b;
box-shadow: 0px 0px 0px 17px rgba(13, 189, 139, 0.2), 0px 0px 0px 34px rgba(13, 189, 139, 0.2); box-shadow: 0px 0px 0px 17px rgba(13, 189, 139, 0.2),
0px 0px 0px 34px rgba(13, 189, 139, 0.2);
} }
.error { .error {
background-color: #FF5B55; background-color: #ff5b55;
border-color: #FF5B55; border-color: #ff5b55;
box-shadow: 0px 0px 0px 17px rgba(255, 91, 85, 0.2), 0px 0px 0px 34px rgba(255, 91, 85, 0.2); box-shadow: 0px 0px 0px 17px rgba(255, 91, 85, 0.2),
} 0px 0px 0px 34px rgba(255, 91, 85, 0.2);
}

View file

@ -25,7 +25,7 @@
} }
.participants > p { .participants > p {
color: #A9B2BC; color: #a9b2bc;
margin-bottom: 8px; margin-bottom: 8px;
} }
@ -103,4 +103,4 @@
flex: auto; flex: auto;
order: 4; order: 4;
} }
} }

View file

@ -1,3 +1,3 @@
.audioFeed { .audioFeed {
display: none; display: none;
} }

View file

@ -4,4 +4,3 @@
flex: 1; flex: 1;
touch-action: none; touch-action: none;
} }

View file

@ -85,7 +85,7 @@
.videoMutedOverlay { .videoMutedOverlay {
width: 100%; width: 100%;
height: 100%; height: 100%;
background-color: #21262C; background-color: #21262c;
} }
.presenterLabel { .presenterLabel {
@ -93,7 +93,7 @@
top: 20px; top: 20px;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
background-color: #17191C; background-color: #17191c;
border-radius: 4px; border-radius: 4px;
display: flex; display: flex;
justify-content: center; justify-content: center;
@ -110,4 +110,4 @@
width: 25%; width: 25%;
max-width: 360px; max-width: 360px;
border-radius: 20px; border-radius: 20px;
} }