From a6fa68fd34da2a974f2ef037b655963ef6d97b1c Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Wed, 17 Jan 2018 20:16:37 -0500 Subject: [PATCH] Make the sidebar go and look good --- ext/css/sidebar.css | 42 ++++++++++++++++++++++++++++++++++++++ ext/icons/stop-16.svg | 6 ++++++ ext/sidebar.html | 13 ++++++++---- src/looped_in/content.cljs | 36 +++++++++++++++++++++++++++----- src/looped_in/sidebar.cljs | 12 ++++++++--- 5 files changed, 97 insertions(+), 12 deletions(-) create mode 100644 ext/icons/stop-16.svg diff --git a/ext/css/sidebar.css b/ext/css/sidebar.css index 7fa9fca..8ec96ce 100644 --- a/ext/css/sidebar.css +++ b/ext/css/sidebar.css @@ -224,6 +224,29 @@ color: #0c0c0d; } +html, body { + height: 100%; + margin: 0; + padding: 0; +} + +#sidebar { + height: 100%; + background-color: #ededf0; + box-sizing: border-box; +} + +.sidebarHeader { + display: flex; + align-items: center; + padding: 8px; + border-bottom: 2px solid #d7d7db; +} + +.headerTitle { + flex: 1 0 auto; +} + .card { padding: 8px; border-bottom: 1px solid #d7d7db; @@ -245,3 +268,22 @@ font-size: 15px; font-weight: 400; } + +.body30 { + font-size: 17px; + font-weight: 400; +} + +.iconButton { + background-color: inherit; + border: none; + display: flex; + align-items: center; + justify-content: center; + padding: 4px; + margin: 0; +} + +.iconButton:hover { + background-color: #d7d7db; +} diff --git a/ext/icons/stop-16.svg b/ext/icons/stop-16.svg new file mode 100644 index 0000000..721149b --- /dev/null +++ b/ext/icons/stop-16.svg @@ -0,0 +1,6 @@ + + + + diff --git a/ext/sidebar.html b/ext/sidebar.html index 4c54e14..a3b844d 100644 --- a/ext/sidebar.html +++ b/ext/sidebar.html @@ -5,12 +5,17 @@ - -