MediaWiki:Common.css: differenze tra le versioni
Vai alla navigazione
Vai alla ricerca
(Nuova icona Wikipedia) |
m ("extiw" specifico per Wikipedia) |
||
Riga 143: | Riga 143: | ||
/* Icona per collegamenti esterni anche sugli Interwiki links */ | /* Icona per collegamenti esterni anche sugli Interwiki links */ | ||
.extiw { | .extiw[href*="wikipedia"] { | ||
background-position: center right; | background-position: center right; | ||
background-repeat: no-repeat; | background-repeat: no-repeat; |
Versione delle 15:53, 23 mar 2021
/* Gli stili CSS inseriti qui si applicano a tutti i temi */
/* <syntaxhighlight lang=css> */
@import url('https://fonts.googleapis.com/css?family=Fjalla+One|Open+Sans');
/* Font */
body {
font-family: "Open Sans", sans-serif
}
h1, h2, h3, h4, h5, h6 {
font-family: "Fjalla One"
}
.mw-body-content h1, .mw-body-content h2, .mw-body h1 {
font-family: "Fjalla One"
}
.mw-body h1, .mw-body-content h1 {
font-size: 2.5em;
font-weight: bold;
}
.mw-body-content h2 {
font-size: 2em;
font-weight: bold;
}
.mw-body-content h3 {
font-weight: normal;
}
.mw-body-content h3 {
font-size: 1.6em;
}
.mw-body-content h4 {
font-size: 1.5em;
font-weight: normal;
font-style: italic;
}
.mw-body-content h5 {
font-size: 1em;
}
.mw-body-content h6 {
font-size: 0.8em;
}
/* Pagina principale */
.trecolonnecontenitore {
display: flex;
flex-flow: row wrap;
justify-content: space-between;
margin: 1em 0;
}
.trecolonnefuori {
box-sizing: border-box;
float: left;
width: 32%;
padding: 0;
border: 1px solid #ffd700;
}
.trecolonnedentro {
padding: 8px;
}
.trecolonnedentro h2 {
margin-bottom: 0;
background: linear-gradient(white, grey);
}
/* Article message box styles */
/* copiato da https://en.wikipedia.org/wiki/MediaWiki:Common.css */
table.ambox {
margin: 0 10%; /* 10% = Will not overlap with other elements */
border: 1px solid #a2a9b1;
/* @noflip */
border-left: 10px solid #36c; /* Default "notice" blue */
background: #fbfbfb;
box-sizing: border-box;
}
table.ambox + table.ambox { /* Single border between stacked boxes. */
margin-top: -1px;
}
.ambox th.mbox-text,
.ambox td.mbox-text { /* The message body cell(s) */
padding: 0.25em 0.5em; /* 0.5em left/right */
}
.ambox td.mbox-image { /* The left image cell */
/* @noflip */
padding: 2px 0 2px 0.5em; /* 0.5em left, 0px right */
}
.ambox td.mbox-imageright { /* The right image cell */
/* @noflip */
padding: 2px 0.5em 2px 0; /* 0px left, 0.5em right */
}
table.ambox-notice {
/* @noflip */
border-left: 10px solid #36c; /* Blue */
}
table.ambox-speedy {
/* @noflip */
border-left: 10px solid #b32424; /* Red */
background: #fee7e6; /* Pink */
}
table.ambox-delete {
/* @noflip */
border-left: 10px solid #b32424; /* Red */
}
table.ambox-content {
/* @noflip */
border-left: 10px solid #f28500; /* Orange */
}
table.ambox-style {
/* @noflip */
border-left: 10px solid #fc3; /* Yellow */
}
table.ambox-move {
/* @noflip */
border-left: 10px solid #9932cc; /* Purple */
}
table.ambox-protection {
/* @noflip */
border-left: 10px solid #a2a9b1; /* Gray-gold */
}
/* Icona per collegamenti esterni anche sugli Interwiki links
.extiw {
background-position: center right;
background-repeat: no-repeat;
background-image: url(https://upload.wikimedia.org/wikipedia/commons/c/c1/Mediawiki_logo_sunflower.svg);
background-image: -o-linear-gradient(transparent,transparent),url(https://upload.wikimedia.org/wikipedia/commons/c/c1/Mediawiki_logo_sunflower.svg);
background-size: 12px;
padding-right: 13px;
}*/
/* Icona per collegamenti esterni anche sugli Interwiki links */
.extiw[href*="wikipedia"] {
background-position: center right;
background-repeat: no-repeat;
/*background-image: url("https://upload.wikimedia.org/wikipedia/commons/4/46/Mediawiki_logo_icon_proposal_(3_colors)_v2.svg");
background-image: -o-linear-gradient(transparent,transparent),url("https://upload.wikimedia.org/wikipedia/commons/4/46/Mediawiki_logo_icon_proposal_(3_colors)_v2.svg");*/
background-image: url("https://upload.wikimedia.org/wikipedia/commons/c/c6/MediaWiki-2020-small-icon.svg");
background-image: -o-linear-gradient(transparent,transparent),url("https://upload.wikimedia.org/wikipedia/commons/c/c6/MediaWiki-2020-small-icon.svg");
background-size: 12px;
padding-right: 13px;
}
.extiw[href*="data.wikitrek"] {
background-position: center right;
background-repeat: no-repeat;
background-image: url(https://data.wikitrek.org/dt/resources/assets/favicon.ico);
background-image: -o-linear-gradient(transparent,transparent),url(https://data.wikitrek.org/dt/resources/assets/favicon.ico);
background-size: 12px;
padding-right: 15px;
}
.extiw[href*="wikidata"] {
background-position: center right;
background-repeat: no-repeat;
background-image: url(https://www.wikidata.org/static/favicon/wikidata.ico);
background-image: -o-linear-gradient(transparent,transparent),url(https://www.wikidata.org/static/favicon/wikidata.ico);
background-size: 12px;
padding-right: 15px;
}
.extiw[href*="memory-alpha"] {
background-position: center right;
background-repeat: no-repeat;
background-image: url(https://vignette.wikia.nocookie.net/memoryalpha/images/6/64/Favicon.ico/revision/latest?cb=20080612103849&path-prefix=en);
background-image: -o-linear-gradient(transparent,transparent),url(https://vignette.wikia.nocookie.net/memoryalpha/images/6/64/Favicon.ico/revision/latest?cb=20080612103849&path-prefix=en);
background-size: 12px;
padding-right: 13px;
}
.extiw[href*="gitpull"] {
background-position: center right;
background-repeat: no-repeat;
background-image: url(https://gitpull.it/file/data/exem75lelovvftlyzj5t/PHID-FILE-b6htnq3hjgmixwcad3gy/favicon);
background-image: -o-linear-gradient(transparent,transparent),url(https://gitpull.it/file/data/exem75lelovvftlyzj5t/PHID-FILE-b6htnq3hjgmixwcad3gy/favicon);
background-size: 12px;
padding-right: 13px;
}
.external[href*="github"] {
background-position: center right;
background-repeat: no-repeat;
background-image: url(https://github.githubassets.com/favicon.ico);
background-image: -o-linear-gradient(transparent,transparent),url(https://github.githubassets.com/favicon.ico);
background-size: 12px;
padding-right: 15px;
}
/* CSS per InfoBox, vedere anche https://codepen.io/lucamauri/pen/dKxEVq */
.contenitorebox {
float:right;
color:#000;
width:25%;
}
.infobox {
width: 100%;
}
.infobox th {
text-align: right;
vertical-align: top;
width:50%;
}
.infobox td {
text-align: left;
vertical-align: top;
}
.infobox table {
width:100%;
}
#titolobox img {
left: 10px;
position: absolute;
z-index: 2;
}
#titolobox {
/*padding: 5px;*/
background-color: #996633;
text-align: center;
color: white;
font-size: 18px;
position: relative;
z-index: 1;
padding:0.5em;
font-family: "Fjalla One"
}
.titolobox {
/*padding: 5px;*/
background-color: #996633;
text-align: center;
color: white;
font-size: 18px;
position: relative;
z-index: 1;
padding:0.5em;
font-family: "Fjalla One"
}
#contenutobox {
padding: 0.5em;
}
/* Campi INIZIO */
/*
.infobox ul {
list-style-type: none;
margin: 0;
padding: 0;
display: inline;
}
.infobox li{
display: inline;
}
.infobox li + li:before {
content: " · ";
font-weight: bold;
}
*/
.infobox ul {
list-style-type: square;
list-style-image: none;
margin-top: 0px;
}
/* Campi FINE */
.contenitoreimgbox {
clear:both;
width:100%;
}
.contenitoreimgbox img {
width: 100%;
height: 100%;
max-height: 350px;
}
/* Elementi grafici azzurri modificati */
.mw-body {
/*border: 1px solid #cfaa82;*/
border: 1px solid #cfaa82;;
border-right: none;
}
.smw-factbox-view.skin-vector #mw-data-after-content .smw-factbox {
border-left: 1px solid #cfaa82;
border-bottom: 1px solid #cfaa82;
}
.vectorTabs ul li {
background-image: none;
/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ffffff+0,fff5dc+100&0+0,1+100 */
background: -moz-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,245,220,1) 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(255,245,220,1) 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, rgba(255,255,255,0) 0%,rgba(255,245,220,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#fff5dc',GradientType=0 ); /* IE6-9 */
}
/*
div.vectorTabs {
background-image: none;
border-left-width: 1px;
border-left-style: solid;
-webkit-border-image:
-webkit-gradient(linear, 0 100%, 0 0, from(#cfaa82), to(rgba(0, 0, 0, 0))) 1 100%;
-webkit-border-image:
-webkit-linear-gradient(bottom, #cfaa82, rgba(0, 0, 0, 0)) 1 100%;
-moz-border-image:
-moz-linear-gradient(bottom, #cfaa82, rgba(0, 0, 0, 0)) 1 100%;
-o-border-image:
-o-linear-gradient(bottom, #cfaa82, rgba(0, 0, 0, 0)) 1 100%;
border-image:
linear-gradient(to top, #cfaa82, rgba(0, 0, 0, 0)) 1 100%;
border-bottom: none;
padding-left: 0px;
}
div.vectorTabs span {
background-image: none;
border-right-width: 1px;
border-right-style: solid;
-webkit-border-image:
-webkit-gradient(linear, 0 100%, 0 0, from(#cfaa82), to(rgba(0, 0, 0, 0))) 1 100%;
-webkit-border-image:
-webkit-linear-gradient(bottom, #cfaa82, rgba(0, 0, 0, 0)) 1 100%;
-moz-border-image:
-moz-linear-gradient(bottom, #cfaa82, rgba(0, 0, 0, 0)) 1 100%;
-o-border-image:
-o-linear-gradient(bottom, #cfaa82, rgba(0, 0, 0, 0)) 1 100%;
border-image:
linear-gradient(to top, #cfaa82, rgba(0, 0, 0, 0)) 1 100%;
border-bottom: none;
}
#mw-head h3 {
background-image: none;
border-right-width: 1px;
border-right-style: solid;
-webkit-border-image:
-webkit-gradient(linear, 0 100%, 0 0, from(#cfaa82), to(rgba(0, 0, 0, 0))) 1 100%;
-webkit-border-image:
-webkit-linear-gradient(bottom, #cfaa82, rgba(0, 0, 0, 0)) 1 100%;
-moz-border-image:
-moz-linear-gradient(bottom, #cfaa82, rgba(0, 0, 0, 0)) 1 100%;
-o-border-image:
-o-linear-gradient(bottom, #cfaa82, rgba(0, 0, 0, 0)) 1 100%;
border-image:
linear-gradient(to top, #cfaa82, rgba(0, 0, 0, 0)) 1 100%;
border-bottom: none;
font-family: "Open Sans", sans-serif;
}
*/
.vector-menu-tabs, .vector-menu-tabs a, #mw-head .vector-menu-dropdown h3 {
background-image: url(/wt/skins/Vector/resources/skins.vector.styles/images/tab-separator.png?09d4b);
background-image: linear-gradient(to bottom,#fff5dc 0,#cfaa82 100%);
background-repeat: no-repeat;
background-size: 1px 100%;
font-family: "Open Sans", sans-serif;
}
.vector-menu-tabs li {
background-image: linear-gradient(to top,#cfaa82 0,#fff5dc 1px,#ffffff 100%);
}
blockquote{
border-left: 10px solid #cfaa82;
margin: 1.5em 10px;
padding: 0.5em 10px;
quotes: "\201C""\201D""\2018""\2019";
}
blockquote:before{
color: #cfaa82;
content: "”";
font-size: 4em;
line-height: 0.1em;
margin-right: 0.2em;
vertical-align: -0.4em;
}
blockquote:after {
content: "";
display: table;
clear: left;
}
blockquote p {
display: inline;
}
.doppiacitazione footer {
float: right;
}
.doppiacitazione {
/*width: 65%; margin: 0 auto 0 auto;*/
width: 65%;
float: left;
}
.doppiacitazione:after {
content: "";
display: table;
clear: left;
}
.separatorebox {
clear:both;
width:100%;
text-align:center;
background-color: #fff5dc;
}
/* Elenchi puntati personalizzati */
.tttstoriabullet {list-style-image: url(https://wikitrek.org/images/8/87/%21immagini%21tttstoria.gif);}
.tttentbullet {list-style-image: url(https://wikitrek.org/images/e/e5/%21immagini%21tttent.gif);}
.ttttosbullet {list-style-image: url(https://wikitrek.org/images/1/10/%21immagini%21ttttos.gif);}
.ttttasbullet {list-style-image: url(https://wikitrek.org/images/e/e5/%21immagini%21ttttas.gif);}
.ttttngbullet {list-style-image: url(https://wikitrek.org/images/7/74/%21immagini%21ttttng.gif);}
.tttdsnbullet {list-style-image: url(https://wikitrek.org/images/1/19/%21immagini%21tttdsn.gif);}
.tttvoybullet {list-style-image: url(https://wikitrek.org/images/a/a4/%21immagini%21tttvoy.gif);}
.tttfilmbullet {list-style-image: url(https://wikitrek.org/images/5/57/%21immagini%21tttfilm.gif);}
.tttlibribullet {list-style-image: url(https://wikitrek.org/images/9/9a/%21immagini%21tttlibri.gif);}
.tttpicbullet {list-style-image: url(https://wikitrek.org/images/8/8e/Tttpic.png);}
/*Sidebar menu*/
#n-Progetto-WikiTrek-su-GitPull {
background-image: url(https://upload.wikimedia.org/wikipedia/commons/d/dd/Phacility_phabricator_logo.png);
background-size: 16px;
background-position: top left;
background-repeat: no-repeat;
}
#n-Progetto-WikiTrek-su-GitPull a {
padding-left: 20px;
}
#n-DataTrek {
background-image: url(https://data.wikitrek.org/dt/resources/assets/DataTrekLogo.svg);
background-size: 16px;
background-position: top left;
background-repeat: no-repeat;
}
#n-DataTrek a {
padding-left: 20px;
}
/* Simple MessageBox START */
.simplemessagebox {
width: 70%;
border-style: solid;
border-color: lightgray;
border-width: 1px;
border-left-width: 10px;
margin: 0 auto 0 auto;
height: 100%;
padding: 10px;
min-height: 50px;
background-color: #f9f9f9;
}
.simplemessagebox img {
float: left;
width: 50px;
margin: auto;
position: absolute;
vertical-align:middle;
}
.smbtext {
margin-left: 65px;
}
.smbtext p{
margin: 0;
margin-bottom: 5px;
}
/* Simple MessageBox END */
/* HyperTrke Data START */
#htdata {
min-height: 30px;
/*Taken from MW CatLinks class */
border: 1px solid #a2a9b1;
background-color: #f8f9fa;
padding: 5px;
margin-top: 1em;
clear: both;
}
#htdata ul {
/*Taken from MW CatLinks class */
display: inline;
margin: 0;
padding: 0;
list-style: none none;
}
#htdata li:first-child {
padding-left: 0.25em;
border-left: 0;
}
#htdata li {
display: inline-block;
line-height: 1.25em;
border-left: 1px solid #a2a9b1;
margin: 0.125em 0;
padding: 0 0.5em;
padding-left: 0.5em;
}
.htcontainer{
/*display: flex;*/
align-items: center;
white-space: pre-wrap; /*See https://stackoverflow.com/questions/39325039/css-flex-box-last-space-removed*/
}
/* HyperTrek Data END */
/* </syntaxhighlight> */