Fix footer bar
This commit is contained in:
@@ -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%;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -19,29 +19,36 @@ try {
|
||||
$menu = new $menuClass();
|
||||
$items = $menu->getItems();
|
||||
} catch (Exception $e) {
|
||||
$items = [];
|
||||
return;
|
||||
}
|
||||
|
||||
if (empty($items)) return;
|
||||
?>
|
||||
|
||||
<nav id="dokuwiki__pagetools" class="pagetools-statusbar" aria-labelledby="dokuwiki__pagetools__heading">
|
||||
<nav id="dokuwiki__pagetools" aria-labelledby="dokuwiki__pagetools__heading">
|
||||
<h3 class="a11y" id="dokuwiki__pagetools__heading"><?php echo $lang['page_tools']; ?></h3>
|
||||
<div class="tools">
|
||||
<ul>
|
||||
<?php foreach ($items as $item): ?>
|
||||
<?php
|
||||
$type = $item->getType();
|
||||
$accesskey = $item->getAccesskey();
|
||||
$label = hsc($item->getLabel());
|
||||
$title = hsc($item->getTitle());
|
||||
$link = $item->getLink();
|
||||
$type = $item->getType();
|
||||
$nofollow = $item->isNofollow() ? ' rel="nofollow"' : '';
|
||||
// Get link attributes from the item - this allows plugins to add their own classes
|
||||
$linkAttr = $item->getLinkAttributes('');
|
||||
$href = $linkAttr['href'] ?? $item->getLink();
|
||||
$class = $linkAttr['class'] ?? '';
|
||||
$rel = isset($linkAttr['rel']) ? ' rel="' . $linkAttr['rel'] . '"' : '';
|
||||
// Build title with accesskey hint
|
||||
$title = hsc($item->getTitle()) . ($accesskey ? ' [' . $accesskey . ']' : '');
|
||||
$accesskeyAttr = $accesskey ? ' accesskey="' . $accesskey . '"' : '';
|
||||
?>
|
||||
<li class="action <?php echo $type; ?>">
|
||||
<a href="<?php echo $link; ?>"
|
||||
title="<?php echo $title; ?><?php echo $accesskey ? ' [' . $accesskey . ']' : ''; ?>"
|
||||
<?php echo $accesskey ? 'accesskey="' . $accesskey . '"' : ''; ?>
|
||||
<?php echo $nofollow; ?>>
|
||||
<li class="<?php echo $type; ?>">
|
||||
<a href="<?php echo $href; ?>"
|
||||
class="<?php echo $class; ?>"
|
||||
title="<?php echo $title; ?>"
|
||||
<?php echo $accesskeyAttr; ?>
|
||||
<?php echo $rel; ?>>
|
||||
<?php if ($accesskey): ?>
|
||||
<span class="accesskey"><?php echo strtoupper(hsc($accesskey)); ?></span>
|
||||
<?php endif; ?>
|
||||
@@ -50,4 +57,5 @@ if (empty($items)) return;
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
Reference in New Issue
Block a user