diff --git a/addons/point_of_sale/static/src/css/pos.css b/addons/point_of_sale/static/src/css/pos.css index 2103f69fb9e..1f8aa667dac 100644 --- a/addons/point_of_sale/static/src/css/pos.css +++ b/addons/point_of_sale/static/src/css/pos.css @@ -2851,16 +2851,12 @@ td { } .drag-handle { - cursor: move; /* fallback if grab cursor is unsupported */ - cursor: grab; - cursor: -moz-grab; - cursor: -webkit-grab; + /* See o-grab-cursor mixin */ + cursor: url(/web/static/src/img/openhand.cur), grab; } .drag-handle:active { cursor: grabbing; - cursor: -moz-grabbing; - cursor: -webkit-grabbing; } diff --git a/addons/pos_restaurant/static/src/css/restaurant.css b/addons/pos_restaurant/static/src/css/restaurant.css index b9ed6005664..a99beb01c0e 100644 --- a/addons/pos_restaurant/static/src/css/restaurant.css +++ b/addons/pos_restaurant/static/src/css/restaurant.css @@ -13,7 +13,7 @@ /* ------ FLOOR SELECTOR ------- */ -.floor-selector { +.floor-selector { line-height: 48px; font-size: 18px; display: -webkit-flex; @@ -222,7 +222,8 @@ border-radius: 24px; background: white; box-shadow: 0px 2px 3px rgba(0,0,0,0.2); - cursor: grab; + /* See o-grab-cursor mixin */ + cursor: url(/web/static/src/img/openhand.cur), grab; transition: all 150ms linear; z-index: 100; transform: translate(-50%, -50%); diff --git a/addons/web/static/src/img/openhand.cur b/addons/web/static/src/img/openhand.cur new file mode 100644 index 00000000000..fba3ddc807f Binary files /dev/null and b/addons/web/static/src/img/openhand.cur differ diff --git a/addons/web/static/src/legacy/scss/data_export.scss b/addons/web/static/src/legacy/scss/data_export.scss index 45d25a5bea5..60f1e3dcab4 100644 --- a/addons/web/static/src/legacy/scss/data_export.scss +++ b/addons/web/static/src/legacy/scss/data_export.scss @@ -37,7 +37,7 @@ flex: 1; overflow: auto; .o_short_field { - cursor: grab; + @include o-grab-cursor; } .o-field-placeholder { border: 1px dashed $o-brand-primary; diff --git a/addons/web/static/src/legacy/scss/fields.scss b/addons/web/static/src/legacy/scss/fields.scss index b66b5ddbdad..af1b3da3564 100644 --- a/addons/web/static/src/legacy/scss/fields.scss +++ b/addons/web/static/src/legacy/scss/fields.scss @@ -367,7 +367,7 @@ // Handle widget &.o_row_handle { - cursor: grab; + @include o-grab-cursor; color: #adb5bd; text-align: center; width: 100%; diff --git a/addons/web/static/src/legacy/scss/utils.scss b/addons/web/static/src/legacy/scss/utils.scss index f5e10117abc..5ecf655119f 100644 --- a/addons/web/static/src/legacy/scss/utils.scss +++ b/addons/web/static/src/legacy/scss/utils.scss @@ -166,6 +166,16 @@ border-top: $caret-width solid transparent; } +//------------------------------------------------------------------- +// Cursor +//------------------------------------------------------------------- + +@mixin o-grab-cursor() { + // Use a custom cursor for the open hand icon as "grab" is not properly + // working on Chrome Linux (at least) + cursor: url(/web/static/src/img/openhand.cur), grab; +} + // ------------------------------------------------------------------ // Hovering effects // ------------------------------------------------------------------ diff --git a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss index b3d6769aa57..61215ca3943 100644 --- a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss +++ b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss @@ -371,10 +371,7 @@ body.editor_enable.editor_has_snippets { border-left: $o-we-sidebar-blocks-content-snippet-spacing solid transparent; margin-bottom: $o-we-sidebar-blocks-content-snippet-spacing; user-select: none; - - cursor: pointer; - cursor: copy; - cursor: grab; + @include o-grab-cursor; .oe_snippet_thumbnail_title { display: block; @@ -2143,7 +2140,7 @@ body.editor_enable.editor_has_snippets { pointer-events: auto; .o_we_overlay_content { - cursor: grab; + @include o-grab-cursor; .o_we_grabbing { cursor: grabbing;