Merge pull request #16799 from Snuffleupagus/editor-resize-cursors

[Editor] Change the resize cursors to bidirectional variants
This commit is contained in:
Jonas Jenwald 2023-08-07 08:34:26 +02:00 committed by GitHub
commit 19c712c2d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -207,81 +207,65 @@
} }
.annotationEditorLayer .resizer.topLeft { .annotationEditorLayer .resizer.topLeft {
cursor: nw-resize; cursor: nwse-resize;
top: var(--resizer-shift); top: var(--resizer-shift);
left: var(--resizer-shift); left: var(--resizer-shift);
} }
.annotationEditorLayer .resizer.topMiddle { .annotationEditorLayer .resizer.topMiddle {
cursor: n-resize; cursor: ns-resize;
top: var(--resizer-shift); top: var(--resizer-shift);
left: calc(50% + var(--resizer-shift)); left: calc(50% + var(--resizer-shift));
} }
.annotationEditorLayer .resizer.topRight { .annotationEditorLayer .resizer.topRight {
cursor: ne-resize; cursor: nesw-resize;
top: var(--resizer-shift); top: var(--resizer-shift);
right: var(--resizer-shift); right: var(--resizer-shift);
} }
.annotationEditorLayer .resizer.middleRight { .annotationEditorLayer .resizer.middleRight {
cursor: e-resize; cursor: ew-resize;
top: calc(50% + var(--resizer-shift)); top: calc(50% + var(--resizer-shift));
right: var(--resizer-shift); right: var(--resizer-shift);
} }
.annotationEditorLayer .resizer.bottomRight { .annotationEditorLayer .resizer.bottomRight {
cursor: se-resize; cursor: nwse-resize;
bottom: var(--resizer-shift); bottom: var(--resizer-shift);
right: var(--resizer-shift); right: var(--resizer-shift);
} }
.annotationEditorLayer .resizer.bottomMiddle { .annotationEditorLayer .resizer.bottomMiddle {
cursor: s-resize; cursor: ns-resize;
bottom: var(--resizer-shift); bottom: var(--resizer-shift);
left: calc(50% + var(--resizer-shift)); left: calc(50% + var(--resizer-shift));
} }
.annotationEditorLayer .resizer.bottomLeft { .annotationEditorLayer .resizer.bottomLeft {
cursor: sw-resize; cursor: nesw-resize;
bottom: var(--resizer-shift); bottom: var(--resizer-shift);
left: var(--resizer-shift); left: var(--resizer-shift);
} }
.annotationEditorLayer .resizer.middleLeft { .annotationEditorLayer .resizer.middleLeft {
cursor: w-resize; cursor: ew-resize;
top: calc(50% + var(--resizer-shift)); top: calc(50% + var(--resizer-shift));
left: var(--resizer-shift); left: var(--resizer-shift);
} }
.annotationEditorLayer.resizingTopLeft { .annotationEditorLayer:is(.resizingTopLeft, .resizingBottomRight) {
cursor: nw-resize; cursor: nwse-resize;
} }
.annotationEditorLayer.resizingTopMiddle { .annotationEditorLayer:is(.resizingTopMiddle, .resizingBottomMiddle) {
cursor: n-resize; cursor: ns-resize;
} }
.annotationEditorLayer.resizingTopRight { .annotationEditorLayer:is(.resizingTopRight, .resizingBottomLeft) {
cursor: ne-resize; cursor: nesw-resize;
} }
.annotationEditorLayer.resizingMiddleRight { .annotationEditorLayer:is(.resizingMiddleRight, .resizingMiddleLeft) {
cursor: e-resize; cursor: ew-resize;
}
.annotationEditorLayer.resizingBottomRight {
cursor: se-resize;
}
.annotationEditorLayer.resizingBottomMiddle {
cursor: s-resize;
}
.annotationEditorLayer.resizingBottomLeft {
cursor: sw-resize;
}
.annotationEditorLayer.resizingMiddleLeft {
cursor: w-resize;
} }