I have a div structure that looks like this:
<div class="jumbotron jumbotron-fluid bg-inverse text-white">
<div class="container">
<div class="row align-items-center">
<div class="slide col-md-8">
...
</div>
<div class="slide col-md-8">
...
</div>
</div>
</div>
</div>
And in my Sass file, I'm trying to hide everything except the first type for .slide:
.jumbotron {
background-color: $white;
color: $black;
margin-bottom: 0;
min-height: 100vh - $navbar-height;
.slide {
&:not(:first-of-type) {
display: none;
}
}
}
It seems that all .slidedivs are hiding , and not "all but the first", as expected, right?
source
share