Answer the question
In order to leave comments, you need to log in
How to change border-color for each subsequent element?
There is a list of elements with
border-left: 4px solid $upcoming-event-border-color;
<div class="upcoming-events-item">
<h4>May require custom widths</h4>
<h6>15.09.2016</h6>
<p>Inputs and selects have so multiple controls can reside on the same line. Depending on your layout, additional custom widths may be required.
</p>
</div>
<div class="upcoming-events-item">
<h4>May require custom widths</h4>
<h6>15.09.2016</h6>
<p>Inputs and selects have so multiple controls can reside on the same line. Depending on your layout, additional custom widths may be required.
</p>
</div>
<div class="upcoming-events-item">
<h4>May require custom widths</h4>
<h6>15.09.2016</h6>
<p>Inputs and selects have so multiple controls can reside on the same line. Depending on your layout, additional custom widths may be required.
</p>
</div>
$upcoming-event-border-color: hsl(10, 83, 94);
.upcoming-events-item:nth-child(1n) {
$upcoming-event-border-color: darken( $upcoming-event-border-color, 10%);
border-color: $upcoming-event-border-color;
}
.upcoming-events-item {
border-left: 4px solid $upcoming-event-border-color;
padding: 0px 10px;
margin: 20px 5px;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question