Skip to content

Commit

Permalink
refactor: move css for pagination to global file
Browse files Browse the repository at this point in the history
  • Loading branch information
akinsey committed Dec 2, 2021
1 parent a6708c3 commit af95f9b
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 73 deletions.
52 changes: 52 additions & 0 deletions src/assets/scss/_global-components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,58 @@ input[disabled].toggle-switch:checked + label:after { background-color: lighten(
@include break-mobile-sm { grid-template-columns: 1fr; }
}

// Bottom actions and pagination
.actions-bottom {
border-top: 1px solid $border-color;
position: fixed;
bottom: 0;
right: 0;
left: 0;
background: $base-background-color;
padding: 0.75rem;
z-index: 1000;
&-grid {
display: grid;
grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr);
align-items: center;
column-gap: 2rem;
max-width: $view-maxWidth;
margin: 0 auto;
}
.button {
display: block;
margin-bottom: 0;
width: 100%;
}
}
.pagination-bottom {
justify-self: end;
ul { &.pagination { li { a { font-size: $font-size-sm; } } } }
}
.pagination-wrap {
float: right;
@include break-mobile-sm {
float: unset;
text-align: center;
}
}

@include break-mobile-sm {
.posts {
.actions-bottom {
.actions-bottom-grid {
grid-template-columns: 1fr auto;
align-items: center;
justify-items: center;
column-gap: 1rem;
}
.pagination-bottom {
justify-self: end;
}
}
}
}

.pagination-slide {
grid-template-columns: minmax(0, 3fr) minmax($sidebarWidth, 1fr);
max-width: $view-maxWidth;
Expand Down
8 changes: 0 additions & 8 deletions src/components/users/UserPosts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -323,12 +323,4 @@ export default {
.username { display: none; }
}
}
.pagination-wrap {
float: right;
@include break-mobile-sm {
float: unset;
text-align: center;
}
}
</style>
65 changes: 0 additions & 65 deletions src/views/Posts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1631,71 +1631,6 @@ ad-viewer {
}
}
// Bottom actions and pagination
.actions-bottom {
border-top: 1px solid $border-color;
position: fixed;
bottom: 0;
right: 0;
left: 0;
background: $base-background-color;
padding: 0.75rem;
z-index: 1000;
&-grid {
display: grid;
grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr);
align-items: center;
column-gap: 2rem;
max-width: $view-maxWidth;
margin: 0 auto;
}
.button {
display: block;
margin-bottom: 0;
width: 100%;
}
}
.pagination-bottom {
justify-self: end;
ul {
&.pagination {
li {
a {
font-size: $font-size-sm;;
}
}
}
}
}
@include break-mobile-sm {
.posts {
.actions-bottom {
.actions-bottom-grid {
grid-template-columns: 1fr auto;
align-items: center;
justify-items: center;
column-gap: 1rem;
}
.pagination-bottom {
justify-self: end;
// position: fixed;
// bottom: 3rem;
// left: 0;
// right: 0;
// background-color: #fff;
// border-top: 1px solid $border-color;
// text-align: center;
}
}
}
}
// Posts Layout Mobile
@include break-max-large {
Expand Down

0 comments on commit af95f9b

Please sign in to comment.