diff options
Diffstat (limited to 'sortable-base.scss')
-rw-r--r-- | sortable-base.scss | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/sortable-base.scss b/sortable-base.scss new file mode 100644 index 0000000..ee059b5 --- /dev/null +++ b/sortable-base.scss @@ -0,0 +1,68 @@ +.sortable { + th { + cursor: pointer; + + &.no-sort { + pointer-events: none; + } + &::after, + &::before { + transition: color 0.1s ease-in-out; + font-size: 1.2em; + color: transparent; + } + + &::after { + margin-left: 3px; + content: '\025B8'; + } + &:hover { + &::after { + color: inherit; + } + } + + &.dir-d { + &::after { + color: inherit; + content: '\025BE'; + } + } + + &.dir-u { + &::after { + color: inherit; + content: '\025B4'; + } + } + &.indicator-left { + &::after { + content: ''; + } + &::before { + margin-right: 3px; + content: '\025B8'; + } + + &:hover { + &::before { + color: inherit; + } + } + + &.dir-d { + &::before { + color: inherit; + content: '\025BE'; + } + } + + &.dir-u { + &::before { + color: inherit; + content: '\025B4'; + } + } + } + } +} |