Skip to content

Commit

Permalink
refactor(pagination): remove useless .presentation, should be markup …
Browse files Browse the repository at this point in the history
…only
  • Loading branch information
ffoodd committed Oct 30, 2019
1 parent cb33191 commit 88551f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
6 changes: 0 additions & 6 deletions scss/_pagination.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@
}
.page-item {
// Boosted mod
&.presentation {
padding: map-get($spacers, 2) 0;
font-weight: $font-weight-bold;
}
&.presentation + .page-item,
&:first-child {
.page-link {
margin-left: 0;
Expand Down Expand Up @@ -87,7 +82,6 @@
}
}

&.presentation + .page-item,
&:first-child,
&:last-child {
.page-link {
Expand Down
8 changes: 4 additions & 4 deletions site/_includes/boostwatch/pagination.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ <h2 id="pagination">Pagination<a class="doc-link" href="../components/pagination
</div>
Buttons + page counter
<div>
<nav>
<ul class="pagination">
<li class="page-item presentation" role="presentation">Page 2 of 10</li>
<nav class="d-flex align-items-center mb-3">
<span class="mr-2 font-weight-bold">Page 2 of 10</span>
<ul class="pagination mb-0">
<li class="page-item">
<a class="page-link" href="#" aria-label="Previous"></a>
</li>
Expand All @@ -56,4 +56,4 @@ <h2 id="pagination">Pagination<a class="doc-link" href="../components/pagination
</li>
</ul>
</nav>
</div>
</div>

0 comments on commit 88551f0

Please sign in to comment.