Skip to content

Commit

Permalink
Merge pull request #39 from bmf-san/feature/add-pagination-active-class
Browse files Browse the repository at this point in the history
Add a class for active page in pagination
  • Loading branch information
bmf-san authored Jun 19, 2022
2 parents 4adbc30 + e930dde commit f09778e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/sea.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/dist/sea.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ <h1>Pagination</h1>
<div class="pagination">
<ul class="pagination-list">
<li class="pagination-pre"><a href="#"><span>«</span></a></li>
<li><a href="#"><span>1</span></a></li>
<li><a class="pagination-active" href="#"><span>1</span></a></li>
<li><a href="#"><span>2</span></a></li>
<li><a href="#"><span>3</span></a></li>
<li><a href="#"><span>4</span></a></li>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sea.css",
"version": "2.4.0",
"version": "2.4.1",
"description": "sea.css is a simple and easy to use css framework.",
"main": "dist/sea.min.css",
"directories": {
Expand Down
5 changes: 5 additions & 0 deletions src/component/_pagination.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
font-size: 1.5rem;
}

.pagination .pagination-list li .pagination-active {
color: var(--main-text-reverse-color);
background-color: var(--main-color);
}

.pagination .pagination-list li a span {
display: table-cell;
vertical-align: middle;
Expand Down

0 comments on commit f09778e

Please sign in to comment.