2022-09-06 01:51:57 +00:00
|
|
|
import {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';
|
|
|
|
|
|
|
|
export const cssHoverCircle = styled('div', `
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
|
|
|
background: none;
|
|
|
|
border-radius: 16px;
|
|
|
|
|
|
|
|
&:hover, &.weasel-popup-open {
|
2022-09-06 01:51:57 +00:00
|
|
|
background-color: ${theme.hover};
|
2020-10-02 15:10:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-disabled:hover {
|
|
|
|
background: none;
|
|
|
|
}
|
|
|
|
`);
|
|
|
|
|
|
|
|
export const cssTopBarBtn = styled(icon, `
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
|
|
|
padding: 8px 8px;
|
|
|
|
cursor: pointer;
|
|
|
|
-webkit-mask-size: 16px 16px;
|
2022-09-06 01:51:57 +00:00
|
|
|
background-color: ${theme.topBarButtonPrimaryFg};
|
2020-10-02 15:10:00 +00:00
|
|
|
|
|
|
|
.${cssHoverCircle.className}-disabled & {
|
2022-09-06 01:51:57 +00:00
|
|
|
background-color: ${theme.topBarButtonDisabledFg};
|
2020-10-02 15:10:00 +00:00
|
|
|
cursor: default;
|
|
|
|
}
|
2022-09-06 01:51:57 +00:00
|
|
|
&-slate { background-color: ${theme.topBarButtonSecondaryFg}; }
|
|
|
|
&-error { background-color: ${theme.topBarButtonErrorFg}; }
|
2020-10-02 15:10:00 +00:00
|
|
|
`);
|