[FIX] web_widget_numeric_step: always display on touch screens; avoid layout jumping otherwise

Before this patch:
- On a tablet, buttons wouldn't display (big screen; can't hover).
- On a PC, fields would make layout jumps while hovering.

@moduon MT-4472
This commit is contained in:
Jairo Llopis
2023-12-14 12:45:45 +00:00
parent e39a1201cc
commit b6ca76d338
6 changed files with 35 additions and 20 deletions

View File

@@ -0,0 +1,14 @@
// Copyright 2023 Moduon Team S.L.
// License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
.widget_numeric_step {
// Hide the buttons until the user hovers if possible
@media (hover: hover) {
.btn_numeric_step {
visibility: hidden;
}
}
&:hover .btn_numeric_step {
visibility: visible;
}
}