parent
595c6f160d
commit
3f492952d8
@ -0,0 +1,18 @@ |
||||
mixin paginator_button(prev, disabled, link) |
||||
.paginator-button-component |
||||
a.button-anchor( |
||||
href= disabled ? undefined : link |
||||
class= disabled ? 'disabled' : '' |
||||
) |
||||
span.button-text |
||||
= prev ? '<' : '>' |
||||
|
||||
.paginator |
||||
.left |
||||
span= page.current + ' / ' + page.total |
||||
.right |
||||
.paginator-btn-box |
||||
- const is_first = page.prev == 0 |
||||
- const is_last = page.next == 0 |
||||
+paginator_button(true, is_first, url_for(page.prev_link)) |
||||
+paginator_button(false, is_last, url_for(page.next_link)) |
@ -0,0 +1,36 @@ |
||||
.paginator |
||||
display: flex |
||||
flex-direction: row |
||||
justify-content: space-between |
||||
align-items: center |
||||
padding: 10px 10px |
||||
user-select: none |
||||
.left |
||||
font-size: 18px |
||||
font-weight: bold |
||||
.right |
||||
.paginator-btn-box |
||||
display: flex |
||||
flex-direction: row |
||||
justify-content: center |
||||
gap: 24px |
||||
.paginator-button-component |
||||
.button-anchor |
||||
width: 64px |
||||
height: 32px |
||||
display: flex |
||||
align-items: center |
||||
justify-content: center |
||||
text-decoration: none |
||||
font-size: 20px |
||||
transition: all 0.2s linear 0s |
||||
background-color: rgb(180, 175, 154) |
||||
color: rgb(74, 71, 62) |
||||
cursor: default |
||||
&:hover:not(.disabled) |
||||
background-color: rgb(74, 71, 62) |
||||
color: $light |
||||
.button-anchor.disabled |
||||
background-color: rgb(200, 195, 174) |
||||
color: rgb(91, 91, 82) |
||||
cursor: not-allowed |
Loading…
Reference in new issue