Pagnination Component
This commit is contained in:
parent
09a6377901
commit
c8c21869c4
52
components/01_Atoms/pagination/_pagination.scss
Normal file
52
components/01_Atoms/pagination/_pagination.scss
Normal 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: "»";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
3
components/01_Atoms/pagination/pagination.config.json
Normal file
3
components/01_Atoms/pagination/pagination.config.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"title": "Pagnination"
|
||||||
|
}
|
37
components/01_Atoms/pagination/pagination.hbs
Normal file
37
components/01_Atoms/pagination/pagination.hbs
Normal 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>
|
Loading…
Reference in New Issue
Block a user