Is it possible to use some form of conditionals?
Building a new design style out in code.
Usually the <h1> tag has a small line underneath it.
The <h2> tag does as well but when the <h1> is present the <h2> tag should not have a line underneath it.
h1:after {
display: block;
content: "";
background-color: green;
height: 3px;
border-radius: 6px;
width:50px
}
h2:after {
display: block;
content: "";
background-color: orange;
height: 3px;
border-radius: 6px;
width:30px
}
<h1>H1 title</h1>
<h2>So now this H2 title should not have a line since there is a h1 above it.</h2>
h1 + h2:after