From ec28d884ae41ec39e11b96a65b62d2fd4f11416d Mon Sep 17 00:00:00 2001 From: Alex Andreev Date: Mon, 12 Apr 2021 09:32:07 +0300 Subject: [PATCH] Styling catalog sidebar (#2496) Signed-off-by: Alex Andreev --- src/renderer/components/+catalog/catalog.scss | 39 +++++++++++++++++-- src/renderer/components/+catalog/catalog.tsx | 10 +++-- 2 files changed, 42 insertions(+), 7 deletions(-) diff --git a/src/renderer/components/+catalog/catalog.scss b/src/renderer/components/+catalog/catalog.scss index 302175d1f8..1d321ac232 100644 --- a/src/renderer/components/+catalog/catalog.scss +++ b/src/renderer/components/+catalog/catalog.scss @@ -1,15 +1,48 @@ .CatalogPage { --width: 100%; --height: 100%; - --nav-column-width: 230px; - text-align: left; + --nav-column-width: 200px; .sidebarRegion { justify-content: flex-start; + background-color: var(--sidebarBackground); + + .sidebarHeader { + background: var(--sidebarLogoBackground); + height: var(--main-layout-header); + padding: 4px; + color: var(--textColorAccent); + font-weight: bold; + font-size: 14px; + display: flex; + align-items: center; + padding-left: 10px; + } + + > .sidebar { + width: 100%; + + .sidebarTabs { + margin-top: 5px; + + .Tab { + padding: 7px 10px; + font-weight: normal; + font-size: 14px; + border-radius: 0; + height: 36px; + + &.active { + background-color: var(--blue); + color: white; + } + } + } + } } .contentRegion { - .content { + > .content { padding: 20px 20px; } } diff --git a/src/renderer/components/+catalog/catalog.tsx b/src/renderer/components/+catalog/catalog.tsx index 1a1d02f587..ebd17fd676 100644 --- a/src/renderer/components/+catalog/catalog.tsx +++ b/src/renderer/components/+catalog/catalog.tsx @@ -114,10 +114,12 @@ export class Catalog extends React.Component { renderNavigation() { return ( -
Catalog
- { this.categories.map((category, index) => { - return ; - })} +
Catalog
+
+ { this.categories.map((category, index) => { + return ; + })} +
); }