I have the following SASS style definition:
@import "bulma/sass/utilities/initial-variables.sass";
@mixin show-sidebar-responsive($size) {
display: flex;
flex-direction: column;
height: 100%;
width: $size;
background-color: #24344b;
}
.sidebar-container {
transition: width 1s;
display: none;
}
@media (min-width: $desktop) and (max-width: $widescreen) {
.sidebar-container {
@include show-sidebar-responsive(250px);
}
}
@media (min-width: $widescreen) {
.sidebar-container {
@include show-sidebar-responsive(280px);
}
}
As you can see on the code above, I am using the transition on width on the different screen size. The transition from $desktop
to $widescreen
works fine but below $desktop
does not work, why?
I took the breakpoints from bulma.
What do I forget to define?