aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2020-11-09 11:38:12 -0500
committerBrian Evans <grknight@gentoo.org>2020-11-09 11:38:12 -0500
commit300f479cfe84663ea77de09dddec5e379c8d2090 (patch)
tree91cf87312c76eb5336cb20ec76dd21d3d9bc8923
parentImprove accessibility color selector (diff)
downloadskin-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.php8
-rw-r--r--main.css12
-rw-r--r--skin.json2
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 -->
diff --git a/main.css b/main.css
index 94623e7..ddedc6d 100644
--- a/main.css
+++ b/main.css
@@ -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
+}
diff --git a/skin.json b/skin.json
index edbf4c9..f346c44 100644
--- a/skin.json
+++ b/skin.json
@@ -10,7 +10,7 @@
"license-name": "GPL-2.0",
"type": "skin",
"requires": {
- "MediaWiki": ">= 1.25.0"
+ "MediaWiki": ">= 1.32.0"
},
"ValidSkinNames": {
"tyrian": "Tyrian"