diff --git a/css/basic.less b/css/basic.less index 1491a27..0f7ba7d 100755 --- a/css/basic.less +++ b/css/basic.less @@ -28,7 +28,7 @@ body { padding: 0; } body { - font: normal 100%/1 "Perfect DOS VGA 437 Win", monospace; + font: normal 100%/1.2 "Perfect DOS VGA 437 Win", monospace; -webkit-text-size-adjust: 100%; } diff --git a/css/pagetools.less b/css/pagetools.less index 001d135..e773205 100755 --- a/css/pagetools.less +++ b/css/pagetools.less @@ -10,7 +10,7 @@ * The page tools are displayed as a sticky bar at the bottom of the viewport */ -#dokuwiki__pagetools.pagetools-statusbar { +#dokuwiki__pagetools { /* Fixed positioning at bottom of viewport */ position: fixed; bottom: 0; @@ -23,7 +23,19 @@ border-top: 1px solid @ini_border; padding: 0 0.5em; - ul { + /* Hide accessibility heading */ + h3.a11y { + position: absolute; + width: 1px; + height: 1px; + margin: -1px; + padding: 0; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; + } + + .tools ul { display: flex; flex-wrap: wrap; align-items: center; @@ -48,10 +60,11 @@ &:active { background-color: @ini_background_neu; + } - .accesskey { - color: @ini_text; - } + /* Label text */ + .label { + font-size: 0.9em; } /* Accesskey badge - prominent display like F1, F2 shortcuts */ @@ -66,8 +79,9 @@ text-transform: uppercase; } - .label { - font-size: 0.9em; + /* Hide SVG icons - we use text-only status bar style */ + svg { + display: none; } } } @@ -75,7 +89,7 @@ /* RTL support */ [dir=rtl] & { - ul li a { + .tools ul li a { .accesskey { margin-right: 0; margin-left: 0.4em; diff --git a/tpl_pagetools.php b/tpl_pagetools.php index 54653d7..c117f4b 100644 --- a/tpl_pagetools.php +++ b/tpl_pagetools.php @@ -19,35 +19,43 @@ try { $menu = new $menuClass(); $items = $menu->getItems(); } catch (Exception $e) { - $items = []; + return; } if (empty($items)) return; ?> -