MediaWiki:Common.css: Difference between revisions
Appearance
Content deleted Content added
No edit summary Tag: Reverted |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 78: | Line 78: | ||
} |
} |
||
/* Basis-Styling für den Tooltip-Text (versteckt) */ |
|||
/** |
|||
.wiki-tooltip .tooltip-content { |
|||
* Styling for links generated by [[MediaWiki:Edittools]] |
|||
| ⚫ | |||
* @source https://www.mediawiki.org/wiki/Extension:CharInsert#Styling |
|||
position: absolute; |
|||
* @updated 2020-03-17 |
|||
| ⚫ | |||
*/ |
|||
| ⚫ | |||
.mw-charinsert-buttons { |
|||
| ⚫ | |||
border: 1px solid #aaa; |
|||
border-radius: 4px; |
|||
margin-top: 10px; |
|||
z-index: 100; |
|||
padding: 1px; |
|||
font-size: 1.1em; |
|||
text-align: center; |
|||
} |
} |
||
/* Desktop: Zeigen bei Hover */ |
|||
.mw-charinsert-buttons a { |
|||
.wiki-tooltip:hover .tooltip-content { |
|||
background-color: #cde !important; |
|||
display: block; |
|||
| ⚫ | |||
border: thin #069 outset; |
|||
| ⚫ | |||
/* font-weight: bold; */ |
|||
font-size: 0.9em; |
|||
text-decoration: none; |
|||
} |
} |
||
/* Mobil-Fix: Zeigen bei Touch/Klick und gedrückt halten */ |
|||
.mw-charinsert-buttons a:hover, |
|||
.wiki-tooltip:active .tooltip-content, |
|||
.mw-charinsert-buttons a:active { |
|||
.wiki-tooltip:focus .tooltip-content { |
|||
| ⚫ | |||
display: block; |
|||
border-style: inset; |
|||
} |
|||
.client-js .mw-edittools-section { |
|||
| ⚫ | |||
} |
|||
.client-js .mw-edittools-section input[type="button"] { |
|||
font-size: 0.9em; |
|||
margin-left: 1px; |
|||
padding-left: 1px; |
|||
padding-right: 1px; |
|||
} |
} |
||
Latest revision as of 08:12, 20 September 2026
/*
* This is the CSS for all skins (for both mobile and desktop) on mediawiki.org.
* Styling inside .mw-parser-output should generally use TemplateStyles.
*/
/* Force lining numbers in headers (for fonts like Georgia) */
h1,
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 .mw-heading2 {
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;
}
/* Basis-Styling für den Tooltip-Text (versteckt) */
.wiki-tooltip .tooltip-content {
display: none;
position: absolute;
background-color: #333;
color: #fff;
padding: 5px 10px;
border-radius: 4px;
z-index: 100;
}
/* Desktop: Zeigen bei Hover */
.wiki-tooltip:hover .tooltip-content {
display: block;
}
/* Mobil-Fix: Zeigen bei Touch/Klick und gedrückt halten */
.wiki-tooltip:active .tooltip-content,
.wiki-tooltip:focus .tooltip-content {
display: block;
}