diff options
author | 2020-11-09 11:38:12 -0500 | |
---|---|---|
committer | 2020-11-09 11:38:12 -0500 | |
commit | 300f479cfe84663ea77de09dddec5e379c8d2090 (patch) | |
tree | 91cf87312c76eb5336cb20ec76dd21d3d9bc8923 | |
parent | Improve accessibility color selector (diff) | |
download | skin-tyrian-300f479cfe84663ea77de09dddec5e379c8d2090.tar.gz skin-tyrian-300f479cfe84663ea77de09dddec5e379c8d2090.tar.bz2 skin-tyrian-300f479cfe84663ea77de09dddec5e379c8d2090.zip |
Move jump-to information around to match current templatesv1.35.1
Signed-off-by: Brian Evans <grknight@gentoo.org>
-rw-r--r-- | TyrianTemplate.php | 8 | ||||
-rw-r--r-- | main.css | 12 | ||||
-rw-r--r-- | skin.json | 2 |
3 files changed, 16 insertions, 6 deletions
diff --git a/TyrianTemplate.php b/TyrianTemplate.php index 74f0b7e..54422ac 100644 --- a/TyrianTemplate.php +++ b/TyrianTemplate.php @@ -39,11 +39,9 @@ class TyrianTemplate extends BaseTemplate { if ( $this->data['newtalk'] ) { echo '<div class="usermessage">'; $this->html( 'newtalk' ); echo '</div>'; } ?> - <div id="jump-to-nav" class="mw-jump"> - <?php $this->msg( 'jumpto' ) ?> - <a href="#column-one"><?php $this->msg( 'jumptonavigation' ); ?></a><?php $this->msg( 'comma-separator' ) ?> - <a href="#searchInput"><?php $this->msg( 'jumptosearch' ); ?></a> - </div> + <div id="jump-to-nav"></div> + <a class="mw-jump-link" href="#mw-head"><?php $this->msg('jumpto'); $this->msg( 'jumptonavigation' ); ?></a> + <a class="mw-jump-link" href="#searchInput"><?php $this->msg('jumpto'); $this->msg( 'jumptosearch' ); ?></a> <?php //<!-- start content --> @@ -269,3 +269,15 @@ body.mw-special-Specialpages h2 { .skin-tyrian .alert-danger { color: #8B0000; } + +.mw-jump-link:not(:focus) { + display: block; + position: absolute !important; + clip: rect(1px,1px,1px,1px); + width: 1px; + height: 1px; + margin: -1px; + border: 0; + padding: 0; + overflow: hidden +} @@ -10,7 +10,7 @@ "license-name": "GPL-2.0", "type": "skin", "requires": { - "MediaWiki": ">= 1.25.0" + "MediaWiki": ">= 1.32.0" }, "ValidSkinNames": { "tyrian": "Tyrian" |