Skip to content

Commit

Permalink
fix invisible dir-list after force-show of collapsed sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
guFalcon committed Apr 12, 2024
1 parent 097196c commit 7ca22b3
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 25 deletions.
1 change: 1 addition & 0 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@import "markdown.css";
@import "callouts.css";
@import "movement.css";
@import "reveals-rotates.css";
@import "flipswitch.css";
@import "buttons.css";
@import "fixes.css";
Expand Down
28 changes: 3 additions & 25 deletions css/movement.css
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,13 @@ a:visited {

.sidebar-dirlist {
opacity: 0;
visibility: visible;
width: 250px;
padding-top: 0px;
margin-left: 7px;
max-height: 0;
overflow: hidden;
transition: padding 0.3s ease, max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s step-start;
transition: background-color 0.3s ease-in-out, padding 0.3s ease, max-height 0.3s ease, opacity 0.3s ease-in-out, visibility 0.3s step-start;
}

.sidebar-dirlist-chevron {
Expand All @@ -93,28 +95,4 @@ a:visited {
padding: 0px;
margin: 0px;
transition: transform 0.3s ease;
}

.normal-reveal {
display: block;
overflow: hidden;
opacity: 1;
transition: padding 0.3s ease, max-height 0.3s ease, opacity 0.3s ease-in-out, visibility 0.3s step-start;
}

.width-reveal {
background-color: #f0f0f0f0;
z-index: 1000;
display: block !important;
opacity: 1 !important;
transition: background-color 0.3s ease-in-out, padding 0.3s ease, max-width 0.3s ease, opacity 0.3s ease-in-out, visibility 0.3s step-start;
}

.force-rotate-right {
transform: rotate(90deg);
transition: transform 0.3s ease;
}
.force-rotate-left {
transform: rotate(-90deg);
transition: transform 0.3s ease;
}
23 changes: 23 additions & 0 deletions css/reveals-rotates.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.normal-reveal {
display: block;
overflow: hidden;
opacity: 1;
transition: background-color 0.3s ease-in-out, padding 0.3s ease, max-height 0.3s ease, opacity 0.3s ease-in-out, visibility 0.3s step-start;
}

.width-reveal {
background-color: #f0f0f0f0;
z-index: 1000;
display: block !important;
opacity: 1 !important;
transition: background-color 0.3s ease-in-out, padding 0.3s ease, max-width 0.3s ease, opacity 0.3s ease-in-out, visibility 0.3s step-start;
}

.force-rotate-right {
transform: rotate(90deg);
transition: transform 0.3s ease;
}
.force-rotate-left {
transform: rotate(-90deg);
transition: transform 0.3s ease;
}

0 comments on commit 7ca22b3

Please sign in to comment.