Skip to content

Commit

Permalink
Fix styling of pagination to better match rest of datatable structure
Browse files Browse the repository at this point in the history
  • Loading branch information
bennothommo committed Jan 14, 2025
1 parent 3b6f2b4 commit 5885522
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 14 deletions.
17 changes: 11 additions & 6 deletions modules/backend/widgets/table/assets/css/table.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 27 additions & 8 deletions modules/backend/widgets/table/assets/less/table.less
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
}
}

&:not([data-records-per-page="false"]) .table-container {
.border-bottom-radius(0);
}

&.active .table-container {
border-color: @table-active-border;
}
Expand Down Expand Up @@ -184,6 +188,7 @@
.toolbar {
background: white;
border-bottom: 1px solid @table-inactive-border;
.clearfix();

a.btn {
color: #323e50;
Expand All @@ -199,7 +204,7 @@

.table-search {
float: right;
margin: 3px 3px 0 0;
margin: 3px 3px 3px 0;

.table-search-input {
height: auto;
Expand Down Expand Up @@ -235,29 +240,43 @@
}

.pagination {
margin: -15px 0 15px;
padding: 7px 10px;
background: white;
border: 1px solid @table-inactive-border;
border-top: none;
.border-bottom-radius(4px);

ul {
padding: 0;
margin-bottom: 15px;
margin: 0;

li {
list-style: none;
padding: 4px 6px;
.border-radius(2px);

display: inline-block;
margin-right: 5px;
font-size: 12px;
background: #ecf0f1;
line-height: 100%;

a {
display: inline-block;
text-decoration: none;
color: #95a5a6;
padding: 4px 6px;
background: #ecf0f1;
.border-radius(2px);
outline: none;
line-height: 100%;
}

&.active {
background: @brand-accent;
a:focus-visible {
outline: auto;
}

a {color: #ffffff;}
&.active a {
background: @brand-accent;
color: #ffffff;
}
}
}
Expand Down

0 comments on commit 5885522

Please sign in to comment.