From b804d57d2488d069c7377a9ab7d1bb39cd6d6016 Mon Sep 17 00:00:00 2001 From: s3lph Date: Sat, 7 Aug 2021 21:06:24 +0200 Subject: [PATCH] Disable text selection and image dragging for better touchscreen support --- static/css/matemat.css | 9 +++++++++ templates/productlist.html | 2 +- templates/userlist.html | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/static/css/matemat.css b/static/css/matemat.css index 9504e18..774ef32 100644 --- a/static/css/matemat.css +++ b/static/css/matemat.css @@ -1,3 +1,12 @@ +* { + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + .thumblist-item { display: inline-block; margin: 5px; diff --git a/templates/productlist.html b/templates/productlist.html index 824307e..b1d2eca 100644 --- a/templates/productlist.html +++ b/templates/productlist.html @@ -59,7 +59,7 @@
{% endif %}
- Picture of {{ product.name }} + Picture of {{ product.name }} {% set pstock = stock.get_stock(product) %} {% if pstock is not none %} {{ pstock }} diff --git a/templates/userlist.html b/templates/userlist.html index 4c73611..16c271a 100644 --- a/templates/userlist.html +++ b/templates/userlist.html @@ -14,7 +14,7 @@ {{ user.name }}
- Avatar of {{ user.name }} + Avatar of {{ user.name }}