މީޑިއާވިކީ:Common.css: Difference between revisions
Content deleted Content added
per https://phabricator.wikimedia.org/T154077 |
No edit summary |
||
ފޮޅުވަތް 1:
/*
cite, dfn {
}
/* Straight quote marks for <q> */
q {
}
/* Avoid collision of blockquote with floating elements by swapping margin and padding */
blockquote {
overflow: hidden;
margin: 1em 0;
padding: 0 40px;
}
/* Prevent the 'double bold' bug in Firefox when using DirectWrite */
strong.selflink {
font-weight: 700;
}
/* Consistent size for <small>, <sub> and <sup> */
small {
font-size: 85%;
}
.mw-body-content sub,
.mw-body-content sup,
span.reference /* for Parsoid */ {
}
/* Same spacing for indented and unidented paragraphs on talk pages */
.ns-talk .mw-body-content dd {
margin-top: 0.4em;
margin-bottom: 0.4em;
}
/* Main page fixes */
#interwiki-completelist {
}
/* Reduce page jumps by hiding collapsed/dismissed content */
.client-js .mw-special-Watchlist #watchlist-message,
.client-js .NavFrame.collapsed .NavContent,
.client-js .collapsible:not( .mw-made-collapsible).collapsed > tbody > tr:not(:first-child) {
display: none;
}
/* Edit window toolbar */
#toolbar {
margin-bottom: 6px;
}
/* Hide charinsert base for those not using the gadget */
#editpage-specialchars {
}
/* Highlight
body.action-info .mw-body-content :target
.citation:target {
background-color: #DEF; /* Fallback */
background-color: rgba(0, 127, 255, 0.133);
}
/* Styling for citations. Breaks long urls, etc., rather than overflowing box */
.citation {
word-wrap: break-word;
}
/* For linked citation numbers and document IDs, where the number need not be shown
on a screen or a handheld, but should be included in the printed version */
@media screen, handheld {
.citation .printonly {
display: none;
}
}
Line 51 ⟶ 83:
div.reflist,
div.refbegin {
}
div.refbegin-100 {
}
div.reflist ol.references {
margin-bottom: 0; /* Avoid double margin when nested in div.reflist */
list-style-type: inherit; /* Enable custom list style types */
}
/* Ensure refs in table headers and the like aren't bold or italic */
sup.reference {
}
/* Allow hidden ref errors to be shown by user CSS */
span.brokenref {
}
/* Hanging indentation for Template:Refbegin */
.refbegin-hanging-indents > ul {
list-style-type: none;
margin-left: 0;
}
.refbegin-hanging-indents > ul > li,
.refbegin-hanging-indents > dl > dd {
margin-left: 0;
padding-left: 3.2em;
text-indent: -3.2em;
list-style: none;
}
/* Reset top margin for lists embedded in columns */
div.columns {
}
div.columns dl,
div.columns ol,
div.columns ul {
}
Line 106 ⟶ 133:
div.columns li,
div.columns dd dd {
}
/* Style for [[Template:Flowlist]] that Lets lists flow around floating objecs */
.flowlist ul {
}
.flowlist ol {
}
.flowlist dl {
}
/* Style for horizontal lists (separator following item).
@source mediawiki.org/wiki/Snippets/Horizontal_lists
@revision
@author [[User:Edokter]]
*/
Line 135 ⟶ 161:
.hlist ol,
.hlist ul {
}
/* Display list items inline */
Line 142 ⟶ 168:
.hlist dt,
.hlist li {
}
/* Display nested lists inline */
Line 153 ⟶ 179:
.hlist ol dl, .hlist ol ol, .hlist ol ul,
.hlist ul dl, .hlist ul ol, .hlist ul ul {
}
/* Hide empty list items */
.hlist .mw-empty-li {
display: none;
}
/* Generate interpuncts */
.hlist dt:after {
}
.hlist dd:after,
.hlist li:after {
}
.hlist dd:last-child:after,
.hlist dt:last-child:after,
.hlist li:last-child:after {
}
/* Add parentheses around nested lists */
Line 179 ⟶ 203:
.hlist dt dd:first-child:before, .hlist dt dt:first-child:before, .hlist dt li:first-child:before,
.hlist li dd:first-child:before, .hlist li dt:first-child:before, .hlist li li:first-child:before {
}
.hlist dd dd:last-child:after, .hlist dd dt:last-child:after, .hlist dd li:last-child:after,
.hlist dt dd:last-child:after, .hlist dt dt:last-child:after, .hlist dt li:last-child:after,
.hlist li dd:last-child:after, .hlist li dt:last-child:after, .hlist li li:last-child:after {
}
/* Put ordinals in front of ordered list items */
.hlist ol {
}
.hlist ol > li {
}
.hlist ol > li:before {
}
.hlist dd ol > li:first-child:before,
.hlist dt ol > li:first-child:before,
.hlist li ol > li:first-child:before {
}
Line 215 ⟶ 231:
.plainlist ol,
.plainlist ul {
}
.plainlist ol li,
.plainlist ul li {
}
/* Default style for navigation boxes */
.navbox { /* Navbox container style */
border: 1px solid #a2a9b1;
width: 100%;
margin: 1em auto 0; /* Prevent preceding content from clinging to navboxes */
}
.navbox .navbox {
margin-top: 0; /* No top margin for nested navboxes */
}
.navbox + .navbox {
margin-top: -1px; /* Single pixel border between adjacent navboxes */
}
.navbox-inner,
.navbox-subgroup {
}
.navbox-group,
.navbox-title,
.navbox-abovebelow {
}
th.navbox-group { /* Group style */
}
.navbox,
.navbox-subgroup {
}
.navbox-list {
}
/* cell spacing for navbox cells */
tr + tr > .navbox-abovebelow,
tr + tr > .navbox-group,
tr + tr > .navbox-image,
tr + tr > .navbox-list { /* Borders above 2nd, 3rd, etc. rows */
border-top: 2px solid #fdfdfd; /* Must match background color */
}
.navbox th,
.navbox-title {
}
.navbox-abovebelow,
th.navbox-group,
.navbox-subgroup .navbox-title {
}
.navbox-subgroup .navbox-group,
.navbox-subgroup .navbox-abovebelow {
}
.navbox-even {
}
.navbox-odd {
}
.navbox .hlist td dl,
Line 292 ⟶ 313:
.navbox td.hlist ol,
.navbox td.hlist ul {
}
/* Default styling for Navbar template */
.navbar {
}
.navbar ul {
}
.mw-body-content .navbar ul {
}
.navbar li {
}
.navbar.mini li
border-bottom: none;
text-decoration: none;
cursor: inherit;
}
/* Navbar styling when nested in infobox and navbox */
.infobox .navbar {
}
.navbox .navbar {
}
.navbox-title .navbar {
}
Line 335 ⟶ 358:
in [[MediaWiki:Common.js]] are styled here so they can be customised. */
.collapseButton {
}
/* Styling for JQuery makeCollapsible, matching that of collapseButton */
.mw-parser-output .mw-collapsible-toggle {
padding-right: 0.2em;
padding-left: 0.2em;
}
.
/* @noflip */
float: left;
/* @noflip */
text-align: left;
}
/* Infobox template style */
.infobox {
}
.infobox caption {
text-align: center;
}
.infobox td,
.infobox th {
}
.infobox.bordered {
}
.infobox.bordered td,
.infobox.bordered th {
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
}
.infobox.sisterproject {
}
.infobox.standard-talk {
}
.infobox.standard-talk.bordered td,
.infobox.standard-talk.bordered th {
}
Line 416 ⟶ 440:
.infobox.bordered .mergedtoprow td,
.infobox.bordered .mergedtoprow th {
}
.infobox.bordered .mergedrow td,
.infobox.bordered .mergedrow th {
}
Line 432 ⟶ 456:
country subdivisions, cities, etc. */
.infobox.geography {
}
.infobox.geography td,
.infobox.geography th {
}
.infobox.geography .mergedtoprow td,
.infobox.geography .mergedtoprow th {
}
.infobox.geography .mergedrow td,
.infobox.geography .mergedrow th {
}
.infobox.geography .mergedbottomrow td,
.infobox.geography .mergedbottomrow th {
}
.infobox.geography .maptable td,
.infobox.geography .maptable th {
}
/* Normal font styling for table row headers with scope="row" tag */
.wikitable.plainrowheaders th[scope=row] {
}
Line 478 ⟶ 502:
.wikitable td ol,
.wikitable td dl {
}
/* ...unless they also use the hlist class */
Line 487 ⟶ 511:
.wikitable.hlist td ol,
.wikitable.hlist td dl {
}
Line 494 ⟶ 518:
[[Template:Multi-video_start]] */
div.listenlist {
}
/* Fix for hieroglyphs specificality issue in infoboxes ([[Phabricator:43869]]) */
table.mw-hiero-table td {
}
/* Style rules for media list templates */
div.medialist {
}
div.medialist ul {
}
div.medialist ul li {
}
div.medialist ul li li {
}
Line 539 ⟶ 563:
div#mw_content a[href*=".PDF?"].external,
div#mw_content a[href*=".PDF#"].external {
}
/* Content in columns with CSS instead of tables ([[Template:Columns]]) */
div.columns-2 div.column {
}
div.columns-3 div.column {
}
div.columns-4 div.column {
}
div.columns-5 div.column {
}
/* Messagebox templates */
.messagebox {
}
.messagebox.merge {
}
.messagebox.cleanup {
}
.messagebox.standard-talk {
}
/* For old WikiProject banners inside banner shells. */
.mbox-inside .standard-talk,
.messagebox.nested-talk {
}
.messagebox.small {
}
.messagebox.small-talk {
}
/* Cell sizes for ambox/tmbox/imbox/cmbox/ombox/fmbox/dmbox message boxes */
th.mbox-text, td.mbox-text { /* The message body cell(s) */
}
td.mbox-image { /* The left image cell */
}
td.mbox-imageright { /* The right image cell */
}
td.mbox-empty-cell { /* An empty narrow cell */
}
/* Article message box styles */
table.ambox {
box-sizing: border-box;
}
table.ambox + table.ambox { /* Single border between stacked boxes. */
}
.ambox th.mbox-text,
.ambox td.mbox-text { /* The message body cell(s) */
}
.ambox td.mbox-image { /* The left image cell */
}
.ambox td.mbox-imageright { /* The right image cell */
}
table.ambox-notice {
}
table.ambox-speedy {
}
table.ambox-delete {
}
table.ambox-content {
}
table.ambox-style {
}
table.ambox-move {
}
table.ambox-protection {
}
/* Image message box styles */
table.imbox {
box-sizing: border-box;
}
.imbox .mbox-text .imbox { /* For imboxes inside imbox-text cells. */
}
.mbox-inside .imbox { /* For imboxes inside other templates. */
}
table.imbox-notice {
}
table.imbox-speedy {
}
table.imbox-delete {
}
table.imbox-content {
}
table.imbox-style {
}
table.imbox-move {
}
table.imbox-protection {
}
table.imbox-license {
}
table.imbox-featured {
}
/* Category message box styles */
table.cmbox {
box-sizing: border-box;
}
table.cmbox-notice {
}
table.cmbox-speedy {
}
table.cmbox-delete {
}
table.cmbox-content {
}
table.cmbox-style {
}
table.cmbox-move {
}
table.cmbox-protection {
}
/* Other pages message box styles */
table.ombox {
box-sizing: border-box;
}
table.ombox-notice {
}
table.ombox-speedy {
}
table.ombox-delete {
}
table.ombox-content {
}
table.ombox-style {
}
table.ombox-move {
}
table.ombox-protection {
}
/* Talk page message box styles */
table.tmbox {
min-width: 80%;
box-sizing: border-box;
}
.tmbox.mbox-small {
min-width: 0; /* reset the min-width of tmbox above */
}
.mediawiki .mbox-inside .tmbox { /* For tmboxes inside other templates. The "mediawiki" class ensures that */
}
.mbox-inside .tmbox.mbox-small { /* "small" tmboxes should not be small when */
}
table.tmbox-speedy {
}
table.tmbox-delete {
}
table.tmbox-content {
}
table.tmbox-style {
}
table.tmbox-move {
}
table.tmbox-protection,
table.tmbox-notice {
}
/* Disambig and set index box styles */
table.dmbox {
}
/* Footer and header message box styles */
table.fmbox {
box-sizing: border-box;
}
table.fmbox-system {
}
table.fmbox-warning {
}
table.fmbox-editnotice {
}
/* Div based "warning" style fmbox messages. */
Line 892 ⟶ 917:
div.titleblacklist-warning,
div.locked-warning {
box-sizing: border-box;
}
/* These mbox-small classes must be placed after all other
ambox/tmbox/ombox etc classes. "html body.mediawiki" is so
they override "table.ambox + table.ambox" above. */
html body.mediawiki
box-sizing: border-box;
width: 238px;
font-size: 88%;
line-height: 1.25em;
}
html body.mediawiki
box-sizing: border-box;
overflow: hidden;
width: 238px;
border-collapse: collapse;
font-size: 88%;
line-height: 1.25em;
}
Line 937 ⟶ 956:
.compact-ambox table .mbox-imageright,
.compact-ambox table .mbox-empty-cell {
}
/* Remove borders, backgrounds, padding, etc. */
.compact-ambox table.ambox {
}
body.mediawiki .compact-ambox table.mbox-small-left {
}
/* Style the text cell as a list item and remove its padding */
.compact-ambox table .mbox-text {
}
.compact-ambox table .mbox-text-span {
}
.skin-vector .compact-ambox table .mbox-text-span {
list-style-image: url(/w/skins/Vector/images/bullet-icon.png)\9;
}
/* Allow for hiding text in compact form */
.compact-ambox .hide-when-compact {
}
/* Remove default styles for [[MediaWiki:Noarticletext]]. */
div.noarticletext {
}
/* Hide (formatting) elements from screen, but not from screenreaders */
.visualhide {
}
Line 1,007 ⟶ 1,015:
[[m:MediaWiki:Common.css]] */
.check-icon a.new {
}
Line 1,014 ⟶ 1,022:
.nounderlines a,
.IPA a:link, .IPA a:visited {
}
Line 1,020 ⟶ 1,028:
from .de. Documentation at [[Wikipedia:NavFrame]]. */
div.NavFrame {
}
div.NavFrame + div.NavFrame {
}
div.NavPic {
}
div.NavFrame div.NavHead {
}
div.NavFrame p,
div.NavFrame div.NavContent,
div.NavFrame div.NavContent p {
}
div.NavEnd {
}
a.NavToggle {
}
/* Hatnotes and disambiguation notices */
.hatnote {
}
.hatnote i {
}
div.hatnote {
}
div.hatnote + div.hatnote {
}
/* Allow transcluded pages to display in lists rather than a table. */
.listify td { display: list-item; }
.listify tr { display: block; }
.listify table { display: block; }
/* Geographical coordinates defaults. See [[Template:Coord/link]]
for how these are used. The classes "geo", "longitude", and
Line 1,107 ⟶ 1,100:
.longitude, .latitude { white-space: nowrap; }
/* Temporary(!) fix for horizontal TOC in Blink (Chrone/Opera) */
.hlist .tocnumber,
.hlist .toctext {
display: inline;
}
/* When <div class="nonumtoc"> is used on the table of contents,
the ToC will display without numbers */
.nonumtoc .tocnumber {
}
.nonumtoc #toc ul,
.nonumtoc .toc ul {
}
.hlist.nonumtoc #toc ul ul,
.hlist.nonumtoc .toc ul ul {
}
Line 1,136 ⟶ 1,134:
.toclimit-6 .toclevel-5 ul,
.toclimit-7 .toclevel-6 ul {
}
/* Styling for Template:Quote */
blockquote.templatequote div.templatequotecite {
}
/* User block messages */
div.user-block {
}
Line 1,163 ⟶ 1,158:
1) Where desired
2) Links when we don't want them to
3) Bold "links" to the page itself */
.nowrap,
.nowraplinks a,
.nowraplinks .selflink
white-space: nowrap;
}
.nowrap pre {
white-space: pre;
}
/* But allow wrapping where desired: */
.wrap,
.wraplinks a {
}
/* For template documentation */
.template-documentation {
}
/* Increase the height of the image upload box */
#wpUploadDescription {
}
/* Minimum thumb width */
.thumbinner {
}
Line 1,223 ⟶ 1,196:
#mw-subcategories, #mw-pages, #mw-category-media,
#filehistory, #wikiPreview, #wikiDiff {
}
Line 1,243 ⟶ 1,207:
/* Styling for Abuse Filter tags */
.mw-tag-markers {
}
/* Hide stuff meant for accounts with special permissions. Made visible again in
[[MediaWiki:Group-sysop.css]], [[MediaWiki:Group-
[[MediaWiki:Group-templateeditor.css]], [[MediaWiki:Group-extendedmover.css]] and [[Mediawiki:Group-autoconfirmed.css]]. */
.sysop-show,
.templateeditor-show,
.
.patroller-show,
.autoconfirmed-show,
.user-show {
display: none;
}
Line 1,261 ⟶ 1,226:
* Hide the redlink generated by {{Editnotice}},
* this overrides the ".sysop-show { display: none; }" above that applies
* to the same link as well. See [[phab:T45013]]
*
* Hide the images in editnotices to keep them readable in VE view.
* Long term, editnotices should become a core feature so that they can be designed responsive.
*/
.ve-ui-mwNoticesPopupTool-item .editnotice-redlink,
.ve-ui-mwNoticesPopupTool-item .mbox-image,
.ve-ui-mwNoticesPopupTool-item .mbox-imageright {
display: none !important;
}
/* Remove bullets when there are multiple edit page warnings */
ul.permissions-errors > li {
}
ul.permissions-errors {
}
/* Pie chart: transparent borders */
.transborder {
}
Line 1,295 ⟶ 1,253:
.times-serif,
span.texhtml {
}
span.texhtml {
}
span.texhtml span.texhtml {
}
span.mwe-math-mathml-inline {
font-size: 118%;
}
Line 1,309 ⟶ 1,270:
.digits,
.texhtml {
}
/* Make <math display="block"> be left aligned with one space indent for compatibility with style conventions */
.mwe-math-fallback-image-display,
.mwe-math-mathml-display {
margin-left: 1.6em !important;
margin-top: 0.6em;
margin-bottom: 0.6em;
}
.mwe-math-mathml-display math {
display: inline;
}
Line 1,319 ⟶ 1,291:
table#mw-prefixindex-list-table,
table#mw-prefixindex-nav-table {
}
Line 1,326 ⟶ 1,298:
On narrow and mobile screens, let them collapse into a single column */
.portal-column-left {
}
.portal-column-right {
}
.portal-column-left-wide {
}
.portal-column-right-narrow {
}
.portal-column-left-extra-wide {
}
.portal-column-right-extra-narrow {
}
@media only screen and (max-width: 800px) {
}
}
/* Formerly for announcements, now used intermittently */
#bodyContent .letterhead {
}
/* Tree style lists */
.treeview ul {
}
.treeview li {
}
.treeview li li {
}
.treeview li li.lastline {
}
.treeview li.emptyline > ul {
}
/* first line here deals with new situation after RemexHTML switch,
* where emptyline cause the first child to become the 2nd child. Such a mess
*/
.mw-parsermigration-right .treeview li.emptyline > ul > .mw-empty-elt:first-child + .emptyline,
.treeview li.emptyline > ul > li:first-child {
}
Line 1,402 ⟶ 1,377:
td .sortkey,
th .sortkey {
}
/* Make it possible to hide checkboxes in <inputbox> */
.inputbox-hidecheckboxes form .inputbox-element
.inputbox-hidecheckboxes .mw-ui-checkbox {
display: none !important;
}
/* Work-around for [[Phabricator:25965]] (Kaltura advertisement) */
.k-player .k-attribution {
}
/* Move 'play' button of video player to bottom left corner */
.PopUpMediaTransform a .play-btn-large {
}
/* Hide FlaggedRevs notice UI when there are no pending changes */
.flaggedrevs_draft_synced,
.flaggedrevs_stable_synced {
display: none;
}
/* Force imgs in galleries to have borders by wrapping them in class=bordered-images */
.bordered-images img {
border:solid #ddd 1px;
}
/* Gallery styles background changes are restricted to screen view. In printing we should avoid applying backgrounds. */
@media screen {
/* The backgrounds for galleries. */
#content .gallerybox div.thumb {
/* Light gray padding */
background-color: #f8f9fa;
}
/* Put a chequered background behind images, only visible if they have transparency.
'.filehistory a img' and '#file img:hover' are handled by MediaWiki core (as of 1.19) */
.gallerybox .thumb img {
background: #fff url(//upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png) repeat;
}
/* But not on articles, user pages, portals or with opt-out. */
.ns-0 .gallerybox .thumb img,
.ns-2 .gallerybox .thumb img,
.ns-100 .gallerybox .thumb img,
.nochecker .gallerybox .thumb img {
background: #fff;
}
}
|