Associate date's range "bar" to the second date-span element, as a pseudoelement.
This allow a sole <span> element in <div class="date"> to display without a bar, which in turn allows us to achieve sematic consistency between single dates and date ranges.
This commit is contained in:
parent
032b9dcdb7
commit
999d9a973a
2 changed files with 2 additions and 2 deletions
|
@ -122,7 +122,7 @@
|
|||
</section>
|
||||
<section class="blocks">
|
||||
<div class="date">
|
||||
2014
|
||||
<span>2014</span>
|
||||
</div>
|
||||
<div class="decorator">
|
||||
</div>
|
||||
|
|
|
@ -173,7 +173,7 @@ li{
|
|||
display: block;
|
||||
}
|
||||
|
||||
.date span:first-child::after{
|
||||
.date span:nth-child(2)::before{
|
||||
position: relative;
|
||||
top: 1pt;
|
||||
right: 5.5pt;
|
||||
|
|
Loading…
Reference in a new issue