Skip to content

Commit

Permalink
Cleanup variables
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjhanson committed Feb 7, 2024
1 parent 3605f18 commit 609ba56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/web/assets/cp/src/css/_cp.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ $badgeColor: var(--gray-800);
--padding: var(--xl);
--neg-padding: calc(var(--padding) * -1);
--sidebar-width: #{$sidebarWidth};
--global-sidebar-width: #{$sidebarWidth};
--max-width: 1920px;
}

Expand Down
5 changes: 2 additions & 3 deletions src/web/assets/cp/src/css/_global-sidebar.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.global-sidebar {
--is-always-visible: true;
--collapsed-width: 50px;
--prefix-size: 30px;
--prefix-ratio: 1;

Expand All @@ -14,7 +13,7 @@
-webkit-overflow-scrolling: touch;
background-color: transparent;
border-right: 1px solid var(--hairline-color);
width: var(--sidebar-width);
width: var(--global-sidebar-width);

a {
text-decoration: none;
Expand Down Expand Up @@ -258,7 +257,7 @@ States
@media only screen and (min-width: $minFullUiWidth) {
[data-sidebar='collapsed'] {
.global-sidebar {
width: var(--collapsed-width);
--global-sidebar-width: 50px;
}

.nav-item__indicator {
Expand Down

0 comments on commit 609ba56

Please sign in to comment.