From 170e23cba7ac2dab48bd25d44932328879659ca2 Mon Sep 17 00:00:00 2001 From: Edward Shen Date: Wed, 27 Jul 2022 19:53:32 -0700 Subject: [PATCH] Update styling --- web/src/main.scss | 40 +++++++++++++++++++++++++++++++++------- web/src/render.tsx | 28 +++++++++++++++------------- 2 files changed, 48 insertions(+), 20 deletions(-) diff --git a/web/src/main.scss b/web/src/main.scss index bc5aeb5..cdd6d05 100644 --- a/web/src/main.scss +++ b/web/src/main.scss @@ -29,7 +29,7 @@ body { } .unselectable { - user-select: none; + user-select: none; } hr { @@ -88,7 +88,9 @@ th { cursor: pointer; } -img, audio, video { +img, +audio, +video { border-radius: $padding; margin-bottom: $padding; max-height: 75vh; @@ -96,11 +98,9 @@ img, audio, video { } textarea { - width: 100%; - height: 100%; - min-width: 75vw; - min-height: 75vh; - box-sizing: border-box; + @extend .paste; + height: 75vh; + border-color: white; } .primary { @@ -117,3 +117,29 @@ textarea { padding-left: $padding; } } + +.button { + @extend .hljs; + + border: 1px solid white; + border-radius: $padding; + padding: $padding; + margin: $padding; + font-size: 16px; + + &:hover { + cursor: pointer; + } +} + +.file-upload { + @extend .button; + + input { + display: none; + } +} + +.text-upload { + @extend .button; +} \ No newline at end of file diff --git a/web/src/render.tsx b/web/src/render.tsx index 02f4b3b..3b07c23 100644 --- a/web/src/render.tsx +++ b/web/src/render.tsx @@ -34,9 +34,12 @@ const FileForm = () => { fr.readAsArrayBuffer(file); } - return ( - - ) + return <> + + } const PasteForm = () => { @@ -48,22 +51,21 @@ const PasteForm = () => { } return ( -
-      
-