Skip to content

Commit

Permalink
Set smaller paging size on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
kreafox committed Jun 16, 2022
1 parent 893bde7 commit 9d7ee67
Showing 1 changed file with 56 additions and 12 deletions.
68 changes: 56 additions & 12 deletions src/SearchBlock/less/paging.less
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,31 @@
}
}

.ui.button.prev.single-angle {
margin-right: 15px;
}

.ui.button.next.single-angle {
margin-left: 15px;
}

.ui.button.prev.single-angle,
.ui.button.next.single-angle {
width: 30px;
height: 30px;
}

.ui.button.prev.double-angle,
.ui.button.next.double-angle {
width: 28px;
height: 28px;
}

.ui.button.prev,
.ui.button.next {
position: relative;
padding: 0;
margin: 0;
background: none;

&:hover {
Expand All @@ -67,7 +89,7 @@
.ui.button.next.single-angle:after,
.ui.button.prev.single-angle:after {
position: absolute;
top: -2px;
top: 5px;
display: inline-block;
width: 18px;
height: 18px;
Expand All @@ -78,27 +100,22 @@
}

.ui.button.next.single-angle:after {
left: 20px;
left: 0;
transform: rotate(-45deg);
}

.ui.button.prev.single-angle:after {
right: 20px;
right: 0;
transform: rotate(-225deg);
}

.ui.button.next,
.ui.button.prev {
padding: 0.5em 1.2em;
}

.ui.button.next.double-angle:after,
.ui.button.prev.double-angle:after,
.ui.button.next.double-angle:before,
.ui.button.prev.double-angle:before {
position: absolute;
top: 0;
left: 15px;
top: 7px;
left: 10px;
display: inline-block;
width: 15px;
height: 15px;
Expand All @@ -109,11 +126,11 @@
}

.ui.button.prev.double-angle:after {
left: 8px;
left: 2px;
}

.ui.button.next.double-angle:after {
left: 8px;
left: 2px;
}

.ui.button.next.double-angle:after,
Expand All @@ -127,6 +144,33 @@
}
}

@media only screen and (max-width: @largestMobileScreen) {
.search-body-footer {
.ui.button.pagination-item {
font-size: 14px;
}

.ui.button.prev.single-angle,
.ui.button.next.single-angle,
.ui.button.prev.double-angle,
.ui.button.next.double-angle {
width: 20px;
height: 20px;
}

.ui.button.next.single-angle:after,
.ui.button.prev.single-angle:after,
.ui.button.next.double-angle:after,
.ui.button.prev.double-angle:after,
.ui.button.next.double-angle:before,
.ui.button.prev.double-angle:before {
top: 5px;
width: 10px;
height: 10px;
}
}
}

// .sui-paging-info {
// display: inline-block;
// margin-right: 0.5em;
Expand Down

0 comments on commit 9d7ee67

Please sign in to comment.