|
|
(9 intermediate revisions by 5 users not shown) |
Line 1: |
Line 1: |
| /* <pre> */ | | /* |
| | |
| | '''CSS for Monobook skin only''' |
| | |
| | '''Notice to Administrators!''' |
| | |
| | Any changes to [[Mediawiki:Monobook.css|Monobook.css]] or [[MediaWiki:Common.css|Common.css]] should be first proposed to [[Wikipedia:Village Pump]]. |
| | |
| | Furthermore, changes should probably be made in |
| | [[MediaWiki:Common.css]] rather than this page, unless there is no effect in |
| | [[MediaWiki:Common.css]]. |
| | |
| | Testing can be done on your own user Monobook.css. |
| | (In [[Mozilla]] and [[Opera (web browser)|Opera]], you can also test style changes dynamically with the [http://www.squarefree.com/bookmarklets/webdevel.html test styles] bookmarklet from squarefree.com. It pops up a window for adding style rules, and updates the page as you type.) |
| | |
| | Always check with the [http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fen.wikipedia.org%2Fw%2Findex.php%3Ftitle%3DMediaWiki%3AMonobook.css%26action%3Draw%26ctype%3Dtext%2Fcss&usermedium=all W3C CSS Validation Service] after any changes. |
|
| |
|
| /* Colori di default */ | | This file is used under the GPU for a non-profit organization. The original code can be found at Wikipedia.org. |
| body {
| | |
| background: Black; | | Thank you. |
| color: #00FF00; | | |
| | <pre><nowiki>*/ |
| | |
| | /* Donations link to be uncommented during fundraising drives */ |
| | #siteNotice { |
| | margin-top:5px; |
| | padding-left: 4px; |
| | font-style: italic; |
| | text-align: center; |
| } | | } |
| #content { background : #000000; }
| |
| #content { color : #00FF00; }
| |
| #content { border: 1px solid #008000; }
| |
| /* Colore dei link */
| |
| a { color: #7070FF; }
| |
| a:visited { color: #9090D0; }
| |
| a:active, a.new { color: #FF4040; }
| |
| a.interwiki, a.external { color: #5386DB; }
| |
| a.stub { color: #974253; }
| |
| /* Colori della textbox di edit dei testi */
| |
| textarea { color: #90FF90; }
| |
| textarea { background : #001000; }
| |
| /* Casella user (quella con i link alle preferenze, alla pagina utente personale ecc.) */
| |
|
| |
|
| .autocomment { color: #008000; }
| | /* |
| fieldset {
| | #fundraising { |
| background: transparent;
| | text-align: center; |
| border: 1px solid #004000;
| | border: 1px solid gray; |
| | padding: 5px; |
| } | | } |
| legend {
| | */ |
| background: transparent; | | |
| border: 1px solid #004000;
| | /****************************/ |
| | /* BEGIN LIGHT BLUE SECTION */ |
| | /****************************/ |
| | /* Make all non-namespace pages have a light blue content area. This is done by |
| | setting the background color for all #content areas to light blue and then |
| | overriding it for any #content enclosed in a .ns-0 (main namespace). I then |
| | do the same for the "tab" background colors. --Lupo */ |
| | |
| | #content { |
| | background: #F8FCFF; /* a light blue */ |
| } | | } |
|
| |
|
| hr {
| | #content div.thumb { |
| color: #004000; | | border-color: #F8FCFF; |
| background-color: #000000;
| |
| } | | } |
|
| |
|
| /************************
| | .ns-0 * #content { |
| * STILI PER I TEMPLATE *
| | background: white; |
| * (SOLO PER IT.WIKI) *
| | } |
| ************************/
| |
|
| |
|
| .itwiki_template_avviso {
| | #mytabs li { |
| clear:both;
| | background: #F8FCFF; |
| display:block; /* per allargare anche le tabelle (se servissero) alla
| |
| larghezza della pagina (NON specificare "width"!) */
| |
| text-align:left;
| |
| background-color: #000010;
| |
| } | | } |
|
| |
|
| .itwiki_template_avviso_v { | | .ns-0 * #mytabs li { |
| clear:both;
| | background: white; |
| float:right;
| |
| width:16em;
| |
| background-color: #000010;
| |
| } | | } |
|
| |
|
| .itwiki_template_avviso .intestazione, .itwiki_template_avviso_v .intestazione {
| | #mytabs li a { |
| font-weight:bold;
| | background-color: #F8FCFF; |
| background-color: #000010;
| |
| } | | } |
|
| |
|
| .itwiki_template_disclaimer { | | .ns-0 * #mytabs li a { |
| clear:both;
| | background-color: white; |
| display:block; /* per allargare anche le tabelle (se servissero) alla
| |
| larghezza della pagina (NON specificare "width"!) */
| |
| text-align:center;
| |
| border:1px solid #C00000;
| |
| background-color: #100000;
| |
| font-size: 90%;
| |
| } | | } |
|
| |
|
| .itwiki_template_disclaimer_v { | | #p-cactions li a, #p-cactions li a:hover, #p-cactions li.selected a { |
| clear:both;
| | background-color: #333; |
| float:right;
| |
| border:1px solid #C00000;
| |
| background-color: #100000;
| |
| } | | } |
|
| |
|
| .itwiki_template_copyright { | | .ns-0 * #p-cactions li a { |
| clear:both;
| | background-color: #222; |
| display:block;
| |
| text-align:left;
| |
| background-color:#000010;
| |
| } | | } |
|
| |
|
| .itwiki_template_wikimedia { | | .ns-0 * #p-cactions li.selected a, .ns-0 * #p-cactions li a:hover { |
| background-color: #100000;
| | background-color: white; |
| float:right;
| |
| clear:right;
| |
| border:solid #008 2px;
| |
| margin:0em 0em 0.5em 0.5em;
| |
| padding:0;
| |
| width:25em;
| |
| } | | } |
| .itwiki_template_wikimedia .floatleft { | | |
| background-color: #100000;
| | .ns-0 * #content div.thumb { |
| border:.5em solid white;
| | border-color: white; |
| margin:0;
| |
| } | | } |
| .itwiki_template_wikimedia p {
| | |
| background-color: #100000;
| | /**************************/ |
| margin:.5em .5em .5em 0;
| | /* END LIGHT BLUE SECTION */ |
| | /**************************/ |
| | |
| | /* Display "From Wikipedia, the free encyclopedia" */ |
| | #siteSub { |
| | display: inline; |
| | font-size: 92%; |
| | font-weight: normal; |
| } | | } |
|
| |
|
| .itwiki_template_babelbox {
| | #bodyContent #siteSub a { |
| background-color: #100000;
| | color: #000; |
| float:right;
| | text-decoration: none; |
| border:solid #00B020 1px;
| | background-color: transparent; |
| margin:0 0 .5em 1em;
| | background-image: none; |
| width:20em; /* per evitare problemi con Opera e Safari */
| | padding-right: 0; |
| padding:5px 7px 5px 5px; /* questo lo farà apparire storto in MSIE
| |
| ma non so che farci */
| |
| } | | } |
| .itwiki_template_babelbox .intestazione {
| | |
| background-color: #001000;
| | /* Bold 'edit this page' link to encourage newcomers */ |
| text-align:center;
| | #ca-edit a { font-weight: bold !important; } |
| font-weight:bold;
| | |
| margin-left:2px;
| | /* Display "User $1, you are already logged in!" |
| | ([[MediaWiki:Alreadyloggedin]]) in red and bold */ |
| | div.alreadyloggedin { color: red; font-weight: bold; } |
| | |
| | @media print { |
| | /* Do not print edit link in templates using Template:Ed |
| | Do not print certain classes that shouldn't appear on paper */ |
| | .editlink, .noprint, .metadata, .dablink { display: none } |
| | #content { background: #FFFFFF; } /* white background on print */ |
| } | | } |
| .itwiki_template_babel { | | |
| float:left;
| | |
| width:20em;
| | /* Accessibility experiment: make diff changes not just colour-based */ |
| background:#000000;
| | |
| border:solid #A0b3ff 1px;
| | /* Making the Diff table more readable on a dark background/light text colour scheme */ |
| margin:1px 1px 1px 0;
| | table.diff { background-color: transparent; } |
| | td.diff-context { background-color: #222; } |
| | td.diff-deletedline { background-color: #550; } |
| | td.diff-addedline { background-color: #030; } |
| | td.diff-otitle { background-color: transparent; } |
| | td.diff-ntitle { background-color: transparent; } |
| | |
| | .diffchange { |
| | font-weight: bold; |
| | background-color: inherit; |
| } | | } |
| .itwiki_template_babel .sigla { | | |
| background:#001060;
| | td.diff-addedline, td.diff-deletedline, td.diff-context { |
| text-align:center;
| | font-size: 85%; |
| font-size:1.2em;
| | color: inherit; |
| font-weight:bold;
| |
| width:4em;
| |
| } | | } |
| .itwiki_template_babel2 {
| | |
| float:left;
| | #pt-login { |
| width:20em;
| | font-weight: bold; |
| background:#000000;
| | font-size: 110%; |
| border:solid #6ef7a7 1px; | |
| margin:1px 1px 1px 0; | |
| } | | } |
| .itwiki_template_babel2 .sigla {
| | |
| background:#005000; | | form#userlogin { |
| text-align:center; | | float: left; |
| font-size:1.2em; | | padding: 1em 1em .7em 1em; |
| font-weight:bold; | | background-color: #ffffe6; |
| width:4em; | | border: 2px solid #fc6; |
| | color: #000; |
| | margin-right: 2em; |
| } | | } |
| .itwiki_template_babel td,
| | |
| .itwiki_template_babel2 td {
| | form#userlogin table { |
| font-size:.9em; | | float: left; |
| line-height:1.2em; | | background-color: #ffffe6; |
| padding:5px;
| | color: #000; |
| }
| |
| .itwiki_template_babelbox .itwiki_template_babel,
| |
| .itwiki_template_babelbox .itwiki_template_babel2 {
| |
| clear:left; /* perché i singoli template nel babelbox | |
| siano uno sotto l'altro */
| |
| } | | } |
|
| |
|
| /***********************
| | p.error { |
| * FINE STILI TEMPLATE *
| | font-weight: bold; |
| ***********************/
| |
| | |
| /* L'avviso di nuovi messaggi */
| |
| .usermessage { | |
| background-color: #004000;
| |
| border: 1px solid #FFFF00;
| |
| color: #FFFF00;
| |
| font-weight: bold;
| |
| } | | } |
|
| |
|
| | /* Class styles */ |
|
| |
|
| input.historysubmit {
| | /* .toccolours added here because version in |
| padding: 0 0.3em 0.3em 0.3em !important;
| | monobook/main.css wasn't being used by the print style */ |
| font-size: 94%;
| | .toccolours { |
| cursor: pointer;
| | border:1px solid #aaaaaa; |
| height: 1.7em !important;
| | background-color:#f9f9f9; |
| margin-left: 1.6em;
| | padding:5px; |
| }
| | font-size: 95%; |
| input[type="radio"],
| |
| input[type="checkbox"] { border:none; }
| |
| select {
| |
| background-color: #004000;
| |
| background: #004000;
| |
| border: 1px solid #008000;
| |
| color: #00FF00;
| |
| vertical-align: top;
| |
| } | | } |
|
| |
|
| #p-personal li a { color: #FFFF00; } | | /* Remove padding from external links displayed without icon */ |
| | #bodyContent .plainlinks a {padding: 0 !important} |
|
| |
|
| /* Toglie l'icona vicino al nome utente
| |
| li#pt-userpage { background: none }*/
| |
|
| |
|
| #infobox { background: #002000; | | #p-nav h5 { |
| color: #00FFFF;
| | display: none; |
| border: ipx solid #00FFFF
| |
| } | | } |
|
| |
|
| /* Nuovo logo */
| | .portlet a { |
| #p-logo {
| | text-decoration: none; |
| background: url(http://www.ziost.net/holocron/dblogo.jpg) no-repeat;
| |
| display: none
| |
| position:absolute; /*needed to use z-index */
| |
| top: 8;
| |
| left: 15;
| |
| height: 0;
| |
| width: 0;
| |
| padding: 0 0 154px 154px;
| |
| overflow: hidden;
| |
| } | | } |
|
| |
|
| | .portlet a:hover { |
| | text-decoration: underline; |
| | } |
|
| |
|
| /* Colore della editbox Cerca nella colonna a fianco */
| | #p-nav .pBody { |
| #searchInput { | | padding-right: 0; |
| border: 1px inset !important;
| | } |
| color: #00FF00;
| |
| background : #000000;
| |
| } | |
|
| |
|
| input.searchButton {
| | #p-nav a { |
| background : #000000;
| | display: block; |
| border-top: 2px solid #00FFFF;
| | width: 100%; |
| border-left: 2px solid #00FFFF;
| |
| border-right: 2px solid #008080;
| |
| border-bottom: 2px solid #008080;
| |
| color : #00FF00;
| |
| } | | } |
|
| |
|
| /* .portlet e .pBody: sfondo e titoletto per tutti */ | | /* Special characters list below edit window works better without underlining */ |
| /* i blocchi della colonna a sinistra */
| | #editpage-specialchars a { text-decoration: none; } |
| | #editpage-specialchars a:hover { text-decoration: underline; } |
|
| |
|
| .portlet { | | /* If you don't want to see special characters list at all, |
| background: #004000;
| | put the following line in your User:You/monobook.css file |
| color: #00FF00;
| | (and remove the slash-asterisk comments) */ |
| } | | /* #editpage-specialchars { display: none; } */ |
|
| |
|
| .pBody { | | /* Makes the background of a framed image white instead of gray. */ |
| background: #000000; | | /* Only visible with transparent images. */ |
| color: #00FF00;
| | /* See #Framed_image_background_color */ |
| | div.thumb div a img { |
| | background-color:#ffffff; |
| } | | } |
|
| |
|
| /* Colori dei link utente/discussione/ecc. nei tab in cima alla pagina */ | | /* For positioning icons at top-right, used in Templates |
| | "Spoken Article" and "Featured Article" */ |
|
| |
|
| #p-cactions { background: #000000; }
| | div.topicon { |
| #p-cactions li {
| | position:absolute; |
| background: #000000;
| | z-index:100; |
| border-color: #008000;
| | top:10px; |
| | display: block !important; |
| } | | } |
| #p-cactions li.selected { background: #000000; }
| | |
| #p-cactions li.new { background: #000000; }
| | /* try adding here, this had no effect in [[MediaWiki:Common.css]] */ |
| #p-cactions li a {
| | .plainlinksneverexpand a.external.text:after { |
| background: #000000;
| | display: none !important |
| color : #7070FF;
| |
| } | | } |
| #p-cactions #ca-nstab-wp a { background: #000000; }
| |
| #p-cactions #ca-nstab-user a { background: #000000; }
| |
| #p-cactions #ca-nstab-main a { background: #000000; }
| |
| #p-cactions #ca-nstab-help a { background: #000000; }
| |
| #p-cactions #ca-edit a { background: #000000; }
| |
| #p-cactions #ca-talk a { background: #000000; }
| |
| #p-cactions #ca-watch a { background: #000000; }
| |
| #p-cactions #ca-unwatch a { background: #000000; }
| |
| #p-cactions #ca-move a { background: #000000; }
| |
| #p-cactions #ca-history a { background: #000000; }
| |
| #p-cactions #ca-article a { background: #000000; }
| |
| #p-cactions #ca-protect a { background: #000000; }
| |
| #p-cactions #ca-unprotect a { background: #000000; }
| |
| #p-cactions #ca-delete a { background: #000000; }
| |
|
| |
|
| | /* Standard Navigationsleisten, aka box hiding thingy from .de.*/ |
|
| |
|
| /* Questa roba mette i tab di editing pagina Wiki anche in fondo al box
| | div.Boxmerge, |
| (ma non funge con IE e serve anche un filettino monobook.js... vedere la
| | div.NavFrame { |
| mia pagina utente) */
| | margin: 0px; |
| #mytabs {
| | padding: 2px; |
| margin: -0.3em 0 0 11.5em;
| | border: 1px solid #aaaaaa; |
| border: 1px solid #008000;
| | text-align: center; |
| white-space:nowrap;
| | border-collapse: collapse; |
| line-height: 1.1em;
| | font-size: 95%; |
| overflow: visible;
| |
| border-collapse: collapse;
| |
| padding: 0 0 0 1em;
| |
| list-style: none;
| |
| font-size: 95%;
| |
| } | | } |
| #mytabs .hiddenStructure { display: none; }
| | div.Boxmerge div.NavFrame { |
| #mytabs li {
| | border-style: none; |
| display: inline;
| | border-style: hidden; |
| border: 1px solid #004000;
| |
| border-top: none;
| |
| padding: 0.1em 0 0 0;
| |
| margin: 0 0.3em 0 0;
| |
| overflow: visible;
| |
| background: #000000;
| |
| color: #7070FF;
| |
| } | | } |
| #mytabs li.selected {
| | div.NavFrame + div.NavFrame { |
| border-color: #00FF00;
| | border-top-style: none; |
| padding: 0.2em 0 0 0;
| | border-top-style: hidden; |
| } | | } |
| #mytabs li a {
| | div.NavPic { |
| background-color: #000000;
| | background-color: #ffffff; |
| color: #7070FF;
| | margin: 0px; |
| border: none;
| | padding: 2px; |
| padding: 0.3em 0.8em 0 0.8em;
| | float: left; |
| text-decoration: none;
| |
| text-transform: lowercase;
| |
| position: relative;
| |
| margin: 0;
| |
| } | | } |
| #mytabs li.selected a { z-index: 3; }
| | div.NavFrame div.NavHead { |
| #mytabs .new a { color:#FF4040; }
| | height: 1.6em; |
| #mytabs li a:hover {
| | font-weight: bold; |
| z-index: 3;
| | font-size: 100%; |
| text-decoration: none;
| | background-color: #efefef; |
| | position:relative; |
| } | | } |
| #mytabs h5 { display: none; }
| | div.NavFrame p { |
| #mytabs li.istalk { margin-right: 0; }
| | font-size: 100%; |
| #mytabs li.istalk a { padding-right: 0.5em; }
| |
| #mytabs-ca-addsection a {
| |
| padding-left: 0.4em;
| |
| padding-right: 0.4em;
| |
| } | | } |
| /* offset per separare i gruppi di tab */
| | div.NavFrame div.NavContent { |
| li#mytabs-ca-talk { margin-right: 1.6em; }
| | font-size: 100%; |
| li#mytabs-ca-watch { margin-left: 1.6em; }
| |
| | |
| /* Colore dei box delle spiegazioni, degli acronimi e delle abbreviazioni */
| |
| abbr, acronym, .explain {
| |
| border-bottom: 1px dotted #004000;
| |
| color: White;
| |
| background: #002000;
| |
| cursor: help;
| |
| } | | } |
| | | div.NavFrame div.NavContent p { |
| /* Colore dei frammenti di codice */
| | font-size: 100%; |
| code {
| |
| background-color: #00AA00;
| |
| color: Black;
| |
| } | | } |
| /* Colore del testo preformattato */
| | div.NavEnd { |
| pre {
| | margin: 0px; |
| padding: 1em;
| | padding: 0px; |
| border: 1px dashed #00AA00;
| | line-height: 1px; |
| color: White;
| | clear: both; |
| background-color: #002000;
| |
| line-height: 1.1em;
| |
| }
| |
| | |
| h1, h2, h3, h4, h5, h6 { color: #00FF00; }
| |
| #bodyContent h1 { color : #00FF00; }
| |
| #bodyContent h2 { color : #00FF00; }
| |
| #bodyContent h3 { color : #00FF00; }
| |
| #bodyContent h4 { color : #00FF00; }
| |
| #bodyContent h5 { color : #00FF00; }
| |
| #bodyContent h6 { color : #00FF00; }
| |
| h1 { border-bottom: 2px solid #008000; }
| |
| h2 { border-bottom: 1px solid #008000; }
| |
| | |
| | |
| /* Colore di sfondo e di testo delle tabelle */
| |
| table {
| |
| background: #000000;
| |
| color: #00FF00;
| |
| } | | } |
| /* Colore del sommario dell'articolo */
| | a.NavToggle { |
| #toc {
| | position:absolute; |
| background: #002000;
| | top:0px; |
| border: 1px solid #008000;
| | right:3px; |
| | font-weight:normal; |
| | font-size:smaller; |
| } | | } |
|
| |
|
| /*------------------------------------------------------*/
| | #coordinates { |
| /*
| | position:absolute; |
| I #p-cactions riguardano i tab delle azioni sulle varie pagine
| | z-index:1; |
| Wiki (modifica, cronologia, discussione ecc.): gli .ns-xx si riferiscono
| | border:none; |
| invece al namespace numero xx: ecco i numeri di alcuni namespace
| | background:none; |
| '0': 'articolo'
| | right:30px; |
| '2': 'utente'
| | top:3.7em; |
| '4': 'wikipedia'
| | float:right; |
| '6': 'immagine'
| | margin:0.0em; |
| '8': 'mediawiki'
| | padding:0.0em; |
| '10': 'Template'
| | line-height:1.5em; |
| '12': 'aiuto'
| | text-align:right; |
| '14': 'categoria' */
| | text-indent:0; |
| | | font-size:85%; |
| /* Colori di fondo degli articoli */
| | text-transform:none; |
| .ns-0 * #content { background : #000000; }
| | white-space:nowrap; |
| .ns-0 * #content { color : #00FF00; }
| |
| /* Colori di fondo delle pagine di discussione degli articoli */
| |
| .ns-1 * #content { background : #000000; }
| |
| .ns-1 * #content { color : #00FF00; }
| |
| /* Colori di fondo delle pagine Utente */
| |
| .ns-2 * #content { background : #000000; }
| |
| .ns-2 * #content { color : #00FF00; }
| |
| /* Colori di fondo delle pagine di discussione Utente */
| |
| .ns-3 * #content { background : #000000; }
| |
| .ns-3 * #content { color : #00FF00; }
| |
| /* Colori di fondo delle pagine Wikipedia */
| |
| .ns-4 * #content { background : #000000; } | |
| .ns-4 * #content { color : #00FF00; }
| |
| /* Colori di fondo delle pagine di discussione Wikipedia */
| |
| .ns-5 * #content { background : #000000; }
| |
| .ns-5 * #content { color : #00FF00; }
| |
| /* Colori di fondo delle pagine di discussione Immagine */
| |
| .ns-7 * #content { background : #000000; }
| |
| .ns-7 * #content { color : #00FF00; }
| |
| /* Colori di fondo delle pagine MediaWiki */
| |
| .ns-8 * #content { background : #000000; }
| |
| .ns-8 * #content { color : #00FF00; }
| |
| /* Colori di fondo delle pagine di discussione MediaWiki */
| |
| .ns-9 * #content { background : #000000; }
| |
| .ns-9 * #content { color : #00FF00; }
| |
| /* Colori di fondo delle pagine di template */
| |
| .ns-10 * #content { background : #000000; }
| |
| .ns-10 * #content { color : #00FF00; }
| |
| /* Colori di fondo delle pagine di discussione template */
| |
| .ns-11 * #content { background : #000000; }
| |
| .ns-11 * #content { color : #00FF00; }
| |
| /* Colori di fondo delle pagine Aide */
| |
| .ns-12 * #content { background : #000000; }
| |
| .ns-12 * #content { color : #00FF00; }
| |
| /* Colori di fondo delle pagine di discussione Aiuto */
| |
| .ns-13 * #content { background : #000000; }
| |
| .ns-13 * #content { color : #00FF00; }
| |
| /* Colori di fondo delle pagine di discussione Categorie */
| |
| .ns-15 * #content { background : #000000; }
| |
| .ns-15 * #content { color : #00FF00; }
| |
| | |
| /* La barra in fondo alla pagina */
| |
| #footer {
| |
| background-color: Black;
| |
| color: #00FF00;
| |
| border-top: 1px solid #FFFF00;
| |
| border-bottom: 1px solid #FFFF00;
| |
| margin: 0.6em 0em 1em 0em;
| |
| padding: 0.4em 0em 1.2em 0em;
| |
| text-align: center;
| |
| font-size: 90%;
| |
| }
| |
| /* box delle categorie */
| |
| #catlinks {
| |
| border:1px solid #800080;
| |
| background-color:#000000;
| |
| color: #00FFFF;
| |
| padding:5px;
| |
| margin-top: 1em;
| |
| clear: both;
| |
| }
| |
| /* le immagini: meglio tenerle su sfondo bianco... */
| |
| img {
| |
| border: 2px solid #008000;
| |
| background-color: White;
| |
| } | | } |
|
| |
|
| /* </pre> */ | | /*</nowiki></pre>*/ |