css: Tweak sortable list styling to make sortable columns more obvious.

This commit is contained in:
Thomas Ip 2019-08-16 17:40:53 +08:00 committed by Tim Abbott
parent 936366ffaa
commit 808641a603
1 changed files with 20 additions and 9 deletions

View File

@ -285,23 +285,34 @@ td .button {
border-top: 1px solid hsla(0, 0%, 0%, 0.2) !important;
border-bottom: 1px solid hsla(0, 0%, 0%, 0.2) !important;
&.active::after,
&[data-sort]:hover::after {
content: " \f0d8";
white-space: pre;
display: inline-block;
font: normal normal normal 12px/1 FontAwesome;
font-size: inherit;
text-rendering: auto;
}
&.active {
opacity: 1;
transition: opacity 100ms ease-out;
&::after {
content: " \f0d8";
white-space: pre;
display: inline-block;
font: normal normal normal 12px/1 FontAwesome;
font-size: inherit;
text-rendering: auto;
}
&.descend::after {
content: " \f0d7";
}
}
&[data-sort]:hover {
cursor: pointer;
background-color: hsla(0, 0%, 0%, 0.05);
transition: background-color 100ms ease-in-out;
&:not(.active)::after {
opacity: 0.3;
}
}
}
}