MediaWiki:Common.css
Nota: dopo aver pubblicato, potrebbe essere necessario pulire la cache del proprio browser per vedere i cambiamenti.
- Firefox / Safari: tieni premuto il tasto delle maiuscole Shift e fai clic su Ricarica, oppure premi Ctrl-F5 o Ctrl-R (⌘-R su Mac)
- Google Chrome: premi Ctrl-Shift-R (⌘-Shift-R su un Mac)
- Internet Explorer / Edge: tieni premuto il tasto Ctrl e fai clic su Aggiorna, oppure premi Ctrl-F5
- Opera: premi Ctrl-F5.
/*<nowiki> Common CSS for all skins - copy to your user CSS to change */ /*******************************/ /* wikitable/prettytable class */ /*******************************/ /* wikitable/prettytable class for skinning normal tables, but don't skin tables within tables by accident */ table.wikitable, table.prettytable { margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #aaaaaa solid; border-collapse: collapse; } table.wikitable>*>tr>th, table.wikitable>*>tr>td, table.wikitable>tr>th, table.wikitable>tr>td, table.prettytable>*>tr>th, table.prettytable>*>tr>td, table.prettytable>tr>th, table.prettytable>tr>td { border: 1px #aaaaaa solid; padding: 0.2em; } table.wikitable>*>tr>th, table.wikitable>tr>th, table.prettytable>*>tr>th, table.prettytable>tr>th { background: #ccccff; text-align: center; } table.wikitable caption, table.prettytable caption { margin-left: inherit; margin-right: inherit; } /************************/ /* CommonsTicker styles */ /************************/ /* Put a checker background at the image description page only visible if the image has transparent background */ #file img {background: url("http://upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png") repeat;} /* Fix the background color on the sitenotice */ table#mw-dismissable-notice { background-color: transparent; } /* Default messagebox is gray */ .messagebox { width:90%; margin:0px auto; padding:0em; border:2px solid #aaaaaa; background:#fbfbfb; color:black; text-align:left; } .messagebox img { border:0em; padding:0em 0.5em; text-align:center; } /* default for all content namespaces */ .ns-subject .messagebox + .messagebox { border-top-width:0em; margin-top:-1px; } .ns-subject .messagebox { border-left-color:#1e90ff; border-left-width:10px; } .ns-subject .messagebox.notice { border-left-color:#1e90ff; } .ns-subject .messagebox.warning { border-left-color:#b22222; } .ns-subject .messagebox.serious { border-left-color:#b22222; } .ns-subject .messagebox.content { border-left-color:#f28500; } .ns-subject .messagebox.style { border-left-color:#f4c430; } .ns-subject .messagebox.merge { border-left-color:#9932cc; } .ns-subject .messagebox.growth { border-left-color:#228b22; } .ns-subject .messagebox.idea { border-left-color:yellow; } .ns-subject .messagebox.query { border-left-color:#ffb734; } .ns-subject .messagebox.move { border-left-color:#9932cc; } /* image namespace */ .ns-6 .messagebox + .messagebox { border-top-width:2px; margin-top:0.5em; } .ns-6 .messagebox { border-color:#1e90ff; border-bottom-width:5px; border-left-width:2px;} .ns-6 .messagebox.notice { border-color:#1e90ff; } .ns-6 .messagebox.warning { border-color:#b22222; } .ns-6 .messagebox.serious { border-color:#b22222; } .ns-6 .messagebox.content { border-color:#f28500; } .ns-6 .messagebox.query { border-color:#ffb734; } .ns-6 .messagebox.free { border-color:#79CC55; } .ns-6 .messagebox.nonfree { border-color:#EF9132; } .ns-6 .messagebox.pd { border-color:#7E80A3; } .ns-6 .messagebox.move { border-color:#9932cc; } /* When <div class="nonumtoc"> is used on the table of contents, the ToC will display without numbers */ .toclimit-count .tocnumber, .nonumtoc .tocnumber { display:none; } /* Allow limiting of which header levels are shown in a TOC; <div class="toclimit-3">, for instance, will limit to showing ==headings== and ===headings=== but no further (as long as there are no =headings= on the page, which there shouldn't be according to the MoS). */ .toclimit-2 .toclevel-2 {display:none;} .toclimit-3 .toclevel-3 {display:none;} .toclimit-4 .toclevel-4 {display:none;} .toclimit-5 .toclevel-5 {display:none;} .toclimit-6 .toclevel-6 {display:none;} /* Flagged revision fails to set the font color which can cause readability problems. Since the colors needed to be adjusted anyways, use different colors for each option for more usability. */ select { background:white; color:black; } select option.fr-rating-option-0 { color:red; } select option.fr-rating-option-1 { color:olive; } select option.fr-rating-option-2 { color:purple; } select option.fr-rating-option-3 { color:green; } select option.fr-rating-option-4 { color:navy; } .fr-rating-options option[selected="selected"] { font-weight:bold; } /* smart counters - allow up to #.#.# levels of counting. */ body { counter-reset: autocount-1 autocount-2 autocount-3; } .autocount:before { counter-increment: autocount-1; content: counter(autocount-1) " "; color:blue; } .autocount-reset:before { counter-reset: autocount-1; counter-increment: autocount-1; content: counter(autocount-1) " "; color:blue; } .autocount .autocount:before { counter-increment: autocount-2; content: counter(autocount-1) "." counter(autocount-2) " "; color:green; } .autocount .autocount .autocount:before { counter-increment: autocount-3; content: counter(autocount-1) "." counter(autocount-2) "." counter(autocount-3) " "; color:red; } /* Default "notice" blue */ .messagebox { width:90%; margin:0px auto; padding:0em; border:2px solid #1e90ff; background:#fbfbfb; color:black; } .messagebox img { border: none; padding:0em 0.5em; text-align:center; } .messagebox + .messagebox { border-top-width:0em; } /* book/main namespace */ .ns0 .messagebox.notice { border:2px solid #1e90ff; border-left-width:10px; } .ns0 .messagebox.warning { border:2px solid #b22222; border-left-width:10px; } .ns0 .messagebox.serious { border:2px solid #b22222; border-left-width:10px; } .ns0 .messagebox.content { border:2px solid #f28500; border-left-width:10px; } .ns0 .messagebox.style { border:2px solid #f4c430; border-left-width:10px; } .ns0 .messagebox.merge { border:2px solid #9932cc; border-left-width:10px; } .ns0 .messagebox.growth { border:2px solid #228b22; border-left-width:10px; } .ns0 .messagebox.idea { border:2px solid yellow; border-left-width:10px; } .ns0 .messagebox.query { border:2px solid #ffb734; border-left-width:10px; } .ns0 .messagebox.move { border:2px solid #9932cc; border-left-width:10px; } /* image namespace */ .ns6 .messagebox.notice { border:2px solid #1e90ff; border-bottom-width:0.4em; } .ns6 .messagebox.warning { border:2px solid #b22222; border-bottom-width:0.4em; } .ns6 .messagebox.serious { border:2px solid #b22222; border-bottom-width:0.4em; } .ns6 .messagebox.content { border:2px solid #f28500; border-bottom-width:0.4em; } .ns6 .messagebox.query { border:2px solid #ffb734; border-bottom-width:0.4em; } .ns6 .messagebox.free { border:2px solid #79CC55; border-bottom-width:0.4em; } .ns6 .messagebox.nonfree { border:2px solid #EF9132; border-bottom-width:0.4em; } .ns6 .messagebox.pd { border:2px solid #7E80A3; border-bottom-width:0.4em; } .ns6 .messagebox.move { border: 2px solid #9932cc; border-bottom-width:0.4em; } /* Book Infobox color. Copy to your user CSS to change color. */ .bookInfobox-color { background: #FFE1FF; } /* End of Common CSS skin </nowiki>*/