MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| (30 intermediate revisions by the same user not shown) | |||
| Line 85: | Line 85: | ||
div#content h1, div#content h2, div#content #firstHeading { | div#content h1, div#content h2, div#content #firstHeading { | ||
font-family: "sans-serif"; | font-family: "Arial",sans-serif; | ||
} | |||
/* tag cloud */ | |||
.tagcloud { | |||
width: 98%; | |||
text-align: center; | |||
background-color: #FDFDFD; | |||
border: 1px solid #EEEEEE; | |||
padding: 15px 10px 15px 10px; | |||
} | |||
.tagcloud a { | |||
color: #0052CB; | |||
margin-left: 10px; | |||
margin-right: 10px; | |||
font-weight: bold; | |||
} | |||
/* infobox */ | |||
.infobox .navbar { | |||
font-size: 100%; | |||
} | |||
.navbox .navbar { | |||
display: block; | |||
font-size: 100%; | |||
} | |||
.navbox-title .navbar { | |||
/* @noflip */ | |||
float: left; | |||
/* @noflip */ | |||
text-align: left; | |||
/* @noflip */ | |||
margin-right: 0.5em; | |||
width: 6em; | |||
} | |||
/* 'show'/'hide' buttons created dynamically by the CollapsibleTables javascript | |||
in [[MediaWiki:Common.js]] are styled here so they can be customised. */ | |||
.collapseButton { | |||
/* @noflip */ | |||
float: right; | |||
font-weight: normal; | |||
/* @noflip */ | |||
margin-left: 0.5em; | |||
/* @noflip */ | |||
text-align: right; | |||
width: auto; | |||
} | |||
/* In navboxes, the show/hide button balances the v·d·e links | |||
from [[Template:Navbar]], so they need to be the same width. */ | |||
.navbox .collapseButton { | |||
width: 6em; | |||
} | |||
/* Styling for JQuery makeCollapsible, matching that of collapseButton */ | |||
.mw-collapsible-toggle { | |||
font-weight: normal; | |||
/* @noflip */ | |||
text-align: right; | |||
} | |||
.navbox .mw-collapsible-toggle { | |||
width: 6em; | |||
} | |||
/* Infobox template style */ | |||
.infobox { | |||
border: 1px solid #aaa; | |||
background-color: #f9f9f9; | |||
color: black; | |||
/* @noflip */ | |||
margin: 0.5em 0 0.5em 1em; | |||
padding: 0.2em; | |||
/* @noflip */ | |||
float: right; | |||
/* @noflip */ | |||
clear: right; | |||
/* @noflip */ | |||
text-align: left; | |||
font-size: 88%; | |||
line-height: 1.5em; | |||
} | |||
.infobox caption { | |||
font-size: 125%; | |||
font-weight: bold; | |||
} | |||
.infobox td, | |||
.infobox th { | |||
vertical-align: top; | |||
} | |||
.infobox.bordered { | |||
border-collapse: collapse; | |||
} | |||
.infobox.bordered td, | |||
.infobox.bordered th { | |||
border: 1px solid #aaa; | |||
} | |||
.infobox.bordered .borderless td, | |||
.infobox.bordered .borderless th { | |||
border: 0; | |||
} | |||
.infobox.sisterproject { | |||
width: 20em; | |||
font-size: 90%; | |||
} | |||
.infobox.standard-talk { | |||
border: 1px solid #c0c090; | |||
background-color: #f8eaba; | |||
} | |||
.infobox.standard-talk.bordered td, | |||
.infobox.standard-talk.bordered th { | |||
border: 1px solid #c0c090; | |||
} | |||
/* styles for bordered infobox with merged rows */ | |||
.infobox.bordered .mergedtoprow td, | |||
.infobox.bordered .mergedtoprow th { | |||
border: 0; | |||
border-top: 1px solid #aaa; | |||
/* @noflip */ | |||
border-right: 1px solid #aaa; | |||
} | |||
.infobox.bordered .mergedrow td, | |||
.infobox.bordered .mergedrow th { | |||
border: 0; | |||
/* @noflip */ | |||
border-right: 1px solid #aaa; | |||
} | |||
/* Styles for geography infoboxes, eg countries, | |||
country subdivisions, cities, etc. */ | |||
.infobox.geography { | |||
border-collapse: collapse; | |||
line-height: 1.2em; | |||
font-size: 90%; | |||
} | |||
.infobox.geography td, | |||
.infobox.geography th { | |||
border-top: 1px solid #aaa; | |||
padding: 0.4em 0.6em 0.4em 0.6em; | |||
} | |||
.infobox.geography .mergedtoprow td, | |||
.infobox.geography .mergedtoprow th { | |||
border-top: 1px solid #aaa; | |||
padding: 0.4em 0.6em 0.2em 0.6em; | |||
} | |||
.infobox.geography .mergedrow td, | |||
.infobox.geography .mergedrow th { | |||
border: 0; | |||
padding: 0 0.6em 0.2em 0.6em; | |||
} | |||
.infobox.geography .mergedbottomrow td, | |||
.infobox.geography .mergedbottomrow th { | |||
border-top: 0; | |||
border-bottom: 1px solid #aaa; | |||
padding: 0 0.6em 0.4em 0.6em; | |||
} | |||
.infobox.geography .maptable td, | |||
.infobox.geography .maptable th { | |||
border: 0; | |||
padding: 0; | |||
} | |||
/* collapsible infoboxes */ | |||
a.infoboxtoggle { float: right; } /* positions the +/- */ | |||
.hidden { display: none; } /* hides hidden rows */ | |||
tr.header.hidden { display: table-row; } /* does _not_ hide headers */ | |||
/* references popup */ | |||
.popup { | |||
display: none; | |||
background: #f7f7f7; | |||
padding: 10px; | |||
border: 2px solid #080086; | |||
z-index: 999 | |||
} | |||
.popup:after { | |||
border-left: 8px solid transparent; | |||
border-right: 8px solid transparent; | |||
border-top: 8px solid #f7f7f7; | |||
content: ""; | |||
height: 0; | |||
left: 50%; | |||
margin-left: -8px; | |||
position: absolute; | |||
top: 100%; | |||
width: 0; | |||
} | |||
.popup:before { | |||
border-left: 12px solid transparent; | |||
border-right: 12px solid transparent; | |||
border-top: 12px solid #080086; | |||
content: ""; | |||
height: 0; | |||
left: 50%; | |||
margin-left: -12px; | |||
position: absolute; | |||
top: 100%; | |||
width: 0; | |||
} | |||
.global-msg { | |||
width: 1024px; | |||
position: fixed; /* Changed from 'relative' to 'fixed' */ | |||
top: 50%; | |||
left: 50%; | |||
transform: translate(-50%, -50%); /* Center the modal */ | |||
background: green; | |||
z-index: 1000; /* Ensure it's on top */ | |||
padding: 20px; | |||
color: white; | |||
box-sizing: border-box; /* Ensure padding is included in the width */ | |||
} | } | ||
Latest revision as of 09:53, 6 February 2024
/* Размещённый здесь CSS будет применяться ко всем темам оформления */
.page-Заглавная_страница #firstHeading {
border-bottom: 0 none;
}
.st-table {
background-color: #FCFCFC;
border: 0 none;
clear: both;
margin-bottom: 2ex;
margin-top: 1.2em;
text-align: center;
width: 100%;
}
.st-table td {
vertical-align: top;
}
.st-heading {
border: 0 none;
color: #000000;
font-size: 162%;
margin: 0;
padding: 0.1em;
}
.st-block-wrapper {
-moz-border-bottom-colors: none;
-moz-border-left-colors: none;
-moz-border-right-colors: none;
-moz-border-top-colors: none;
border-bottom-left-radius: 7px;
border-bottom-right-radius: 7px;
border-color: -moz-use-text-color #CCCCCC #CCCCCC;
border-image: none;
border-right: 1px solid #CCCCCC;
border-style: none solid solid;
border-width: 0 1px 1px;
margin-bottom: 2ex;
padding: 12px 12px 8px;
text-align: left;
}
.st-block-shapka-left {
background-color: #C8D8FF;
border-top-left-radius: 7px;
border-top-right-radius: 7px;
font-size: 1px;
height: 9px;
}
.st-block-shapka-right {
background-color: #D7FFC7;
border-top-left-radius: 7px;
border-top-right-radius: 7px;
font-size: 1px;
height: 9px;
}
.st-links {
clear: both;
font-size: 85%;
text-align: right;
}
/* floated images */
div.floatright, table.floatright {
margin: 0.5em 0 0.5em 0.5em;
}
/* pluso */
.pluso {
margin-top: 15px;
}
/* mediawiki 1.24 alpha */
div#content p {
line-height: 1.5em;
}
div#content h1, div#content h2, div#content #firstHeading {
font-family: "Arial",sans-serif;
}
/* tag cloud */
.tagcloud {
width: 98%;
text-align: center;
background-color: #FDFDFD;
border: 1px solid #EEEEEE;
padding: 15px 10px 15px 10px;
}
.tagcloud a {
color: #0052CB;
margin-left: 10px;
margin-right: 10px;
font-weight: bold;
}
/* infobox */
.infobox .navbar {
font-size: 100%;
}
.navbox .navbar {
display: block;
font-size: 100%;
}
.navbox-title .navbar {
/* @noflip */
float: left;
/* @noflip */
text-align: left;
/* @noflip */
margin-right: 0.5em;
width: 6em;
}
/* 'show'/'hide' buttons created dynamically by the CollapsibleTables javascript
in [[MediaWiki:Common.js]] are styled here so they can be customised. */
.collapseButton {
/* @noflip */
float: right;
font-weight: normal;
/* @noflip */
margin-left: 0.5em;
/* @noflip */
text-align: right;
width: auto;
}
/* In navboxes, the show/hide button balances the v·d·e links
from [[Template:Navbar]], so they need to be the same width. */
.navbox .collapseButton {
width: 6em;
}
/* Styling for JQuery makeCollapsible, matching that of collapseButton */
.mw-collapsible-toggle {
font-weight: normal;
/* @noflip */
text-align: right;
}
.navbox .mw-collapsible-toggle {
width: 6em;
}
/* Infobox template style */
.infobox {
border: 1px solid #aaa;
background-color: #f9f9f9;
color: black;
/* @noflip */
margin: 0.5em 0 0.5em 1em;
padding: 0.2em;
/* @noflip */
float: right;
/* @noflip */
clear: right;
/* @noflip */
text-align: left;
font-size: 88%;
line-height: 1.5em;
}
.infobox caption {
font-size: 125%;
font-weight: bold;
}
.infobox td,
.infobox th {
vertical-align: top;
}
.infobox.bordered {
border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
border: 1px solid #aaa;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
border: 0;
}
.infobox.sisterproject {
width: 20em;
font-size: 90%;
}
.infobox.standard-talk {
border: 1px solid #c0c090;
background-color: #f8eaba;
}
.infobox.standard-talk.bordered td,
.infobox.standard-talk.bordered th {
border: 1px solid #c0c090;
}
/* styles for bordered infobox with merged rows */
.infobox.bordered .mergedtoprow td,
.infobox.bordered .mergedtoprow th {
border: 0;
border-top: 1px solid #aaa;
/* @noflip */
border-right: 1px solid #aaa;
}
.infobox.bordered .mergedrow td,
.infobox.bordered .mergedrow th {
border: 0;
/* @noflip */
border-right: 1px solid #aaa;
}
/* Styles for geography infoboxes, eg countries,
country subdivisions, cities, etc. */
.infobox.geography {
border-collapse: collapse;
line-height: 1.2em;
font-size: 90%;
}
.infobox.geography td,
.infobox.geography th {
border-top: 1px solid #aaa;
padding: 0.4em 0.6em 0.4em 0.6em;
}
.infobox.geography .mergedtoprow td,
.infobox.geography .mergedtoprow th {
border-top: 1px solid #aaa;
padding: 0.4em 0.6em 0.2em 0.6em;
}
.infobox.geography .mergedrow td,
.infobox.geography .mergedrow th {
border: 0;
padding: 0 0.6em 0.2em 0.6em;
}
.infobox.geography .mergedbottomrow td,
.infobox.geography .mergedbottomrow th {
border-top: 0;
border-bottom: 1px solid #aaa;
padding: 0 0.6em 0.4em 0.6em;
}
.infobox.geography .maptable td,
.infobox.geography .maptable th {
border: 0;
padding: 0;
}
/* collapsible infoboxes */
a.infoboxtoggle { float: right; } /* positions the +/- */
.hidden { display: none; } /* hides hidden rows */
tr.header.hidden { display: table-row; } /* does _not_ hide headers */
/* references popup */
.popup {
display: none;
background: #f7f7f7;
padding: 10px;
border: 2px solid #080086;
z-index: 999
}
.popup:after {
border-left: 8px solid transparent;
border-right: 8px solid transparent;
border-top: 8px solid #f7f7f7;
content: "";
height: 0;
left: 50%;
margin-left: -8px;
position: absolute;
top: 100%;
width: 0;
}
.popup:before {
border-left: 12px solid transparent;
border-right: 12px solid transparent;
border-top: 12px solid #080086;
content: "";
height: 0;
left: 50%;
margin-left: -12px;
position: absolute;
top: 100%;
width: 0;
}
.global-msg {
width: 1024px;
position: fixed; /* Changed from 'relative' to 'fixed' */
top: 50%;
left: 50%;
transform: translate(-50%, -50%); /* Center the modal */
background: green;
z-index: 1000; /* Ensure it's on top */
padding: 20px;
color: white;
box-sizing: border-box; /* Ensure padding is included in the width */
}