This commit is contained in:
Richard Mikloš 2024-01-16 22:07:15 +01:00
parent 07b828c2f3
commit a394f9af48

@ -144,7 +144,7 @@ header hr {
flex-direction: column; flex-direction: column;
overflow: hidden; /* Hide the content initially */ overflow: hidden; /* Hide the content initially */
max-height: 0; /* Set the initial height to 0 */ max-height: 0; /* Set the initial height to 0 */
border: 0px solid var(--primary-hover); /* Set initial border */ border: 4px solid transparent; /* Set initial border */
transition: max-height 0.1s ease, border 0.1s ease; /* Add transition for smooth height and border animation */ transition: max-height 0.1s ease, border 0.1s ease; /* Add transition for smooth height and border animation */
} }
@ -157,7 +157,7 @@ header hr {
/* Add this style for the transition when not hovering */ /* Add this style for the transition when not hovering */
.navsite_item:not(:hover) .navpage_list { .navsite_item:not(:hover) .navpage_list {
max-height: 0; /* Set height to 0 when not hovering */ max-height: 0; /* Set height to 0 when not hovering */
border: 0px solid var(--primary-hover); /* Maintain border for the delay */ border: 4px solid transparent; /* Maintain border for the delay */
transition-delay: 0.1s; /* Delay the border fade-out transition */ transition-delay: 0.1s; /* Delay the border fade-out transition */
} }