Pagination controls: apply CSS media queries for mobile devices

This commit is contained in:
Vitaliy Vlasov 2018-01-22 17:42:01 +02:00
parent 326c221988
commit df8de46532
2 changed files with 21 additions and 11 deletions

View File

@ -123,8 +123,9 @@
[:div
[draw-items]
[:div.page-nav-container
[draw-rect :backward]
[draw-rect :forward]
[:div.page-direction-container
[draw-rect :backward]
[draw-rect :forward]]
[:div.page-nav-text [:span (str "Page " page-number " of " page-count)]]
[draw-page-numbers page-number page-count]]])))

View File

@ -919,15 +919,6 @@ body {
filter: fliph;
}
.pagination-text {
width: 83px;
height: 15px;
font-family: PostGrotesk;
font-size: 15px;
text-align: center;
color: #8d99a4;
}
.icon-forward-gray {
width: 24px;
height: 24px;
@ -937,10 +928,24 @@ body {
.page-nav-container {
display: flex;
margin: 0 -6px;
@media (max-width: 767px) {
align-items: center;
flex-direction: column;
}
}
.page-direction-container {
display: flex;
@media (max-width: 767px) {
flex-direction: row;
}
}
.page-nums-container {
display: flex;
@media (max-width: 767px) {
display: none;
}
margin-left: auto;
justify-content: space-between;
}
@ -955,6 +960,10 @@ body {
flex: none;
align-items: center;
justify-content: center;
@media (max-width: 767px) {
margin-top: 12px;
}
}
.item-counts-label {