Compare commits

...

4 Commits

3 changed files with 124 additions and 67 deletions

View File

@ -31,6 +31,7 @@
.LP-Link{ .LP-Link{
padding: 15px 25px; padding: 15px 25px;
vertical-align: sub;
&:active, &:hover{ &:active, &:hover{
background-color: $-beige; background-color: $-beige;
@ -38,4 +39,36 @@
color: $-grey; color: $-grey;
} }
} }
.LP-Pagination__First{
&:before{
content: "";
padding-right: 1em;
font-size: larger;
}
}
.LP-Pagination__Previous{
&:before{
content: "";
padding-right: 1em;
font-size: larger;
}
}
.LP-Pagination__Next{
&:after{
content: "";
padding-left: 1em;
font-size: larger;
}
}
.LP-Pagination__Last{
&:after{
content: "";
padding-left: 1em;
font-size: larger;
}
}
} }

View File

@ -1,7 +1,10 @@
<div class="LP-Pagination"> <div class="LP-Pagination">
<ul class="LP-Pagination__List"> <ul class="LP-Pagination__List">
<li class="LP-Pagination__Item LP-Pagination__Item--first">
<a href="#" class="LP-Link"><span class="LP-Pagination__First">first</span></a>
</li>
<li class="LP-Pagination__Item LP-Pagination__Item--previous"> <li class="LP-Pagination__Item LP-Pagination__Item--previous">
<a href="#" class="LP-Link"><span class="LP-Pagination__Previous"></span></a> <a href="#" class="LP-Link"><span class="LP-Pagination__Previous">previous</span></a>
</li> </li>
<li class="LP-Pagination__Item LP-Pagination__Item--number"> <li class="LP-Pagination__Item LP-Pagination__Item--number">
<a href="#" class="LP-Link"><span class="LP-Pagination__Number">1</span></a> <a href="#" class="LP-Link"><span class="LP-Pagination__Number">1</span></a>
@ -31,7 +34,10 @@
<a href="#" class="LP-Link"><span class="LP-Pagination__Number">9</span></a> <a href="#" class="LP-Link"><span class="LP-Pagination__Number">9</span></a>
</li> </li>
<li class="LP-Pagination__Item LP-Pagination__Item--next"> <li class="LP-Pagination__Item LP-Pagination__Item--next">
<a href="#" class="LP-Link"><span class="LP-Pagination__Next"></span></a> <a href="#" class="LP-Link"><span class="LP-Pagination__Next">next</span></a>
</li>
<li class="LP-Pagination__Item LP-Pagination__Item--last">
<a href="#" class="LP-Link"><span class="LP-Pagination__Last">last</span></a>
</li> </li>
</ul> </ul>
</div> </div>

View File

@ -1,3 +1,4 @@
@charset "UTF-8";
@font-face { @font-face {
font-family: Crimson; font-family: Crimson;
src: url("fonts/Crimson/CrimsonText-Regular.ttf"), url("fonts/Crimson/CrimsonText-Bold.ttf"), url("fonts/Crimson/CrimsonText-Italic.ttf"); } src: url("fonts/Crimson/CrimsonText-Regular.ttf"), url("fonts/Crimson/CrimsonText-Bold.ttf"), url("fonts/Crimson/CrimsonText-Italic.ttf"); }
@ -270,11 +271,28 @@ body {
background-color: #D7CEC7; background-color: #D7CEC7;
color: #565656; } color: #565656; }
.LP-Pagination .LP-Link { .LP-Pagination .LP-Link {
padding: 15px 25px; } padding: 15px 25px;
vertical-align: sub; }
.LP-Pagination .LP-Link:active, .LP-Pagination .LP-Link:hover { .LP-Pagination .LP-Link:active, .LP-Pagination .LP-Link:hover {
background-color: #D7CEC7; background-color: #D7CEC7;
border-radius: 2px; border-radius: 2px;
color: #565656; } color: #565656; }
.LP-Pagination .LP-Pagination__First:before {
content: "⟪";
padding-right: 1em;
font-size: larger; }
.LP-Pagination .LP-Pagination__Previous:before {
content: "⟨";
padding-right: 1em;
font-size: larger; }
.LP-Pagination .LP-Pagination__Next:after {
content: "⟩";
padding-left: 1em;
font-size: larger; }
.LP-Pagination .LP-Pagination__Last:after {
content: "⟫";
padding-left: 1em;
font-size: larger; }
.LP-Content { .LP-Content {
padding: 35px; } padding: 35px; }