From 2e2ef27f6c209e4668e48285273cec42e0bed53f Mon Sep 17 00:00:00 2001 From: chip Date: Fri, 30 Oct 2020 00:16:02 +0100 Subject: [PATCH] feat(notes/nui): styles for note app --- phone/src/apps/notes/modal/modal.styles.ts | 36 +++++++++++++++++++--- phone/src/apps/notes/notes.styles.ts | 7 ++++- 2 files changed, 38 insertions(+), 5 deletions(-) diff --git a/phone/src/apps/notes/modal/modal.styles.ts b/phone/src/apps/notes/modal/modal.styles.ts index f1d2936..431231f 100644 --- a/phone/src/apps/notes/modal/modal.styles.ts +++ b/phone/src/apps/notes/modal/modal.styles.ts @@ -1,16 +1,44 @@ import { makeStyles } from '@material-ui/core'; const useStyles = makeStyles((theme) => ({ + modalRoot: { + zIndex: 20, + position: "absolute", + height: '100%', + width: '100%', + background: '#232323', + }, + modalHide: { + display: 'none' + }, closeButton: { width: '10%', position: 'absolute', - right: 0 + top: 10, + left: 0 + }, + noteContainer: { + width: '90%', + marginTop: 80, + margin: '0 auto', }, input: { - + marginBottom: 20, }, - inputStyles: { - + inputPropsTitle: { + fontSize: 28, + }, + inputPropsContent: { + fontSize: 20, + }, + saveButton: { + background: '#f9a825', + padding: '10px 30px' + }, + deleteButton: { + marginLeft: 20, + background: '#c62828', + padding: '10px 30px' } })) diff --git a/phone/src/apps/notes/notes.styles.ts b/phone/src/apps/notes/notes.styles.ts index 8cd6850..fb3b4eb 100644 --- a/phone/src/apps/notes/notes.styles.ts +++ b/phone/src/apps/notes/notes.styles.ts @@ -8,7 +8,7 @@ const useStyles = makeStyles((theme) => ({ justifyContent: 'center', alignItems: 'center', textAlign: 'center', - height: '60px' + height: '60px', }, backgroundModal: { background: "black", @@ -20,6 +20,11 @@ const useStyles = makeStyles((theme) => ({ bottom: 0, zIndex: 5, }, + absolute: { + position: "sticky", + bottom: theme.spacing(2), + left: theme.spacing(3), + }, })) export default useStyles; \ No newline at end of file