Added beautiful navigation icons to pagination nav-css.

This commit is contained in:
Marcus Scholz 2020-08-14 13:41:27 +02:00
parent 0eacea8243
commit 3970aed176
2 changed files with 71 additions and 57 deletions

View File

@ -1,67 +1,73 @@
.LP-Pagination{
font-family: $-primary-sans-serif-font;
font-weight: bold;
display: flex;
flex-direction: row;
justify-content: center;
font-family: $-primary-sans-serif-font;
font-weight: bold;
display: flex;
flex-direction: row;
justify-content: center;
.LP-Pagination__List{
list-style-type: none;
display: flex;
flex-direction: row;
}
.LP-Pagination__List{
list-style-type: none;
display: flex;
flex-direction: row;
}
.LP-Pagination__Item{
margin: 0 4px;
.LP-Pagination__Item{
margin: 0 4px;
&--current{
&--current{
.LP-Link{
background-color: $-beige;
border-radius: 2px;
.LP-Link{
background-color: $-beige;
border-radius: 2px;
&:hover{
background-color: $-beige;
color: $-grey;
}
}
}
&:hover{
background-color: $-beige;
color: $-grey;
}
}
}
}
}
.LP-Link{
padding: 15px 25px;
.LP-Link{
padding: 15px 25px;
&:active, &:hover{
background-color: $-beige;
border-radius: 2px;
color: $-grey;
}
}
&:active, &:hover{
background-color: $-beige;
border-radius: 2px;
color: $-grey;
}
}
.LP-Pagination__First{
&:before{
content: "«";
}
}
.LP-Pagination__First{
&:before{
content: "";
padding-right: 1em;
font-size: larger;
}
}
.LP-Pagination__Previous{
&:before{
content: "»";
}
}
.LP-Pagination__Previous{
&:before{
content: "";
padding-right: 1em;
font-size: larger;
}
}
.LP-Pagination__Next{
&:after{
content: "\f061";
}
}
.LP-Pagination__Next{
&:after{
content: "";
padding-left: 1em;
font-size: larger;
}
}
.LP-Pagination__Last{
&:after{
content: "»";
}
}
.LP-Pagination__Last{
&:after{
content: "";
padding-left: 1em;
font-size: larger;
}
}
}

View File

@ -277,13 +277,21 @@ body {
border-radius: 2px;
color: #565656; }
.LP-Pagination .LP-Pagination__First:before {
content: "«"; }
content: "⟪";
padding-right: 1em;
font-size: larger; }
.LP-Pagination .LP-Pagination__Previous:before {
content: "»"; }
content: "⟨";
padding-right: 1em;
font-size: larger; }
.LP-Pagination .LP-Pagination__Next:after {
content: "\f061"; }
content: "⟩";
padding-left: 1em;
font-size: larger; }
.LP-Pagination .LP-Pagination__Last:after {
content: "»"; }
content: "⟫";
padding-left: 1em;
font-size: larger; }
.LP-Content {
padding: 35px; }