Skip to content

Commit

Permalink
[HxSidebar] - Update CSS variables for item content gap and border ra…
Browse files Browse the repository at this point in the history
…dius for sidebar brand
  • Loading branch information
crdo committed Nov 26, 2024
1 parent 4975b8a commit 1b21936
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
flex-direction: row;
align-items: center;
align-self: stretch;
gap: .75rem;
gap: var(--hx-sidebar-item-content-gap);
}

.hx-sidebar-subitems.show .hx-sidebar-item-navlink-content-inner {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
--hx-sidebar-max-height: 100vh;
--hx-sidebar-toggler-background: var(--bs-gray-500);
--hx-sidebar-item-font-size: 1rem;
--hx-sidebar-item-content-gap: .75rem;
--hx-sidebar-item-padding: .75rem;
--hx-sidebar-item-color: var(--bs-body-color);
--hx-sidebar-item-icon-color: var(--bs-primary);
Expand Down Expand Up @@ -48,7 +49,7 @@
--hx-sidebar-brand-shortname-width: 2.5rem;
--hx-sidebar-brand-shortname-height: 2.5rem;
--hx-sidebar-brand-shortname-background-color: var(--bs-primary);
--hx-sidebar-brand-shortname-border-radius: .625rem;
--hx-sidebar-brand-shortname-border-radius: var(--bs-border-radius);
--hx-sidebar-brand-shortname-color: var(--bs-white);
--hx-sidebar-brand-shortname-font-weight: 600;
--hx-sidebar-brand-name-color: var(--bs-body-color);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@
<ComponentApiDocCssVariable Name="--hx-sidebar-item-font-size" Default="1rem">
Font size of the items.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-sidebar-item-content-gap" Default=".75rem">
Gap between the content of the items.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-sidebar-item-padding" Default=".75rem">
Padding of the items.
</ComponentApiDocCssVariable>
Expand Down Expand Up @@ -148,7 +151,7 @@
<ComponentApiDocCssVariable Name="--hx-sidebar-brand-shortname-background-color" Default="var(--bs-primary)">
Background color of the brand short name.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-sidebar-brand-shortname-border-radius" Default=".625rem">
<ComponentApiDocCssVariable Name="--hx-sidebar-brand-shortname-border-radius" Default="var(--bs-border-radius)">
Border radius of the brand short name.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-sidebar-brand-shortname-color" Default="var(--bs-white)">
Expand Down Expand Up @@ -200,7 +203,7 @@
Radius of the items in the footer.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-sidebar-footer-item-content-gap" Default=".75rem">
TODO
Gap between the content of the items in the footer.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-sidebar-footer-item-hover-background-color" Default="unset">
Background color on hover of the items in the footer.
Expand Down

0 comments on commit 1b21936

Please sign in to comment.