Skip to content

Commit

Permalink
fix(sidebars): changed styles for right sidebar background & headers
Browse files Browse the repository at this point in the history
  • Loading branch information
stdword committed Aug 19, 2024
1 parent 8fc00d0 commit 5aa457d
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 27 deletions.
53 changes: 34 additions & 19 deletions src/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,25 +114,48 @@ body[data-page=whiteboard] #app-container {
}


/* ------------- */
/* SIDEBARS */
/* ------------- */
/**
/* MENUS & SIDEBARS
**/

/* right sidebar */

#right-sidebar .cp__right-sidebar-topbar {
background: none;
}

#right-sidebar .button:hover {
background-color: var(--ls-menu-hover-color);
.button {
background-color: var(--bujo-left-sidebar-background);
}
.button:hover {
background-color: var(--ls-menu-hover-color);
}
}

#right-sidebar .sidebar-item-list {
background: none;
}
#right-sidebar .sidebar-item-header {
background-color: var(--bujo-right-sidebar-item-header-background);
#right-sidebar {
.cp__right-sidebar-inner {
background-color: var(--bujo-left-sidebar-background);

/* apply border to right sidebar as with left sidebar */
border-left: 1px solid var(--ls-left-sidebar-border-color, var(--lx-gray-03, var(--ls-tertiary-background-color)));
}

.sidebar-item-list {
background: none;
}

.sidebar-item-list > .sidebar-item {
&.collapsed {
box-shadow: none;
}

/* &:is(.item-type-block, .item-type-page, .item-type-contents, .item-type-page-slide-view, .item-type-page-graph, .item-type-help) { */
& .sidebar-item-header {
background: linear-gradient(0deg, var(--bujo-right-sidebar-item-header-background2), var(--bujo-right-sidebar-item-header-background1));
}
&.collapsed .sidebar-item-header {
background: var(--bujo-right-sidebar-item-header-background1);
}
}
}

#right-sidebar .sidebar-item {
Expand Down Expand Up @@ -184,14 +207,6 @@ body[data-page=whiteboard] #app-container {
color: var(--ls-link-ref-text-hover-color);
}

#right-sidebar {
.cp__right-sidebar-inner { /* apply border to right sidebar as with left sidebar */
border-left: 1px solid var(--ls-left-sidebar-border-color,var(--lx-gray-03,var(--ls-tertiary-background-color)));
}
.sidebar-item-list > .sidebar-item {
box-shadow: none;
}
}

/* left sidebar */

Expand Down
5 changes: 3 additions & 2 deletions src/dark-black.css
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@
--bujo-left-sidebar-page-icon: var(--ls-primary-text-color);
--bujo-left-sidebar-page-text: var(--ls-primary-text-color);

--bujo-right-sidebar-item-header-background1: var(--bujo-background3);
--bujo-right-sidebar-item-header-background2: var(--bujo-background2);

--ls-slide-background-color: var(--ls-primary-background-color);


Expand Down Expand Up @@ -196,8 +199,6 @@


/* scrollbars, table header and various ui borders */
--bujo-right-sidebar-item-header-background: var(--color-level-2);

--ls-table-tr-even-background-color: var(--bujo-fill1);
--bujo-right-sidebar-table-even-background: var(--ls-table-tr-even-background-color);

Expand Down
5 changes: 3 additions & 2 deletions src/dark-coffee.css
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@
--bujo-left-sidebar-page-icon: var(--ls-primary-text-color);
--bujo-left-sidebar-page-text: var(--ls-primary-text-color);

--bujo-right-sidebar-item-header-background1: var(--bujo-background4);
--bujo-right-sidebar-item-header-background2: var(--bujo-background3);

--ls-slide-background-color: var(--ls-primary-background-color);


Expand Down Expand Up @@ -198,8 +201,6 @@


/* scrollbars, table header and various ui borders */
--bujo-right-sidebar-item-header-background: var(--color-level-2);

--ls-table-tr-even-background-color: var(--bujo-background4);
--bujo-right-sidebar-table-even-background: var(--bujo-background4);

Expand Down
5 changes: 3 additions & 2 deletions src/light-sepia.css
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@
--bujo-left-sidebar-page-icon: var(--ls-primary-text-color);
--bujo-left-sidebar-page-text: var(--ls-primary-text-color);

--bujo-right-sidebar-item-header-background1: var(--bujo-background6);
--bujo-right-sidebar-item-header-background2: var(--bujo-background4);

--ls-slide-background-color: var(--ls-primary-background-color);


Expand Down Expand Up @@ -204,8 +207,6 @@


/* scrollbars, table header and various ui borders */
--bujo-right-sidebar-item-header-background: var(--color-level-2);

--ls-table-tr-even-background-color: var(--bujo-background4);
--bujo-right-sidebar-table-even-background: var(--bujo-background4);

Expand Down
5 changes: 3 additions & 2 deletions src/light-white.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@
--bujo-left-sidebar-page-icon: var(--ls-primary-text-color);
--bujo-left-sidebar-page-text: var(--ls-primary-text-color);

--bujo-right-sidebar-item-header-background1: var(--bujo-background3);
--bujo-right-sidebar-item-header-background2: var(--bujo-background2);

--ls-slide-background-color: var(--ls-primary-background-color);


Expand Down Expand Up @@ -221,8 +224,6 @@


/* scrollbars, table header and various ui borders */
--bujo-right-sidebar-item-header-background: var(--bujo-background3);

--ls-table-tr-even-background-color: var(--bujo-background3);
--bujo-right-sidebar-table-even-background: var(--bujo-background3);

Expand Down

0 comments on commit 5aa457d

Please sign in to comment.