/** @format */ .sidemenu { &-item { &-container { display: flex; flex-direction: column; } position: relative; width: 100%; color: rgb(255 255 255 / 0.7); transition: color $transition-time-fast; text-decoration: none; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 0.2em; margin-bottom: 0.8em; &:hover { color: white; } &.active { color: white; .sidemenu-item-icon::before { opacity: 1; transform: scaleX(1); } .sidemenu-item-text { max-height: 1.6em; // transform: scaleY(1); opacity: 1; } } &-text { // transform: scaleY(0); transform-origin: top; transition: max-height 0.5s; max-height: 0; } &-icon { padding: 0.15em 0.75em; display: flex; align-items: center; justify-content: center; position: relative; &::before { content: ""; width: 100%; height: 100%; position: absolute; background: $clr-gradient-default; z-index: -1; transform: scaleX(0.25); opacity: 0; border-radius: 100px; transition: opacity $transition-time-fast, transform $transition-time-fast; } } } }