MediaWiki:Common.css
Poznámka: Po zveřejnění musíte vyprázdnit cache vašeho prohlížeče, jinak změny neuvidíte.
- Firefox / Safari: Při kliknutí na Aktualizovat držte Shift nebo stiskněte Ctrl-F5 nebo Ctrl-R (na Macu ⌘-R)
- Google Chrome: Stiskněte Ctrl-Shift-R (na Macu ⌘-Shift-R)
- Edge: Při kliknutí na Aktualizovat držte Ctrl nebo stiskněte Ctrl-F5.
/* Zde uvedené CSS bude ovlivňovat všechny vzhledy */
/*
== Cedule ==
*/
div.labelced {
margin: 0 10% 2em 10%; /* Odrazeni o desetinu sirky z obou stran a mezera dole */
background: #fbfbfb;
width: auto;
overflow: hidden;
}
div.labelced-page {
border: 1px solid #a2a9b1;
border-left: 10px solid #1e90ff; /* Vychozi: Modra "poznamka" */
}
div.labelced + div.labelced { /* Spojeni dvou navazujicich ceduli s jednoduchym rameckem */
margin-top: -2em;
border-top: none;
}
div.labelced-page-type-speedy {
border-left: 10px solid #b22222; /* Cervena "urgentni" */
background: #fee; /* Ruzovy podklad */
}
div.labelced-page-type-delete {
border-left: 10px solid #b22222; /* Cervene "smazani" */
}
div.labelced-page-type-content {
border-left: 10px solid #f28500; /* Oranzova "k obsahu" */
}
div.labelced-page-type-maintenance {
border-left: 10px solid #f4c430; /* Zluty "vzhled a styl" */
}
div.labelced-page-type-move {
border-left: 10px solid #9932cc; /* Fialovy "presun" */
}
div.labelced-page-type-protection {
border-left: 10px solid #bba; /* Sedozlata "ochrana" */
}
div.labelced-page-type-editnotice {
margin: 0 !important;
border-left: 1px solid #a2a9b1 !important;
}
div.labelced_message {
border: none;
padding: .25em .5em;
width: auto;
text-align: left;
display: flex;
}
div.labelced hr { /* Skryti horizontalni cary mezi textem a poznamkou */
display: none;
}
div.labelced_image {
float: left;
border: none;
padding: 2px .5em 0 0;
text-align: center;
}
div.labelced_message_headline {
font-size: 90%;
font-weight: bold;
margin: 0 0 .25em 0;
padding: 0 .25em;
text-align: left;
width: auto;
}
div.labelced_message_text {
font-size: 90%;
padding: 0 .25em;
text-align: left;
width: auto;
}
div.labelced_message_text p,
div.labelced_note_text p {
margin: 0
}
div.labelced_message_text p + p,
div.labelced_note_text p + p { /* Odsazeni odstavcu ve viceodstavcovem textu zpravy nebo poznamky */
margin-top: .5em;
}
div.labelced_note {
padding: .25em .5em;
background: #eeeeee;
width: auto;
}
div.labelced_note_text {
font-size: smaller;
margin: 0 0 0 52px;
padding: 0 .25em;
text-align: left;
}
div.labelced_message_headline-noimage,
div.labelced_message_text-noimage,
div.labelced_message_note-noimage { /* Zruseni odsazeni zleva v pripade chybejiciho obrazku */
margin-left: 0;
}
div.labelced_note div.labelced_image { /* Skryti obrazku v poznamce */
display: none;
}
/**
* Style for horizontal lists (separator following item).
* @source https://www.mediawiki.org/wiki/Snippets/Horizontal_lists
* @revision 9 (2016-08-10)
* @author [[User:Edokter]]
*/
.hlist dl,
.hlist ol,
.hlist ul {
margin: 0;
padding: 0;
}
/* Display list items inline */
.hlist dd,
.hlist dt,
.hlist li {
/* don't trust the note that says margin doesn't work with inline
* removing margin: 0 makes dds have margins again */
margin: 0;
display: inline;
}
/* Display nested lists inline */
.hlist.inline,
.hlist.inline dl,
.hlist.inline ol,
.hlist.inline ul,
.hlist dl dl,
.hlist dl ol,
.hlist dl ul,
.hlist ol dl,
.hlist ol ol,
.hlist ol ul,
.hlist ul dl,
.hlist ul ol,
.hlist ul ul {
display: inline;
}
/* Hide empty list items */
.hlist .mw-empty-li,
.hlist .mw-empty-elt {
display: none;
}
/* Generate interpuncts */
.hlist dt:after {
content: ": ";
}
.hlist dd:after,
.hlist li:after {
content: " · ";
font-weight: bold;
}
.hlist dd:last-child:after,
.hlist dt:last-child:after,
.hlist li:last-child:after {
content: none;
}
/* Add parentheses around nested lists */
.hlist dd dd:first-child:before,
.hlist dd dt:first-child:before,
.hlist dd li:first-child:before,
.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 {
content: " (";
font-weight: normal;
}
.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 {
content: ")";
font-weight: normal;
}
/* Put ordinals in front of ordered list items */
.hlist ol {
counter-reset: listitem;
}
.hlist ol > li {
counter-increment: listitem;
}
.hlist ol > li:before {
content: " " counter(listitem) "\a0";
}
.hlist dd ol > li:first-child:before,
.hlist dt ol > li:first-child:before,
.hlist li ol > li:first-child:before {
content: " (" counter(listitem) "\a0";
}