[git] gnupg-doc - branch, master, updated. 30a5a4deafeac28a461a2903a5deb2644f6ceeb0
by Werner Koch
cvs at cvs.gnupg.org
Fri Feb 1 11:54:11 CET 2019
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GnuPG website and other docs".
The branch, master has been updated
via 30a5a4deafeac28a461a2903a5deb2644f6ceeb0 (commit)
from 3b721c063430fe7010fdea837ca758b6aae9056e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 30a5a4deafeac28a461a2903a5deb2644f6ceeb0
Author: Werner Koch <wk at gnupg.org>
Date: Fri Feb 1 11:54:00 2019 +0100
web: Try to fix sub-menus for touch screens
They don't work with Fennec on my tablet, despite that FF's responsive
design tool can't emulate that behaviour.
diff --git a/web/share/gpgweb.el b/web/share/gpgweb.el
index 8c968c9..8436472 100644
--- a/web/share/gpgweb.el
+++ b/web/share/gpgweb.el
@@ -185,11 +185,20 @@ if not available. If CUSTOM is true only a minimal header is set."
(let ((item (car menu)))
(when item
(dotimes (i (1+ lvl)) (insert " "))
- (insert " <li><a href=\"" (car item) "\"")
- (when (or (string= (car item) selected-file)
- (gpgweb--any-selected-menu-p (caddr item) selected-file))
- (insert " class=\"selected\""))
- (insert ">" (cadr item) "</a>\n")
+ (if (caddr item)
+ (progn
+ (insert " <li><span class=\"topmenuitem\"")
+ (when (or (string= (car item) selected-file)
+ (gpgweb--any-selected-menu-p (caddr item)
+ selected-file))
+ (insert " class=\"selected\""))
+ (insert ">" (cadr item) "</span>\n"))
+ (progn
+ (insert " <li><a href=\"" (car item) "\"")
+ (when (or (string= (car item) selected-file)
+ (gpgweb--any-selected-menu-p (caddr item) selected-file))
+ (insert " class=\"selected\""))
+ (insert ">" (cadr item) "</a>\n")))
(when (caddr item)
(dotimes (i (1+ lvl)) (insert " "))
(insert " <ul class=\"sub-menu\">\n")
diff --git a/web/share/site.css b/web/share/site.css
index c075577..82afa8e 100644
--- a/web/share/site.css
+++ b/web/share/site.css
@@ -237,6 +237,13 @@ a:link {
text-decoration: none;
}
+.topmenuitem {
+ padding: 10px;
+ color: #757575;
+ font-weight: bold;
+ text-decoration: none;
+}
+
nav ul,
ul ul.sub-menu {
margin: 0;
@@ -285,7 +292,7 @@ nav ul li:hover ul.sub-menu {
z-index: 99;
border-radius: 0px;
position: absolute;
- top: 37px;
+ top: 28px;
left: 0;
}
nav ul ul li {
-----------------------------------------------------------------------
Summary of changes:
web/share/gpgweb.el | 19 ++++++++++++++-----
web/share/site.css | 9 ++++++++-
2 files changed, 22 insertions(+), 6 deletions(-)
hooks/post-receive
--
The GnuPG website and other docs
http://git.gnupg.org
More information about the Gnupg-commits
mailing list