Vai al contenuto

MediaWiki:Common.css: differenze tra le versioni

Da LoroPedia.
Creata pagina con "→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: wra..."
 
Nessun oggetto della modifica
 
Riga 1: Riga 1:
/* LoroPedia: stile della Pagina principale */
/* LoroPedia: stile della Pagina principale */
body.page-Pagina_principale .mw-first-heading { display: none; }
body.page-Pagina_principale .mw-first-heading { display: none; }
 
.lp-hero {
.lp-hero {
text-align: center;
text-align: center;
Riga 13: Riga 13:
.lp-hero-title { font-family: Georgia, serif; font-size: 2em; }
.lp-hero-title { font-family: Georgia, serif; font-size: 2em; }
.lp-hero-sub { font-style: italic; margin-top: .3em; }
.lp-hero-sub { font-style: italic; margin-top: .3em; }
 
.lp-grid { display: flex; flex-wrap: wrap; gap: 1em; }
.lp-grid { display: flex; flex-wrap: wrap; gap: 1em; }
.lp-grid .lp-intro { flex: 2 1 380px; }
.lp-grid .lp-intro { flex: 2 1 380px; }
.lp-grid .lp-random { flex: 1 1 240px; }
.lp-grid .lp-random { flex: 1 1 240px; }
 
.lp-box {
.lp-box {
border: 1px solid #c8ccd1;
border: 1px solid #c8ccd1;
Riga 26: Riga 26:
}
}
.lp-box h2 { border-bottom: 1px solid #c8ccd1; margin-top: .6em; }
.lp-box h2 { border-bottom: 1px solid #c8ccd1; margin-top: .6em; }
 
.lp-btn {
.lp-btn {
margin-top: .5em;
margin-top: .5em;
Riga 37: Riga 37:
}
}
.lp-random-more { margin-top: .5em; font-size: 90%; }
.lp-random-more { margin-top: .5em; font-size: 90%; }
 
@media screen {
@media screen {
html.skin-theme-clientpref-night .lp-hero,
html.skin-theme-clientpref-night .lp-hero,
html.skin-theme-clientpref-night .lp-btn { background: #2b2b33; color: #eaecf0; }
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; } }

Versione attuale delle 11:24, 4 dic 2026

/* 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; } }