Skip to content

Instantly share code, notes, and snippets.

@notpushkin
Last active July 22, 2019 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save notpushkin/8b1d2f49cbb712d1793cdd4fe59a8459 to your computer and use it in GitHub Desktop.
Save notpushkin/8b1d2f49cbb712d1793cdd4fe59a8459 to your computer and use it in GitHub Desktop.
Clean style for https://encyclopatia.ru/ (rewrite https://encyclopatia.ru/w/css/style.css with this one)
/* ==UserStyle==
@name Clean style for Encyclopatia
@namespace encyclopatia@ale.sh
@version 1.0.0
@author Alexander Pushkov (hey@ale.sh)
==/UserStyle== */
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("encyclopatia.ru") {
#vk_subscribe,
.button-up,
#siteNotice {
display: none;
}
/**
* Styling for links generated by [[MediaWiki:Edittools]]
* @source www.mediawiki.org/wiki/Extension:CharInsert#Styling
* @updated 2012-02-29
*/
.mw-charinsert-buttons {
margin-top: 10px;
border: 1px solid #aaaaaa;
padding: 1px;
text-align: center;
font-size: 110%;
}
.mw-charinsert-buttons a {
color: black;
background-color: #cde !important;
font-size: .9em;
text-decoration: none;
border: thin #069 outset;
padding: 0 .1em .1em;
}
.mw-charinsert-buttons a:hover,
.mw-charinsert-buttons a:active {
background-color: #bcd;
border-style: inset;
}
.client-js .mw-edittools-section {
display: inline;
}
.client-js .mw-edittools-section input[type="button"] {
font-size: 0.9em;
padding-left: 1px;
padding-right: 1px;
margin-left: 1px;
}
/* Spoilers */
.spoiler, .spoiler a, .spoiler a:visited {
cursor: help;
-khtml-opacity: 0.0;
-moz-opacity: 0.0;
filter:alpha(opacity=0);
opacity:0.0;
background:white;color:white;
}
.spoiler:hover, .spoiler:hover a, .spoiler:hover a:visited,
.spoilered, .spoilered a, .spoilered a:visited {
-khtml-opacity: 1.0;
-moz-opacity: 1.0;
filter:alpha(opacity=100);
opacity:1.0;
background:transparent;
}
.spoiler:hover, .spoilered {color: black;}
.spoiler:hover a, .spoilered a {color: #002BB8; cursor: pointer;}
.spoiler:hover a:visited, .spoilered a:visited {color: #5A3696;}
.infobus {
width: auto !important;
margin: 1px 1px 1px auto !important;
float: right !important;
}
.infobus .luxcont td {
width: 50% !important;
}
.socc {
margin-left: 18px;
margin-bottom: -5px;
}
.socc a {
font-size: 25px !important;
padding: 3px;
}
.socc a:hover {
color: #000;
}
div#mw-panel div.portal h3 {
padding: 0.05em 0 0.05em 0.25em;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment