2022-09-06 01:51:57 +00:00
|
|
|
import {testId, theme} from 'app/client/ui2018/cssVars';
|
2020-10-02 15:10:00 +00:00
|
|
|
import {icon} from 'app/client/ui2018/icons';
|
|
|
|
import {styled} from 'grainjs';
|
|
|
|
|
|
|
|
// TODO: Update and move koForm draggableList here.
|
|
|
|
|
|
|
|
// Drag icon for use in koForm draggableList.
|
|
|
|
export const cssDragger = styled((...args: any[]) => icon('DragDrop', testId('dragger'), ...args), `
|
2022-09-06 01:51:57 +00:00
|
|
|
--icon-color: ${theme.controlSecondaryFg};
|
2020-10-02 15:10:00 +00:00
|
|
|
visibility: hidden;
|
|
|
|
align-self: center;
|
|
|
|
flex-shrink: 0;
|
|
|
|
.kf_draggable:hover & {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
`);
|