MediaWiki:Common.css: differenze tra le versioni

Da Pikipedia.
Jump to navigation Jump to search
Nessun oggetto della modifica
(Annullata la modifica 6135 di Zackee (discussione))
Etichetta: Annulla
 
(4 versioni intermedie di 2 utenti non mostrate)
Riga 61: Riga 61:
     text-align:left;
     text-align:left;
}
}
/* STILE DELLA PAGINA PRINCIPALE */


/* Niente titolo nella pagina principale */
/* Niente titolo nella pagina principale */
Riga 67: Riga 69:
}
}


/* STILE DELLA PAGINA PRINCIPALE */
/* Riquadro principale */
 
#home-contenitore {
#home-contenitore {
     display: flex;
     display: flex;
Riga 237: Riga 238:
}
}
}
}
/* Tasti Edittools */
#editpage-copywarn p {
    background: #dfdfdf;
    background: linear-gradient(to bottom,#dfdfe2 1%,#e6e6e9 20%);
    border-radius: 3px;
    border: 1px solid #bbc;
    padding: 3px 10px;
    color: #333;
    line-height: 21px;
}
#mw-edittools-charinsert {
background-color: #eaecf0;
    border: 1px solid #c8ccd1;
    padding: 3px 10px;
    color: #333;
    line-height: 21px;
}
.mw-edittools-head {
display: block;
    background: #d2d4de;
    color: #113;
    font-weight: bold;
    margin: 10px 0;
    padding: 1px 0 0 0;
    border-radius: 5px;
}
#editpage-copywarn #mw-edittools-charinsert {
text-align:center;
}
.editOptions {
    margin-bottom:0.5em;
    padding:1em;
}
.mw-edittools-section {
    margin: 0;
}
.mw-edittools-section a, #mw-edittools-charinsert .mw-collapsible-toggle {
    background: -moz-linear-gradient(top, rgb(246,246,246) 1%,rgb(222,222,222) 100%);
    background: -webkit-linear-gradient(top, rgb(246,246,246) 1%,rgb(222,222,222) 100%);
    background: linear-gradient(to bottom, rgb(246,246,246) 1%,rgb(222,222,222) 100%);
    border: #bbb 1px solid;
    border-radius: 4px;
    text-align: center;
    color: #333;
    box-sizing: border-box;
    padding: 0 5px;
    margin: 1px 0;
    line-height: 2em;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
    -webkit-transition: border-color 100ms;
    -moz-transition: border-color 100ms;
    transition: border-color 100ms;
}
.mw-edittools-section a:hover, #mw-edittools-charinsert .mw-collapsible-toggle:hover {
    text-decoration:none;
    border-color: #aaa;
}
#mw-edittools-charinsert .mw-collapsible-toggle {
float: none;
padding: 5px;
}
#mw-edittools-charinsert .mw-collapsible-toggle a {
color: #444;
}
#mw-edittools-charinsert .mw-collapsible-toggle-default:before, #mw-edittools-charinsert .mw-collapsible-toggle-default:after {
display: none;
}
/* Twitch */
#twitch-bordo {display:none; background:#f8f9fa; text-align:right; border-radius:2px; position:fixed; bottom:2px; right:2px; border:1px solid #c8ccd1; padding:2px; font-family:Arial; font-size:15px;}
#twitch-chiudi {position:absolute; border-radius:100%; cursor:pointer; top:-34px; right:0px; background:#f8f9fa; color:#333; border:1px solid #c8ccd1; padding:4px 8px; font-size:15px; opacity:0; pointer-events:none; animation:apparechiudi .6s linear 3s forwards; text-decoration:none;}
@keyframes apparechiudi {
0% {opacity:0;}
100% {opacity:1; pointer-events:auto;}
}
#twitch-chiudi:hover {color:#000; border-color:#888;}
#twitch-container {
    position: relative;
    display: block;
    cursor: pointer;
    overflow: hidden;
    text-shadow: 0 0 3px #000;
    padding-top: 2px;
}
#twitch-testo {
    position: absolute;
    padding-top: 50px;
    text-align: center;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000a0;
    opacity: 0;
    transition: opacity .2s linear;
    color: #fff;
    font-family: arial;
    font-weight: bold;
    font-size: 18px;
}
#twitch-container:hover #twitch-testo {opacity:1;}
#twitch-embed {display:flex; background:#000; width:208px; height:117px;}
.twitch-mostra {display:inline-block!important;}

Versione attuale delle 10:51, 16 ago 2024

/* Gli stili CSS inseriti qui si applicano a tutti i temi */

/* Link bianchi */
.whitelink a,
.whitelink a:hover,
.whitelink a:visited {
    color:#fff !important;
    text-decoration: underline;
}
.whitelink a:hover {
    opacity: .8;
}

/* Link neri */
.blacklink a,
.blacklink a:hover,
.blacklink a:visited {
    color:#000 !important;
    text-decoration: underline;
}
.blacklink a:hover {
    opacity: .8;
}

/* Stile degli infobox */
.infobox {
    float: right;
    margin-left: 12px;
}
.infobox td {
    padding: 4px;
}

.infobox-arrotondamenti {border-radius:10px}
.infobox-arrotondamenti td:first-child, .infobox-arrotondamenti th:first-child, .navtemplate td:first-child, .navtemplate th:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}
.infobox-arrotondamenti td:last-child, .infobox-arrotondamenti th:last-child, .navtemplate td:last-child, .navtemplate th:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

/* Galleria immagini allineata al centro */
.mw-content-ltr ul.gallery {
    text-align: center;
    margin: auto;
}

/* Template di Navigazione */ 
.navtemplate {
    margin-top: 2px;
}

span.mw-collapsible-toggle {
    padding: 0 0.3em 0 0;
}

/* CSS per la tabella lingue, la prima colonna ha il testo allineato a sinistra */
.linguetable td:first-child {
    text-align:left;
}

/* STILE DELLA PAGINA PRINCIPALE */

/* Niente titolo nella pagina principale */
.page-Pagina_principale #firstHeading, .page-Pagina_principale #catlinks {
    display: none;
}

/* Riquadro principale */
#home-contenitore {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: -12px;
    margin-bottom: -16px;
}

/* Scrollbar su Firefox */
.home-box * {
    scrollbar-width: thin;
    scrollbar-color: #a1a3a5 #ffffff;
}

/* Scrollbar su Chromium, Edge e Safari */
.home-box *::-webkit-scrollbar {
    width: 12px;
}
.home-box *::-webkit-scrollbar-track {
    background: #fff;
}
.home-box *::-webkit-scrollbar-thumb {
    background-color: #c5c5c5;
    border-radius: 10px;
    border: 3px solid #fff;
}
.home-box:hover *::-webkit-scrollbar-thumb {
    background-color: #a1a3a5;
}

/* RIQUADRI DELLA HOME */

/* CSS generale che si applica a tutti i riquadri */
.home-box {
    background: #fff;
    border: 2px solid #a7c197;
    border-radius: 12px;
    border-spacing: 0;
    box-shadow: 0 3px #00000010;
    box-sizing: border-box;
    position: relative;
    width: calc(50% - 8px);
    margin-bottom: 16px;
    display: inline-flex;
    flex-shrink: 0;
}
.home-box>tbody, .home-box>tbody>tr, .home-box>tbody>tr>th, .home-box>tbody>tr>td {
    width: 100%;
    display: block;
}
.home-box>tbody>tr:last-child {
    overflow: hidden;
    border-radius: 10px;
}
.home-box>tbody>tr>th {
    background: #cbe1be;
    padding: 7px 0;
    border-radius: 10px 10px 0 0;
}
.home-box>tbody>tr>td {
    padding: 6px 12px;
    box-sizing: border-box;
    max-height: 238px;
    overflow: auto;
}
.home-box>tbody>tr>td>ul {
    margin-left: 15px;
}
.home-box>tbody>tr>td>p {
    margin: 0;
}
.home-box:before {
    content: '';
    position: absolute;
    pointer-events: none;
}
.home-navigazione {
    display: inline-block;
    background: #f3f3f3;
    border: 2px solid #bfbfbf;
    border-radius: 8px;
    box-shadow: 0 3px #00000010;
    padding: 6px;
    margin: 4px 4px 6px;
    min-width: 100px;
    flex-grow: 1;
}
/* Colore dei link esterni nei riquadri di "Trovaci anche su..." */
.mw-parser-output .home-navigazione a.external, .mw-parser-output .home-navigazione a.external:visited {
    background: none;
    padding: 0;
    color: #58784c;
}
/* Spazio vuoto sotto i template della home */
#home-contenitore + p>br {
    display: none; 
}

/* Box home: Introduzione */
#home-benvenuto:before {background:url(https://pikminitalia.it/w/resources/assets/home-pikmin-rosso.png); width:48px; height:55px; top:-56px; left:calc(50% - 24px);} /* Pikmin rosso */
#home-benvenuto {width:100%; text-align:center; border-color:#cb8f8f;} /* Larghezza 100%, centrato, colore del bordo */
#home-benvenuto th {background:#ffd2d2; color:#994753;} /* Colore della barra superiore */
#home-benvenuto h2 {margin:0; padding-top:5px; font-size:1.6em; font-family:inherit; border:0;} /* Benvenuti su Pikipedia */
#home-benvenuto img {margin:5px 0;} /* Immagini nei riquadri grigi */

/* Box home: Pagina in vetrina */
#home-vetrina:before {background:url(https://pikminitalia.it/w/resources/assets/home-pikmin-blu.png); width:38px; height:61px; top:-24px; left:14px;} /* Pikmin blu */
#home-vetrina {border-color:#a1b1bf;} /* Colore del bordo */
#home-vetrina th {background:#d2e3f1; color:#4e6572;} /* Colore della barra superiore */

/* Box home: News */
#home-news:before {background:url(https://pikminitalia.it/w/resources/assets/home-pikmin-giallo.png); width:34px; height:62px; top:-25px; left:11px;} /* Pikmin giallo */
#home-news {border-color:#c0c197;} /* Colore del bordo */
#home-news th {background:#e0e1be; color:#686434;} /* Colore della barra superiore */

/* Box home: Curiosità */
#home-curiosita:before {background:url(https://pikminitalia.it/w/resources/assets/home-pikmin-bianco.png); width:26px; height:60px; top:-23px; left:14px;} /* Pikmin bianco */
#home-curiosita {border-color: #b1b1b1;} /* Colore del bordo */
#home-curiosita th {background:#e1e1e1; color:#5c5c5c;} /* Colore della barra superiore */

/* Box home: Tesoro della settimana */
#home-tesori:before {background:url(https://pikminitalia.it/w/resources/assets/home-pikmin-viola.png); width:30px; height:65px; top:-28px; left:9px;} /* Pikmin viola */
#home-tesori {border-color: #ad97c1;} /* Colore del bordo */
#home-tesori th {background: #d2bee1; color:#604a70;} /* Colore della barra superiore */
#home-iconatesoro {float:left; padding:10px 20px 10px 0;} /* Icona del tesoro */

/* Box home: Immagine in vetrina */
#home-immagine:before {background:url(https://pikminitalia.it/w/resources/assets/home-pikmin-roccioso.png); width:40px; height:62px; top:-26px; left:4px;} /* Pikmin roccioso */
#home-immagine {border-color:#a1a3a5;} /* Colore del bordo */
#home-immagine th {background:#cbcccd; color:#51545a;} /* Colore della barra superiore */
#home-immagine img {margin-bottom:7px;} /* Spazio vuoto sotto l'immagine in vetrina: parte 1 */
#home-immagine p {margin-bottom:2px;} /* Spazio vuoto sotto l'immagine in vetrina: parte 2 */

/* Box home: Trovaci anche su... */
#home-trovaci:before {background:url(https://pikminitalia.it/w/resources/assets/home-pikmin-alato.png); width:36px; height:58px; top:-22px; left:10px;} /* Pikmin alato */
#home-trovaci {border-color:#b7a9ae;} /* Colore del bordo */
#home-trovaci th {background:#ffd3f0; color:#7e5671;} /* Colore della barra superiore */
#home-trovaci .home-navigazione {display:inline-flex; justify-content:center; width:100%;} /* Voglio che il riquadro grigio occupi tutto lo spazio in orizzontale */ 
#home-trovaci .home-navigazione a {margin-right:6px;} /* Spazio tra l'icona e il link */

/* Box home: NiwiN */
#home-siti:before {background:url(https://pikminitalia.it/w/resources/assets/home-pikmin-gelato.png); width:36px; height:62px; top:-62px; left:calc(50% - 15px);} /* Pikmin gelato */
#home-siti {width:100%; border-color:#94bbbf;} /* Colore del bordo */
#home-siti th {background:#d3f7f6; color:#4e6273;} /* Colore della barra superiore */

/* RISOLUZIONI MINORI */

@media only screen and (max-width: 1720px) {
	#home-contenitore {
		margin-top: 32px;
	}
}
@media only screen and (max-width: 999px) {
	/* Tutti i riquadri occupano il massimo della larghezza */
	.home-box {
		width: 100%;
	}
	/* Riposiziono di conseguenza il Pikmin di #home-benvenuto */
	#home-benvenuto:before {
		top: -18px;
		left: 7px;
    }
	/* Riposiziono di conseguenza il Pikmin di #home-siti */
	#home-siti:before {
		top: -25px;
		left: 7px;
	}
}

/* Tasti Edittools */

#editpage-copywarn p {
    background: #dfdfdf;
    background: linear-gradient(to bottom,#dfdfe2 1%,#e6e6e9 20%);
    border-radius: 3px;
    border: 1px solid #bbc;
    padding: 3px 10px;
    color: #333;
    line-height: 21px;
}
#mw-edittools-charinsert {
	background-color: #eaecf0;
    border: 1px solid #c8ccd1;
    padding: 3px 10px;
    color: #333;
    line-height: 21px;
}
.mw-edittools-head {
	display: block;
    background: #d2d4de;
    color: #113;
    font-weight: bold;
    margin: 10px 0;
    padding: 1px 0 0 0;
    border-radius: 5px;
}
#editpage-copywarn #mw-edittools-charinsert {
	text-align:center;
}
.editOptions {
    margin-bottom:0.5em;
    padding:1em;
}
.mw-edittools-section {
    margin: 0;
}
.mw-edittools-section a, #mw-edittools-charinsert .mw-collapsible-toggle {
    background: -moz-linear-gradient(top, rgb(246,246,246) 1%,rgb(222,222,222) 100%);
    background: -webkit-linear-gradient(top, rgb(246,246,246) 1%,rgb(222,222,222) 100%);
    background: linear-gradient(to bottom, rgb(246,246,246) 1%,rgb(222,222,222) 100%);
    border: #bbb 1px solid;
    border-radius: 4px;
    text-align: center;
    color: #333;
    box-sizing: border-box;
    padding: 0 5px;
    margin: 1px 0;
    line-height: 2em;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
    -webkit-transition: border-color 100ms;
    -moz-transition: border-color 100ms;
    transition: border-color 100ms;
}
.mw-edittools-section a:hover, #mw-edittools-charinsert .mw-collapsible-toggle:hover {
    text-decoration:none;
    border-color: #aaa;
}
#mw-edittools-charinsert .mw-collapsible-toggle {
	float: none;
	padding: 5px;
}
#mw-edittools-charinsert .mw-collapsible-toggle a {
	color: #444;
}
#mw-edittools-charinsert .mw-collapsible-toggle-default:before, #mw-edittools-charinsert .mw-collapsible-toggle-default:after {
	display: none;
}

/* Twitch */
#twitch-bordo {display:none; background:#f8f9fa; text-align:right; border-radius:2px; position:fixed; bottom:2px; right:2px; border:1px solid #c8ccd1; padding:2px; font-family:Arial; font-size:15px;}
#twitch-chiudi {position:absolute; border-radius:100%; cursor:pointer; top:-34px; right:0px; background:#f8f9fa; color:#333; border:1px solid #c8ccd1; padding:4px 8px; font-size:15px; opacity:0; pointer-events:none; animation:apparechiudi .6s linear 3s forwards; text-decoration:none;}
@keyframes apparechiudi {
	0% {opacity:0;}
	100% {opacity:1; pointer-events:auto;}
}
#twitch-chiudi:hover {color:#000; border-color:#888;}
#twitch-container {
    position: relative;
    display: block;
    cursor: pointer;
    overflow: hidden;
    text-shadow: 0 0 3px #000;
    padding-top: 2px;
}
#twitch-testo {
    position: absolute;
    padding-top: 50px;
    text-align: center;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000a0;
    opacity: 0;
    transition: opacity .2s linear;
    color: #fff;
    font-family: arial;
    font-weight: bold;
    font-size: 18px;
}
#twitch-container:hover #twitch-testo {opacity:1;}
#twitch-embed {display:flex; background:#000; width:208px; height:117px;}
.twitch-mostra {display:inline-block!important;}