More mobile styling

This commit is contained in:
Robert Long 2021-08-23 12:50:19 -07:00
parent b6b33219a8
commit 85d77a32bf
5 changed files with 15 additions and 48 deletions

View File

@ -3,7 +3,7 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
height: 98px; height: 64px;
user-select: none; user-select: none;
flex-shrink: 0; flex-shrink: 0;
} }
@ -43,3 +43,9 @@
font-weight: 600; font-weight: 600;
flex-shrink: 0; flex-shrink: 0;
} }
@media(min-width: 800px) {
.header {
height: 98px;
}
}

View File

@ -21,7 +21,7 @@ import { Header, LeftNav, UserNav } from "./Header";
import ColorHash from "color-hash"; import ColorHash from "color-hash";
import styles from "./Home.module.css"; import styles from "./Home.module.css";
import { FieldRow, InputField, Button, ErrorMessage } from "./Input"; import { FieldRow, InputField, Button, ErrorMessage } from "./Input";
import { Center, Content, Sidebar, Modal } from "./Layout"; import { Center, Content, Modal } from "./Layout";
const colorHash = new ColorHash({ lightness: 0.3 }); const colorHash = new ColorHash({ lightness: 0.3 });

View File

@ -10,14 +10,6 @@ export function Content({ children, className, ...rest }) {
); );
} }
export function Sidebar({ children, className, ...rest }) {
return (
<aside className={classNames(styles.sidebar, className)} {...rest}>
{children}
</aside>
);
}
export function Center({ children, className, ...rest }) { export function Center({ children, className, ...rest }) {
return ( return (
<div className={classNames(styles.center, className)} {...rest}> <div className={classNames(styles.center, className)} {...rest}>

View File

@ -5,26 +5,6 @@
flex: 1; flex: 1;
} }
.sidebar {
display: flex;
flex-direction: column;
height: auto;
flex: 1;
min-width: 200px;
width: auto;
max-width: none;
padding: 12px;
background-color: #21262c;
border-radius: 8px;
margin-bottom: 20px;
}
.sidebar h5 {
color: rgb(142, 153, 164);
font-size: 13px;
margin: 0 0 8px 0;
}
.center { .center {
display: flex; display: flex;
flex: 1; flex: 1;
@ -50,20 +30,3 @@
font-size: 13px; font-size: 13px;
text-align: center; text-align: center;
} }
@media (min-width: 600px) {
.sidebar {
height: 100%;
overflow-y: auto;
max-width: 320px;
margin-bottom: 0;
}
.content {
flex-direction: row;
}
.modal {
margin-bottom: 0;
}
}

View File

@ -28,6 +28,8 @@ limitations under the License.
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
flex: 1; flex: 1;
overflow: hidden;
margin-bottom: 20px;
} }
.preview { .preview {
@ -96,7 +98,7 @@ limitations under the License.
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
height: 118px; height: 64px;
} }
.footer > * { .footer > * {
@ -115,4 +117,8 @@ limitations under the License.
.roomContainer { .roomContainer {
flex-direction: row; flex-direction: row;
} }
.footer {
height: 118px;
}
} }