From 351ddb73e7d931692f07304a5fde7406c77c2d54 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Wed, 12 Jun 2019 22:55:10 +0300 Subject: [PATCH] Add "Not supported on mobile devices" warning --- webserver/static/styles/index.css | 11 ++++++----- webserver/templates/base.html | 4 +++- webserver/templates/login.html | 23 +++++++++++++++++++++-- 3 files changed, 30 insertions(+), 8 deletions(-) diff --git a/webserver/static/styles/index.css b/webserver/static/styles/index.css index a3b8d7a..7925c56 100644 --- a/webserver/static/styles/index.css +++ b/webserver/static/styles/index.css @@ -33,10 +33,11 @@ body { display: none; } -/* Smartphones ----------- */ -@media only screen and (max-width: 760px) { - .mobile-warn { - display: block; - } +.mobile-warn.show { + display: block; +} + +.mobile-warn > strong { + margin-right: 5px; } /*# sourceMappingURL=index.css.map */ diff --git a/webserver/templates/base.html b/webserver/templates/base.html index bb7117a..eb3ccb0 100644 --- a/webserver/templates/base.html +++ b/webserver/templates/base.html @@ -16,6 +16,8 @@ gtag('config', 'UA-117913368-1'); + {% block head %} + {% endblock %}
@@ -49,4 +51,4 @@
- \ No newline at end of file + diff --git a/webserver/templates/login.html b/webserver/templates/login.html index eff38bd..7d32ff6 100644 --- a/webserver/templates/login.html +++ b/webserver/templates/login.html @@ -1,7 +1,26 @@ {% extends "base.html" %} + +{% block head %} + + +{% endblock %} {% block popup %} -