-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(design): deprecate theming option for paginators and update styl…
…es to work in both dark and light mode (#2575)
- Loading branch information
Showing
4 changed files
with
75 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 47 additions & 21 deletions
68
libs/design/src/molecules/paginator/paginator.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,74 @@ | ||
@use '../../../scss/interactions'; | ||
|
||
$border-radius: 3px; | ||
|
||
:host { | ||
display: flex; | ||
gap: 4px; | ||
} | ||
|
||
.daff-paginator { | ||
&__previous, | ||
&__next { | ||
@include interactions.clickable; | ||
display: flex; | ||
align-items: center; | ||
gap: 8px; | ||
appearance: none; | ||
background: transparent; | ||
border: 0; | ||
border-radius: 3px; | ||
display: flex; | ||
line-height: 1em; | ||
padding: 5px 10px; | ||
} | ||
border-radius: $border-radius; | ||
height: 2rem; | ||
padding: 0 8px; | ||
|
||
&__previous { | ||
fa-icon { | ||
margin-right: 10px; | ||
} | ||
} | ||
|
||
&__next { | ||
fa-icon { | ||
margin-left: 10px; | ||
&[disabled] { | ||
cursor: not-allowed; | ||
opacity: 0.5; | ||
} | ||
} | ||
|
||
&__ellipsis { | ||
padding: 5px 10px; | ||
height: 2rem; | ||
width: 2rem; | ||
text-align: center | ||
} | ||
|
||
&__page-link { | ||
@include interactions.clickable; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
appearance: none; | ||
background-color: transparent; | ||
background: none; | ||
border: 0; | ||
border-radius: 3px; | ||
display: inline-block; | ||
margin: 0 5px; | ||
padding: 5px 10px; | ||
transition: background-color 150ms ease; | ||
border-radius: $border-radius; | ||
min-width: 2rem; | ||
height: 2rem; | ||
padding: 0 4px; | ||
position: relative; | ||
|
||
span { | ||
z-index: 2; | ||
} | ||
|
||
&:after { | ||
content: ''; | ||
border-radius: $border-radius; | ||
position: absolute; | ||
left: 0; | ||
top: 0; | ||
width: 100%; | ||
height: 100%; | ||
opacity: 0; | ||
transition: opacity 300ms; | ||
} | ||
|
||
&:hover, | ||
&:active, | ||
&.selected { | ||
&:after { | ||
opacity: 1; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters