From 679bf418b318df7372de4d8c58064373954d8dd3 Mon Sep 17 00:00:00 2001 From: Isarra Date: Fri, 30 Oct 2015 20:48:06 +0000 Subject: [PATCH] Remove unneeded example styles Change-Id: I773dbf3567acf9ca5343819575007229756e327e --- Timeless.skin.php | 1 - i18n/qqq.json | 2 +- resources/screen-common.less | 48 ----------------------------------- resources/screen-desktop.less | 46 --------------------------------- resources/screen-mobile.less | 20 --------------- resources/variables.less | 3 --- skin.json | 4 +-- 7 files changed, 3 insertions(+), 121 deletions(-) diff --git a/Timeless.skin.php b/Timeless.skin.php index 7d09f22..aa595a6 100644 --- a/Timeless.skin.php +++ b/Timeless.skin.php @@ -19,7 +19,6 @@ class SkinTimeless extends SkinTemplate { $out->addMeta( 'viewport', 'width=device-width, initial-scale=1.0' ); $out->addModuleStyles( array( - 'mediawiki.skinning.interface', 'mediawiki.skinning.content.externallinks', 'skins.timeless' ) ); diff --git a/i18n/qqq.json b/i18n/qqq.json index 476db52..f66c97e 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -3,5 +3,5 @@ "authors": [ "..." ] }, "skinname-timeless": "{{optional}}", - "timeless-desc": "{{desc|what=skin|name=WoOgLeShades|url=https://www.mediawiki.org/wiki/Skin:Timeless}}" + "timeless-desc": "{{desc|what=skin|name=Timeless|url=https://www.mediawiki.org/wiki/Skin:Timeless}}" } diff --git a/resources/screen-common.less b/resources/screen-common.less index 17a8560..88622c5 100644 --- a/resources/screen-common.less +++ b/resources/screen-common.less @@ -9,14 +9,6 @@ body { padding: 0; } -#mw-wrapper { - margin: 0 auto; - position: relative; -} - -.mw-body { - padding: 1em; -} #p-logo { text-align: center; width: 10em; @@ -31,46 +23,6 @@ body { } } -/* Search form and personal menu in top-right corner */ - -#p-search { - position: absolute; - top: 1em; - right: 1em; - text-align: right; -} - -#p-personal { - position: absolute; - top: 3em; - right: 1em; - text-align: right; - - ul { - list-style-type: none; - margin: 0; - } -} - -/* Footer */ - -#mw-footer { - clear: both; - border-top: 1px solid @border; - margin-top: 1em; - padding: 1em; -} - -#mw-footer ul { - list-style-type: none; - margin: 0; -} - -#mw-footer ul li { - display: inline-block; - margin-right: 1em; -} - #mw-navigation h2, #p-search h3, #p-personal h3 { diff --git a/resources/screen-desktop.less b/resources/screen-desktop.less index 19b1dde..61c088f 100644 --- a/resources/screen-desktop.less +++ b/resources/screen-desktop.less @@ -1,47 +1 @@ @import "variables.less"; - -#mw-wrapper { - width: 60em; - border-left: 1px solid @border; - border-right: 1px solid @border; -} -.mw-body { - width: @width; - border-left: 1px solid @border; - float: right; - padding-top: 6em; -} - -#p-logo, -#mw-navigation { - width: 10em; - padding-left: 1em; - clear: left; - float: left; -} - -#p-personal ul li { - display: inline-block; - margin-right: 1em; -} -#page-tools { - position: absolute; - top: 5em; - right: 1em; - width: @width; - - div, - ul, - li { - list-style: none; - display: inline; - margin: 0; - padding: 0; - } - li { - padding-right: 1em; - } - h3 { - .hidden; - } -} diff --git a/resources/screen-mobile.less b/resources/screen-mobile.less index 1114b34..61c088f 100644 --- a/resources/screen-mobile.less +++ b/resources/screen-mobile.less @@ -1,21 +1 @@ @import "variables.less"; - -.mw-body, -.firstHeading { - margin-top: 0; -} - -#p-namespaces, -#p-views, -#p-actions { - float: left; - margin-right: 1em; -} -#p-navigation { - clear: both; -} - -.mw-body, -#mw-navigation { - padding: 1em; -} diff --git a/resources/variables.less b/resources/variables.less index 0628dc0..5e22705 100644 --- a/resources/variables.less +++ b/resources/variables.less @@ -1,8 +1,5 @@ @import "mediawiki.mixins"; -@width: 46em; -@border: #ccc; - /* To hide objects, but keep them accessible for screen-readers */ .hidden() { position: absolute; diff --git a/skin.json b/skin.json index c3582ff..10001a4 100644 --- a/skin.json +++ b/skin.json @@ -26,10 +26,10 @@ "media": "screen" }, "resources/screen-desktop.less": { - "media": "screen and (min-width: 951px)" + "media": "screen and (min-width: 751px)" }, "resources/screen-mobile.less": { - "media": "screen and (max-width: 950px)" + "media": "screen and (max-width: 750px)" } } },