Skip to content

Commit af95f9b

Browse files
committed
refactor: move css for pagination to global file
1 parent a6708c3 commit af95f9b

File tree

3 files changed

+52
-73
lines changed

3 files changed

+52
-73
lines changed

src/assets/scss/_global-components.scss

+52
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,58 @@ input[disabled].toggle-switch:checked + label:after { background-color: lighten(
708708
@include break-mobile-sm { grid-template-columns: 1fr; }
709709
}
710710

711+
// Bottom actions and pagination
712+
.actions-bottom {
713+
border-top: 1px solid $border-color;
714+
position: fixed;
715+
bottom: 0;
716+
right: 0;
717+
left: 0;
718+
background: $base-background-color;
719+
padding: 0.75rem;
720+
z-index: 1000;
721+
&-grid {
722+
display: grid;
723+
grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr);
724+
align-items: center;
725+
column-gap: 2rem;
726+
max-width: $view-maxWidth;
727+
margin: 0 auto;
728+
}
729+
.button {
730+
display: block;
731+
margin-bottom: 0;
732+
width: 100%;
733+
}
734+
}
735+
.pagination-bottom {
736+
justify-self: end;
737+
ul { &.pagination { li { a { font-size: $font-size-sm; } } } }
738+
}
739+
.pagination-wrap {
740+
float: right;
741+
@include break-mobile-sm {
742+
float: unset;
743+
text-align: center;
744+
}
745+
}
746+
747+
@include break-mobile-sm {
748+
.posts {
749+
.actions-bottom {
750+
.actions-bottom-grid {
751+
grid-template-columns: 1fr auto;
752+
align-items: center;
753+
justify-items: center;
754+
column-gap: 1rem;
755+
}
756+
.pagination-bottom {
757+
justify-self: end;
758+
}
759+
}
760+
}
761+
}
762+
711763
.pagination-slide {
712764
grid-template-columns: minmax(0, 3fr) minmax($sidebarWidth, 1fr);
713765
max-width: $view-maxWidth;

src/components/users/UserPosts.vue

-8
Original file line numberDiff line numberDiff line change
@@ -323,12 +323,4 @@ export default {
323323
.username { display: none; }
324324
}
325325
}
326-
327-
.pagination-wrap {
328-
float: right;
329-
@include break-mobile-sm {
330-
float: unset;
331-
text-align: center;
332-
}
333-
}
334326
</style>

src/views/Posts.vue

-65
Original file line numberDiff line numberDiff line change
@@ -1631,71 +1631,6 @@ ad-viewer {
16311631
}
16321632
}
16331633
1634-
1635-
// Bottom actions and pagination
1636-
.actions-bottom {
1637-
border-top: 1px solid $border-color;
1638-
position: fixed;
1639-
bottom: 0;
1640-
right: 0;
1641-
left: 0;
1642-
background: $base-background-color;
1643-
padding: 0.75rem;
1644-
z-index: 1000;
1645-
1646-
&-grid {
1647-
display: grid;
1648-
grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr);
1649-
align-items: center;
1650-
column-gap: 2rem;
1651-
max-width: $view-maxWidth;
1652-
margin: 0 auto;
1653-
}
1654-
1655-
.button {
1656-
display: block;
1657-
margin-bottom: 0;
1658-
width: 100%;
1659-
}
1660-
}
1661-
.pagination-bottom {
1662-
justify-self: end;
1663-
1664-
ul {
1665-
&.pagination {
1666-
li {
1667-
a {
1668-
font-size: $font-size-sm;;
1669-
}
1670-
}
1671-
}
1672-
}
1673-
}
1674-
1675-
@include break-mobile-sm {
1676-
.posts {
1677-
.actions-bottom {
1678-
.actions-bottom-grid {
1679-
grid-template-columns: 1fr auto;
1680-
align-items: center;
1681-
justify-items: center;
1682-
column-gap: 1rem;
1683-
}
1684-
1685-
.pagination-bottom {
1686-
justify-self: end;
1687-
// position: fixed;
1688-
// bottom: 3rem;
1689-
// left: 0;
1690-
// right: 0;
1691-
// background-color: #fff;
1692-
// border-top: 1px solid $border-color;
1693-
// text-align: center;
1694-
}
1695-
}
1696-
}
1697-
}
1698-
16991634
// Posts Layout Mobile
17001635
17011636
@include break-max-large {

0 commit comments

Comments
 (0)