This commit is contained in:
parent
6cf52a6703
commit
43e50ebc37
21 changed files with 578 additions and 143 deletions
57
assets/css/components/_sort.scss
Normal file
57
assets/css/components/_sort.scss
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
.sort{
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1ch;
|
||||
|
||||
.arrow{
|
||||
line-height: 0;
|
||||
--size: 12px;
|
||||
height: var(--size);
|
||||
width: var(--size);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
top: -2px;
|
||||
transform: rotate(90deg);
|
||||
transition: transform 0.2s ease-in;
|
||||
svg{
|
||||
width: 100%;
|
||||
fill: var(--color-txt);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
&[data-sort-type="up"]{
|
||||
.arrow{
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
}
|
||||
|
||||
&[data-sort="false"]{
|
||||
color: var(--color-txt-light);
|
||||
svg{
|
||||
fill: var(--color-txt-light);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
&[data-sort="false"],
|
||||
&[data-sort="true"]{
|
||||
&:hover{
|
||||
color: var(--grey-100);
|
||||
svg{
|
||||
fill: var(--grey-100);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue