Browse Source

chore(gui-v2): only enable hover styles for FF

pull/2972/head
braks 2 years ago
parent
commit
97d0fa12ea
  1. 18
      packages/nc-gui-v2/components/cell/attachment/Modal.vue

18
packages/nc-gui-v2/components/cell/attachment/Modal.vue

@ -134,19 +134,25 @@ onKeyDown('Escape', () => {
} }
.nc-attachment-item { .nc-attachment-item {
@apply cursor-pointer !h-2/3 !min-h-[200px] flex items-center justify-center relative hover:!border-0; @apply !h-2/3 !min-h-[200px] flex items-center justify-center relative;
@supports (-moz-appearance: none) {
@apply hover:border-0;
}
&::after { &::after {
@apply pointer-events-none rounded absolute top-0 left-0 right-0 bottom-0 transition-all duration-150 ease-in-out; @apply pointer-events-none rounded absolute top-0 left-0 right-0 bottom-0 transition-all duration-150 ease-in-out;
content: ''; content: '';
} }
&:hover::after { @supports (-moz-appearance: none) {
@apply ring shadow transform scale-103; &:hover::after {
} @apply ring shadow transform scale-103;
}
&:active::after { &:active::after {
@apply ring ring-pink-500 shadow transform scale-103; @apply ring ring-pink-500 shadow transform scale-103;
}
} }
} }

Loading…
Cancel
Save