Pagnination Component

This commit is contained in:
reverend 2020-08-12 22:27:18 +02:00
parent 09a6377901
commit c8c21869c4
3 changed files with 92 additions and 0 deletions

View File

@ -0,0 +1,52 @@
.LP-Pagination{
font-family: $-primary-sans-serif-font;
font-weight: bold;
.LP-Pagination__List{
list-style-type: none;
display: flex;
flex-direction: row;
}
.LP-Pagination__Item{
margin: 0 4px;
&--current{
.LP-Link{
background-color: $-light-brown;
border-radius: 2px;
&:hover{
background-color: $-light-brown;
color: $-grey;
}
}
}
}
.LP-Link{
padding: 15px 25px;
&:active, &:hover{
background-color: $-beige;
border-radius: 2px;
color: $-grey;
}
}
.LP-Pagination__Previous{
&:before{
content: "«";
}
}
.LP-Pagination__Next{
&:before{
content: "»";
}
}
}

View File

@ -0,0 +1,3 @@
{
"title": "Pagnination"
}

View File

@ -0,0 +1,37 @@
<div class="LP-Pagination">
<ul class="LP-Pagination__List">
<li class="LP-Pagination__Item LP-Pagination__Item--previous">
<a href="#" class="LP-Link"><span class="LP-Pagination__Previous"></span></a>
</li>
<li class="LP-Pagination__Item LP-Pagination__Item--number">
<a href="#" class="LP-Link"><span class="LP-Pagination__Number">1</span></a>
</li>
<li class="LP-Pagination__Item LP-Pagination__Item--number">
<a href="#" class="LP-Link"><span class="LP-Pagination__Number">2</span></a>
</li>
<li class="LP-Pagination__Item LP-Pagination__Item--number">
<a class="LP-Link" href="#"><span class="LP-Pagination__Number">3</span></a>
</li>
<li class="LP-Pagination__Item LP-Pagination__Item--number">
<a href="#" class="LP-Link"><span class="LP-Pagination__Number">4</span></a>
</li>
<li class="LP-Pagination__Item LP-Pagination__Item--number LP-Pagination__Item--current">
<a href="#" class="LP-Link"><span class="LP-Pagination__Number">5</span></a>
</li>
<li class="LP-Pagination__Item LP-Pagination__Item--number">
<a href="#" class="LP-Link"><span class="LP-Pagination__Number">6</span></a>
</li>
<li class="LP-Pagination__Item LP-Pagination__Item--number">
<a href="#" class="LP-Link"><span class="LP-Pagination__Number">7</span></a>
</li>
<li class="LP-Pagination__Item LP-Pagination__Item--number">
<a href="#" class="LP-Link"><span class="LP-Pagination__Number">8</span></a>
</li>
<li class="LP-Pagination__Item LP-Pagination__Item--number">
<a href="#" class="LP-Link"><span class="LP-Pagination__Number">9</span></a>
</li>
<li class="LP-Pagination__Item LP-Pagination__Item--next">
<a href="#" class="LP-Link"><span class="LP-Pagination__Next"></span></a>
</li>
</ul>
</div>