Jump to content

MediaWiki:Common.css: Difference between revisions

From RiSKi
No edit summary
Tag: Reverted
No edit summary
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */
/* Link glow  
 
/* Link color and glow */
a:link, a:visited {
a:link, a:visited {
   color: #003976;
   color: #0080d9 !IMPORTANT;
   text-decoration:none;
   text-decoration: none;
   transition: .35s;
   transition: .35s;
}
}


a:hover, a:active {
a:hover, a:active {
   color: #0080d9;
   color: #ffffff !IMPORTANT;
   text-shadow: #0080d9 0 0 1px;
   text-shadow: #ffffff 0 0 10px;
   text-decoration:none;
   text-decoration: none !IMPORTANT;
   transition: .35s;
   transition: .35s;
}
}
*/


/*
/* The !IMPORTANT (or !important) part forces the rule to override all other
* This is the CSS for all skins (for both mobile and desktop) on MediaWiki.org.
relevant rules. For example, at one place an object is defined in red colour,
* Styling inside .mw-parser-output should generally use TemplateStyles.
while at another place it is orange, the CSS rule with the !important will have
*/
a higher priority over all other colour definitions.


/* Force lining numbers in headers (for fonts like Georgia) */
These should be used sparingly as they can cause much confusion in large
h1,
projects.
h2,
*/
.firstHeading {
    font-variant-numeric: lining-nums;
}
 
/* Consistent size for sub/sup */
.mw-body sub,
.mw-body sup {
    font-size: 80%;
}
 
/* Public Domain background in the Help namespace */
.action-view.ns-12 #bodyContent {
background-image: url(//upload.wikimedia.org/wikipedia/commons/6/67/PD-icon-faded.png);
background-repeat: no-repeat;
/* @noflip */
background-position: right 5em;
}
 
/*
* Hide elements on the main page.
*/
.page-MediaWiki #lastmod,
.page-MediaWiki #siteSub,
.page-MediaWiki #contentSub,
.page-MediaWiki .subtitle,
.page-MediaWiki #jump-to-nav,
/* can be removed when Template:Main_page translations are updated. */  
.page-MediaWiki #firstHeading,
[lang="en"] .page-MediaWiki .mw-parser-output h2 {
display: none;
}
 
[lang="en"] .page-MediaWiki #firstHeading {
  font-size: 1.5em;
  display: block;
}
 
/* Give a bit of space to the TOC */
#toc {
margin: 1em 0;
}
 
/* Fonts for Persian language for consistency with other Wikimedia wikis */
:lang(fa) {
font-family: '.Arabic UI Text', Tahoma, 'Iranian Sans', 'Noto Sans Arabic', 'DejaVu Sans', sans-serif;
}
 
/* Div based "warning" style fmbox messages. */
div.mw-warning-with-logexcerpt,
div.mw-lag-warn-high,
div.mw-cascadeprotectedwarning,
div#mw-protect-cascadeon,
div.titleblacklist-warning {
clear: both;
margin: 0.2em 0;
border: 1px solid var( --border-color-error, #9f3526 );
background-color: var( --background-color-error-subtle, #ffdbdb );
color: var( --color-base, #202122 );
padding: 0.25em 0.9em;
box-sizing: border-box;
}
 
/* Hide confusing "Discussion" tab on [[Project:Support_desk]].
* For sanity, only do this if [[Project_talk:Support_desk]] is a
* redirect (which goes back to [[Project:Support_desk]]).
* If that is changed for some reason, it automatically comes back.
*/
.page-Project_Support_desk #ca-talk a.mw-redirect {
display: none;
}

Latest revision as of 18:55, 28 February 2025

/* CSS placed here will be applied to all skins */

/* Link color and glow */
a:link, a:visited {
  color: #0080d9 !IMPORTANT;
  text-decoration: none;
  transition: .35s;
}

a:hover, a:active {
  color: #ffffff !IMPORTANT;
  text-shadow: #ffffff 0 0 10px;
  text-decoration: none !IMPORTANT;
  transition: .35s;
}

/* The !IMPORTANT (or !important) part forces the rule to override all other
relevant rules. For example, at one place an object is defined in red colour,
while at another place it is orange, the CSS rule with the !important will have
a higher priority over all other colour definitions.

These should be used sparingly as they can cause much confusion in large 
projects.
*/