diff --git a/addons/pos_restaurant/static/src/css/restaurant.css b/addons/pos_restaurant/static/src/css/restaurant.css index b17a3002ce6bf58fe8aaeaed877f8dfa710b6c11..2a1328c5a6d1b1dcd9960376c9a7a4cc937817da 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; @@ -219,7 +219,8 @@ margin-top: -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; } @@ -317,4 +318,3 @@ opacity: 0.5; margin-right: 4px; } - diff --git a/addons/web/static/src/img/openhand.cur b/addons/web/static/src/img/openhand.cur new file mode 100644 index 0000000000000000000000000000000000000000..fba3ddc807fd2e29b41d09af0b14d6db6bdb879c Binary files /dev/null and b/addons/web/static/src/img/openhand.cur differ diff --git a/addons/web/static/src/scss/utils.scss b/addons/web/static/src/scss/utils.scss index 794b8bea90e782fa804cfef74b3c063a2651f399..cfc09c70d6d23e94a6e1f13acd925e0cfb578b91 100644 --- a/addons/web/static/src/scss/utils.scss +++ b/addons/web/static/src/scss/utils.scss @@ -144,6 +144,16 @@ -moz-transform: scale(0.9999); // Smooth the caret on firefox } +//------------------------------------------------------------------- +// 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 c78a3f313a4eb8d0fd3499b639cc35a258ac2887..6325f8d0e1e48f769a7a6bbc55a029371f605b41 100644 --- a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss +++ b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss @@ -119,10 +119,7 @@ body.editor_enable.editor_has_snippets { box-shadow: none; background-color: transparent; user-select: none; - - cursor: pointer; - cursor: copy; - cursor: grab; + @include o-grab-cursor; .oe_snippet_thumbnail { .oe_snippet_thumbnail_img {