Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @namespace url(http://www.w3.org/1999/xhtml);
- @-moz-document domain("fr.wikipedia.org"), domain("eu.wikipedia.org"), domain("he.wikipedia.org"), domain("fa.wikipedia.org"), domain("fr.wiktionary.org"), domain("pt.wikiversity.org"), domain("office.wikimedia.org") {
- /*
- Version: 1.2
- *** INSTALL NOTICE ***
- This CSS has been tested in Pale Moon and Waterfox Classic. It might work
- flawlessly in Firefox, but will very likely have bugs in a Chrome-type
- browser. Code suggestions are welcome.
- You can copy this code starting from line 3 ("@-moz-document ...") into
- your user.css file in a Firefox-type browser. (More technical but doesn't
- require addons)
- You can also install a userstyles addon and install this code in it as a
- new user style. (Less technical but requires installing addons)
- Recommended user styles addons are Stylus for Firefox and Waterfox Current,
- Stylem for Palemoon, Stylish 2.1.1 for Waterfox Classic. Stylish 2.1.1 can
- be downloaded via Classic Addons Archive, and auto-updating Stylish should
- be disabled as newer versions contain spyware.
- NOTE v1.2:
- - Added removal of max-width for all beta websites. On most of them it
- introduces some bugs. I'll fix them eventually. If you prefer the
- width-limited to the bugged version, simply edit line 3 of this
- script ("@-moz-document...") and remove the domain(s) that look bad.
- NOTE v1.1+:
- - If having problems with horizontal scrolling, remove this text:
- body {
- overflow-x: hidden;
- }
- - There are some unfixed cosmetic problems with the footer
- *** POST INSTALL INSTRUCTIONS ***
- PALE MOON, WATERFOX CLASSIC
- You're good to go.
- FIREFOX, CHROMIUM, CHROME, OPERA, EDGE, IE
- Not tested, will probably work to some degree or fully.
- Please report if it works. Suggestions to make the fix work with these
- and other browsers are welcome!
- *** COMMENTS, SUGGESTIONS, BUG REPORTS & FIXES ***
- Feel free to send suggestions for improvement, code suggestions, bug
- reports, ideas how to fix bugs and other comments to my e-mail or preferably
- to my talk page on MediaWiki:
- <https://www.mediawiki.org/wiki/User_talk:Vectorman007>
- I'm not a professional web developer, merely a (hopefully talented) amateur.
- I've decided to fully revert to "Legacy" Vector because when removing
- max-width text, the sidebar gets in the way of article text in a way that I
- don't know how to fix. Unfortunately some things are still broken, such as
- the blue border of the "Article" button. Help will be much appreciated.
- For any accepted contributions, the contributor will retain copyright.
- Please donate to Free Software Foundation, World Wildlife Fund, Wikipedia
- or Amnesty International if you wish to help out my causes.
- *** CHANGELOG ***
- 1.2: Support for Basque Wiki. Max-width removed on Hebrew, Persian Wiki,
- French Wiktionary, Portuguese Wikiversity and Office Wiki, but with
- bugs for now.
- Fixed history page.
- 1.1: Fix for sidebar rendering on top of the article text and other changes
- 1.0: Original version
- *** LICENSE ***
- Parts of this code, license text and accompanying notices that have been
- contributed by Vectorman are (c) 2020 Vectorman.
- All rights reserved unless noted otherwise below.
- By installing, using, reproducing, distributing, modifying, or scrolling
- past the license notice, you agree to the terms of this license.
- You may install, reproduce, distribute and/or modify this code under the
- conditions that i) it retains this license notice intact, and ii) the
- resultant code does not restrict the width of text to any fixed amount or
- to less than 80% of the screen width at 1920px wide or wider displays.
- You may not sell this code, nor charge for reproduction and/or distribution
- thereof; this applies to any manner of distribution, sale and/or
- reproduction, including but not limited to being part of other software,
- being part of a web document, or offered as a paid web service. You may not
- request donations for distributing this code.
- Any part of this license may be waived, and rights may be granted at
- author's discretion. If any part(s) of this license is/are null and void, or
- otherwise unenforceable, the enforceable part(s) shall hold regardless.
- Any parts that have not been contributed by Vectorman, should they
- exist, are copyright by their rightful owners.
- */
- .skin-vector-max-width .mw-content-container {
- max-width: none !important;
- padding: 0;
- }
- .skin-vector-max-width .mw-workspace-container {
- max-width: none !important;
- padding: 0;
- }
- .skin-vector-max-width .mw-sidebar-container {
- left: -162px;
- }
- .skin-vector-max-width .mw-page-container {
- margin-left: 177px;
- max-width: none !important;
- margin-top: -1px;
- border-top: 1px solid #a7d7f9 !important;
- border-right: 1px solid #a7d7f9 !important;
- border-left: 1px solid #a7d7f9 !important;
- border-top-width: 1px;
- border-right-width: 0px;
- border-bottom-width: 0px;
- border-left-width: 1px;
- border-top-style: solid;
- border-right-style: solid;
- border-bottom-style: solid;
- border-left-style: solid;
- border-top-color: rgb(167, 215, 249);
- border-right-color: rgb(167, 215, 249);
- border-bottom-color: rgb(167, 215, 249);
- border-left-color: rgb(167, 215, 249);
- -moz-border-top-colors: none;
- -moz-border-right-colors: none;
- -moz-border-bottom-colors: none;
- -moz-border-left-colors: none;
- border-image-source: none;
- border-image-slice: 100% 100% 100% 100%;
- border-image-width: 1 1 1 1;
- border-image-outset: 0 0 0 0;
- border-image-repeat: stretch stretch;
- border-left: 1px solid #a7d7f9 !important;
- }
- .skin-vector-search-header-legacy #mw-sidebar-checkbox:not(:checked) ~ .mw-header .mw-sidebar, .skin-vector-search-header #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar {
- visibility: visible;
- opacity: 100;
- }
- .mw-logo {
- transform: translateX(39px);
- display: block;
- }
- .skin-vector-max-width {
- background-color: #f6f6f6;
- }
- #mw-panel {
- border-right: inherit !important;
- background-color: inherit !important;
- background-image: none !important;
- }
- .mw-logo-icon {
- display: block;
- width: 160px;
- height: 160px;
- padding-left: 160px;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- }
- .mw-logo-container {
- display:none;
- }
- #mw-sidebar-button::before, #mw-sidebar-button::after, #mw-sidebar-button {
- visibility: hidden; display:none;
- }
- .skin-vector-search-header-legacy #mw-panel {
- top: 9.6875em;
- }
- #mw-page-base {
- background-color: #fbfbfb;
- background-image: -webkit-gradient(linear,right top,right bottom,color-stop(50%,#ffffff),color-stop(100%,#f6f6f6));
- background-image: -webkit-linear-gradient(top,#ffffff 50%,#f6f6f6 100%);
- background-image: -moz-linear-gradient(top,#ffffff 50%,#f6f6f6 100%);
- background-image: linear-gradient(to bottom,#ffffff 50%,#f6f6f6 100%);
- background-position: bottom left;
- height: 5em;
- margin-left: -193px;
- padding-left: 193px;
- }
- .vector-menu-tabs li {
- background-image: url(/w/skins/Vector/resources/skins.vector.styles/images/tab-normal-fade.png?1cc52);
- background-image: linear-gradient(to top,#77c1f6 0,#e8f2f8 1px,#ffffff 100%);
- background-position: left bottom;
- background-repeat: repeat-x;
- float: left;
- display: block;
- height: 100%;
- margin: 0;
- padding: 0;
- line-height: 1.125em;
- white-space: nowrap;
- }
- .skin-vector-max-width.skin-vector-search-header-legacy .mw-article-toolbar-container {
- margin-top: 2.48em;
- }
- .skin-vector-max-width .mw-page-container {
- padding: 0 0px !important;
- }
- .skin-vector-max-width .mw-page-container {
- padding: 0 0px;
- }
- .skin-vector-max-width .mw-footer-container {
- background-color: #f6f6f6;
- transform: translateX(-16px);
- margin-left: -193px;
- margin-right: -32px;
- }
- .skin-vector-max-width .mw-footer-container > .mw-content-container {
- padding-left: 193px;
- }
- .skin-vector-max-width .mw-footer {
- border-top: 1px solid #a7d7f9;
- padding: 22px 17px 1.25em 17px;
- }
- .skin-vector-max-width .mw-header {
- z-index: 2;
- }
- .skin-vector-max-width #mw-panel {
- left: -176px;
- }
- .skin-vector-max-width.skin-vector-search-header .mw-page-container {
- overflow-y: unset;
- }
- body {
- overflow-y: unset;
- }
- #mw-panel {
- font-size: 96%;
- }
- /*.vector-menu-portal .body {
- margin-left: 1.5em;
- }*/
- /* french wiki style indent*/
- /*.vector-menu-portal .body ul {
- margin-left: 1.35em !important;
- }
- */
- .skin-vector-max-width.skin-vector-search-header .mw-article-toolbar-container {
- max-width: none;
- margin-left: auto;
- margin-right: auto;
- }
- .vector-menu-portal {
- padding: 0
- }
- .skin-vector-max-width #mw-panel {
- margin-top: 109px;
- }
- .mw-header {
- background-color: #fbfbfb;
- background-image: -webkit-gradient(linear,right top,right bottom,color-stop(50%,#ffffff),color-stop(100%,#f6f6f6));
- background-image: -webkit-linear-gradient(top,#ffffff 50%,#f6f6f6 100%);
- background-image: -moz-linear-gradient(top,#ffffff 50%,#f6f6f6 100%);
- background-image: linear-gradient(to bottom,#ffffff 50%,#f6f6f6 100%);
- background-position: bottom left;
- height: 5em;
- margin-left: -193px;
- padding-left: 193px;
- }
- .skin-vector-max-width .mw-page-container {
- background-color: unset !important;
- }
- #content {
- background-color: white;
- }
- .skin-vector-max-width .mw-body {
- padding: 1.5em 1.5em 1.5em 1.5em !important;
- }
- .skin-vector-max-width .mw-page-container-inner {
- top: -11px;
- }
- .skin-vector-max-width.skin-vector-search-header .mw-workspace-container {
- top: -51px;
- }
- .skin-vector-search-header #p-search{
- visibility: unset;
- transform: translateX(483px) translateY(2px);
- z-index: 5;
- direction: rtl;
- height: 1px;
- }
- #p-personal {
- transform: translateY(-25px) translateX(-15px);
- }
- .skin-vector-search-header #p-personal {
- flex-grow: 0 !important;
- flex-basis: unset !important;
- }
- .skin-vector-search-header #p-search #searchform {
- max-width: 320px !important;
- }
- /* .skin-vector-max-width.skin-vector-search-header .mw-article-toolbar-container {margin-right: 341px;}*/
- .vector-menu-tabs ul {
- margin: 0px 341px 0px 0px;
- }
- body {
- overflow-x: hidden;
- }
- .skin-vector-max-width.action-history .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container, .skin-vector-max-width.ns-special .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container {
- margin-left: initial;
- }
- }
- @-moz-document domain("fr.wikipedia.org") {
- .mw-logo-icon {
- background: url(https://en.wikipedia.org/static/images/project-logos/frwiki.png) no-repeat !important;
- }
- }
- @-moz-document domain("eu.wikipedia.org") {
- .mw-logo-icon {
- background: url(https://en.wikipedia.org/static/images/project-logos/euwiki.png) no-repeat !important;
- }
- .skin-vector-search-header #p-search{
- transform: translateX(443px) translateY(2px) !important;
- }
- #ca-nstab-txikipedia.new a {
- padding-top: 5em;
- }
- }
- @-moz-document domain("he.wikipedia.org") {
- .mw-logo-icon {
- background: url(https://en.wikipedia.org/static/images/project-logos/hewiki.png) no-repeat !important;
- }
- }
- @-moz-document domain("fa.wikipedia.org") {
- .mw-logo-icon {
- background: url(https://en.wikipedia.org/static/images/project-logos/fawiki.png) no-repeat !important;
- }
- }
- @-moz-document domain("fr.wiktionary.org") {
- .mw-logo-icon {
- background: url(https://en.wikipedia.org/static/images/project-logos/frwiktionary.png) no-repeat !important;
- }
- }
- @-moz-document domain("pt.wikiversity.org") {
- .mw-logo-icon {
- background: url(https://en.wikipedia.org/static/images/project-logos/ptwikiversity.png) no-repeat !important;
- }
- }
- @-moz-document domain("office.wikimedia.org") {
- .mw-logo-icon {
- background: url(https://en.wikipedia.org/static/images/project-logos/officewiki.png) no-repeat !important;
- }
- }
Add Comment
Please, Sign In to add comment