From 8d9ffb2f8a3c35d0b164100dc2abf6a403f408bb Mon Sep 17 00:00:00 2001 From: Jared Palmer Date: Sun, 5 Jan 2020 12:21:28 -0800 Subject: [PATCH] Better styles --- src/index.tsx | 83 +++++++++++++++++++++++++++++++++++++++++-------- src/styles.scss | 15 +++++++-- 2 files changed, 82 insertions(+), 16 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 7133b751e..fb78f4782 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -817,7 +817,7 @@ function restore( type AppState = { draggingElement: ExcalidrawElement | null; resizingElement: ExcalidrawElement | null; - currentColorPicker: "Background" | null; + currentColorPicker: "Background" | "ShapeStroke" | "ShapeBackground" | null; elementType: string; exportBackground: boolean; currentItemStrokeColor: string; @@ -1155,9 +1155,8 @@ class App extends React.Component<{}, AppState> {

Colors

+
Canvas Background
-
Background
-
-

Canvas

diff --git a/src/styles.scss b/src/styles.scss index 79018ef31..8642ff72b 100644 --- a/src/styles.scss +++ b/src/styles.scss @@ -43,8 +43,14 @@ body { flex-direction: column; h5 { - margin-top: 0px; - margin-bottom: 8px; + margin-top: 4px; + margin-bottom: 4px; + font-size: 12px; + color: #333; + } + + h5:first-of-type { + margin-top: 0; } } } @@ -155,12 +161,15 @@ button { .swatch { height: 24px; width: 24px; + display: inline; margin-right: 4px; } .swatch-input { font-size: 16px; + display: inline; + width: 100px; border-radius: 2px; - padding: 2px; + padding: 2px 4px; border: 1px solid #ddd; }