MediaWiki:Common.css: differenze tra le versioni
Da GOLEM Wiki.
Aggiunti tag tema responsive home (Desktop) |
Aggiornamento secondo https://git.golem.linux.it/golem/morgan/issues/26 |
||
| (Una versione intermedia di un altro utente non mostrate) | |||
| Riga 4: | Riga 4: | ||
@media only screen and (min-width: 600px) { | @media only screen and (min-width: 600px) { | ||
.golem-main-header { | .golem-main-header { | ||
text-align: center; | |||
background-color: #A6F9C7; | background-color: #A6F9C7; | ||
border: 2px solid #00BA4A; | border: 2px solid #00BA4A; | ||
| Riga 40: | Riga 41: | ||
.golem-tb-column { | .golem-tb-column { | ||
display: table-cell; | display: table-cell; | ||
} | |||
/* Template::Sviluppo -- versione desktop */ | |||
.golem-mw-template-sviluppo { | |||
float: right; | |||
width: 240px; | |||
color: white; | |||
padding: 5px; | |||
margin-left: 15px; | |||
border-radius: 15px; | |||
font-weight: bold; | |||
} | } | ||
} | } | ||
| Riga 49: | Riga 61: | ||
width: 100% !important; | width: 100% !important; | ||
} | } | ||
/* Template::Sviluppo -- versione mobile */ | |||
.golem-mw-template-sviluppo { | |||
width: 240px; | |||
color: white; | |||
padding: 5px; | |||
border-radius: 15px; | |||
font-weight: bold; | |||
margin: 0 auto; | |||
clear: both; | |||
} | |||
} | |||
/* | |||
============================================= | |||
Tutti gli schermi, sia desktop che mobile | |||
============================================= | |||
*/ | |||
/* Stile per Template::Note -- both desktop and mobile */ | |||
.golem-template-note { | |||
padding: 4px; | |||
} | |||
.golem-template-note-info { | |||
background-color: #D6FEFF; | |||
border: 1px solid #72E4FF; | |||
} | |||
.golem-template-note-example { | |||
background-color: #E2FFE3; | |||
border: 1px solid #00CB07; | |||
} | |||
.golem-template-note-reminder { | |||
background-color: #FFFCC0; | |||
border: 1px solid #D4D400; | |||
} | |||
.golem-template-note-warning { | |||
background-color: #FFFCC0; | |||
border: 1px solid #D4D400; | |||
} | |||
.golem-template-note-attention { | |||
background-color: #FFD0CA; | |||
border: 1px solid #AD1400; | |||
} | } | ||
Versione attuale delle 20:45, 22 ott 2026
/* Gli stili CSS inseriti qui si applicano a tutti i temi (Desktop) */
/* Schermi con larghezza di almeno 600px */
@media only screen and (min-width: 600px) {
.golem-main-header {
text-align: center;
background-color: #A6F9C7;
border: 2px solid #00BA4A;
border-radius: 10px;
margin: 5px;
padding: 5px;
}
/* Colonna di sinistra in home page */
.golem-main-left {
width: 62%;
border: 1px solid #002BB8;
padding: 10px;
vertical-align: top;
border-radius: 10px;
background-color: #E6EBFF;
}
/* Colonna di destra in home page */
.golem-main-right {
width: 30%;
border: 1px solid #BA0000;
padding: 10px;
vertical-align: top;
border-radius: 10px;
background-color: #FFE6E6;
}
/* Generiche classi per div affiancati responsive */
.golem-tb-container {
display: table;
width: 100%;
border-spacing: 5px;
}
.golem-tb-column {
display: table-cell;
}
/* Template::Sviluppo -- versione desktop */
.golem-mw-template-sviluppo {
float: right;
width: 240px;
color: white;
padding: 5px;
margin-left: 15px;
border-radius: 15px;
font-weight: bold;
}
}
/* Schermi con larghezza inferiore a 600px */
@media only screen and (max-width: 600px) {
/* Forza le colonne a larghezza massima */
.golem-tb-column {
width: 100% !important;
}
/* Template::Sviluppo -- versione mobile */
.golem-mw-template-sviluppo {
width: 240px;
color: white;
padding: 5px;
border-radius: 15px;
font-weight: bold;
margin: 0 auto;
clear: both;
}
}
/*
=============================================
Tutti gli schermi, sia desktop che mobile
=============================================
*/
/* Stile per Template::Note -- both desktop and mobile */
.golem-template-note {
padding: 4px;
}
.golem-template-note-info {
background-color: #D6FEFF;
border: 1px solid #72E4FF;
}
.golem-template-note-example {
background-color: #E2FFE3;
border: 1px solid #00CB07;
}
.golem-template-note-reminder {
background-color: #FFFCC0;
border: 1px solid #D4D400;
}
.golem-template-note-warning {
background-color: #FFFCC0;
border: 1px solid #D4D400;
}
.golem-template-note-attention {
background-color: #FFD0CA;
border: 1px solid #AD1400;
}