MediaWiki:Common.css
Aspetto
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)
- Edge: tieni premuto il tasto Ctrl e fai clic su Aggiorna, oppure premi Ctrl-F5.
/* LoroPedia: stile della Pagina principale */
body.page-Pagina_principale .mw-first-heading { display: none; }
.lp-hero {
text-align: center;
padding: 1.5em 1em;
margin-bottom: 1em;
border: 1px solid #c8ccd1;
border-radius: 8px;
background: linear-gradient( 135deg, #fdf6e3, #f3e6c8 );
color: #3b2a1e;
}
.lp-hero-title { font-family: Georgia, serif; font-size: 2em; }
.lp-hero-sub { font-style: italic; margin-top: .3em; }
.lp-grid { display: flex; flex-wrap: wrap; gap: 1em; }
.lp-grid .lp-intro { flex: 2 1 380px; }
.lp-grid .lp-random { flex: 1 1 240px; }
.lp-box {
border: 1px solid #c8ccd1;
border-radius: 8px;
padding: 0 1em 1em;
margin-bottom: 1em;
background: var( --background-color-base, #fff );
}
.lp-box h2 { border-bottom: 1px solid #c8ccd1; margin-top: .6em; }
.lp-btn {
margin-top: .5em;
padding: .3em .8em;
border: 1px solid #a2a9b1;
border-radius: 4px;
background: #f8f9fa;
color: #202122;
cursor: pointer;
}
.lp-random-more { margin-top: .5em; font-size: 90%; }
@media screen {
html.skin-theme-clientpref-night .lp-hero,
html.skin-theme-clientpref-night .lp-btn { background: #2b2b33; color: #eaecf0; }
}
/* Carosello immagini */
.lp-carousel {
position: relative;
height: 340px;
margin-bottom: 1em;
border-radius: 8px;
overflow: hidden;
background: #1b1b22;
}
.lp-slide {
position: absolute;
inset: 0;
opacity: 0;
transition: opacity .8s ease;
pointer-events: none;
}
.lp-slide.lp-active { opacity: 1; pointer-events: auto; }
.lp-slide img {
width: 100%;
height: 100%;
object-fit: contain;
}
.lp-caption {
position: absolute;
left: 0; right: 0; bottom: 0;
padding: .6em 1em 1.8em;
background: linear-gradient( transparent, rgba( 0, 0, 0, .75 ) );
color: #fff;
font-family: Georgia, serif;
font-size: 1.2em;
}
.lp-arrow {
position: absolute;
top: 50%;
transform: translateY( -50% );
width: 2em; height: 2em;
border: 0;
border-radius: 50%;
background: rgba( 0, 0, 0, .45 );
color: #fff;
font-size: 1.4em;
line-height: 1;
cursor: pointer;
}
.lp-prev { left: .5em; }
.lp-next { right: .5em; }
.lp-dots {
position: absolute;
bottom: .5em;
left: 0; right: 0;
text-align: center;
}
.lp-dots button {
width: 10px; height: 10px;
margin: 0 3px;
padding: 0;
border: 0;
border-radius: 50%;
background: rgba( 255, 255, 255, .5 );
cursor: pointer;
}
.lp-dots button.lp-active { background: #fff; }
@media ( max-width: 600px ) { .lp-carousel { height: 220px; } }