Browse Source

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

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

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

@ -134,13 +134,18 @@ 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: '';
} }
@supports (-moz-appearance: none) {
&:hover::after { &:hover::after {
@apply ring shadow transform scale-103; @apply ring shadow transform scale-103;
} }
@ -149,6 +154,7 @@ onKeyDown('Escape', () => {
@apply ring ring-pink-500 shadow transform scale-103; @apply ring ring-pink-500 shadow transform scale-103;
} }
} }
}
.nc-attachment-download { .nc-attachment-download {
@apply bg-white absolute bottom-2 right-2; @apply bg-white absolute bottom-2 right-2;

Loading…
Cancel
Save