Skip to content

Commit

Permalink
✨ feat(lists.scss): Add new helper class to toggle tree-nav visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Spiderpig86 committed Sep 10, 2023
1 parent 2248631 commit 623a19d
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions dist/cirrus-all.css
Original file line number Diff line number Diff line change
Expand Up @@ -13662,12 +13662,12 @@ ul .divider::after {
/* Create the area to click to close the menu */
/* Reset max-width in mobile */
}
.tree-nav:target {
.tree-nav.tree-nav--shown, .tree-nav:target {
transform: translateX(0);
transition: transform var(--animation-duration) ease;
/* Show the darkened area when the tree nav menu is clicked */
}
.tree-nav:target + .tree-nav-close {
.tree-nav.tree-nav--shown + .tree-nav-close, .tree-nav:target + .tree-nav-close {
display: block;
background-color: rgba(0, 0, 0, 0.15);
height: 100%;
Expand Down
2 changes: 1 addition & 1 deletion dist/cirrus-all.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/cirrus-core.css
Original file line number Diff line number Diff line change
Expand Up @@ -12241,12 +12241,12 @@ ul .divider::after {
/* Create the area to click to close the menu */
/* Reset max-width in mobile */
}
.tree-nav:target {
.tree-nav.tree-nav--shown, .tree-nav:target {
transform: translateX(0);
transition: transform var(--animation-duration) ease;
/* Show the darkened area when the tree nav menu is clicked */
}
.tree-nav:target + .tree-nav-close {
.tree-nav.tree-nav--shown + .tree-nav-close, .tree-nav:target + .tree-nav-close {
display: block;
background-color: rgba(0, 0, 0, 0.15);
height: 100%;
Expand Down
2 changes: 1 addition & 1 deletion dist/cirrus-core.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/cirrus.css
Original file line number Diff line number Diff line change
Expand Up @@ -12242,12 +12242,12 @@ ul .divider::after {
/* Create the area to click to close the menu */
/* Reset max-width in mobile */
}
.tree-nav:target {
.tree-nav.tree-nav--shown, .tree-nav:target {
transform: translateX(0);
transition: transform var(--animation-duration) ease;
/* Show the darkened area when the tree nav menu is clicked */
}
.tree-nav:target + .tree-nav-close {
.tree-nav.tree-nav--shown + .tree-nav-close, .tree-nav:target + .tree-nav-close {
display: block;
background-color: rgba(0, 0, 0, 0.15);
height: 100%;
Expand Down
2 changes: 1 addition & 1 deletion dist/cirrus.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/components/lists.scss
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@

/* Open the menu from the side */
/* Use a link and add the id of this element as the url */
&.tree-nav--shown,
&:target {
transform: translateX(0);
transition: transform var(--animation-duration) ease;
Expand Down

0 comments on commit 623a19d

Please sign in to comment.