MediaWiki:Common.css: Perbedaan antara revisi
Dari WikiPangan
Tidak ada ringkasan suntingan |
Tidak ada ringkasan suntingan |
||
| Baris 84: | Baris 84: | ||
.wp-hero-festival { | .wp-hero-festival { | ||
background-image: url('/wiki/Special:FilePath/Thumbnail-Festival-Pangan | background-image: url('/wiki/Special:FilePath/Thumbnail-Festival-Pangan.jpg'); | ||
} | } | ||
Revisi terkini sejak 14 Agustus 2026 14.15
/* =========================================================
CSS GLOBAL & HALAMAN LAINNYA
========================================================= */
.etika-wrapper {
background-color: #fcfcfc;
padding: 2em 2em;
border-left: 4px solid #af3434;
font-family: 'Segoe UI', sans-serif;
line-height: 1.6;
}
.etika-wrapper h2 {
color: #8b2929;
border-bottom: 2px solid #f1d4d4;
padding-bottom: 0.2em;
margin-top: 1.5em;
font-size: 1.5em;
}
.etika-wrapper h3 {
color: #444;
font-size: 1.2em;
margin-top: 1em;
border-left: 3px solid #ccc;
padding-left: 0.5em;
}
.etika-list {
counter-reset: etika-counter;
margin-left: 1.5em;
list-style: none;
}
.etika-list li {
margin-bottom: 0.5em;
position: relative;
padding-left: 2em;
}
.etika-list li::before {
counter-increment: etika-counter;
content: counter(etika-counter) ".";
position: absolute;
left: 0;
font-weight: bold;
color: #8b2929;
}
/* =========================================================
KOMPONEN HALAMAN DEPAN (WP COMPONENTS)
========================================================= */
.wp-page {
/* Variabel Warna Tema WikiPangan (Branding: #af3434) */
--wp-primary: #af3434;
--wp-primary-dark: #8b2929;
--wp-accent: #d9534f;
--wp-card: #ffffff;
--wp-border: #e0e6ed;
--wp-text-main: #334155;
--wp-text-muted: #64748b;
--wp-radius: 12px;
--wp-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
--wp-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
color: var(--wp-text-main);
}
/* HERO SECTION */
.wp-hero {
position: relative;
border-radius: var(--wp-radius);
overflow: hidden;
min-height: 380px;
display: flex;
align-items: flex-end;
box-shadow: var(--wp-shadow);
margin-bottom: 24px;
background-color: var(--wp-primary-dark);
background-size: cover;
background-position: center;
}
.wp-hero-festival {
background-image: url('/wiki/Special:FilePath/Thumbnail-Festival-Pangan.jpg');
}
.wp-hero-overlay {
position: absolute;
inset: 0;
/* Gradient disesuaikan dengan tone merah */
background: linear-gradient(180deg, rgba(175, 52, 52, 0.1) 0%, rgba(80, 20, 20, 0.9) 100%);
z-index: 1;
}
.wp-hero-content {
position: relative;
z-index: 2;
padding: 32px;
color: #fff;
max-width: 700px;
}
.wp-hero-content h2 {
margin: 0 0 12px;
font-size: 28px;
font-weight: 800;
color: #fff;
border: 0;
padding: 0;
line-height: 1.2;
}
.wp-hero-content p {
margin: 0;
font-size: 15px;
color: #fdf5f5;
line-height: 1.6;
}
/* INTRO TEXT */
.wp-intro p {
margin: 0 0 32px 0;
color: var(--wp-text-main);
line-height: 1.7;
font-size: 15px;
background: #fdf5f5;
padding: 20px;
border-left: 4px solid var(--wp-primary);
border-radius: 0 8px 8px 0;
}
/* STATISTIK */
.wp-stats {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
margin-bottom: 40px;
}
.wp-stat {
background: var(--wp-card);
border: 1px solid var(--wp-border);
border-radius: var(--wp-radius);
padding: 20px 12px;
text-align: center;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wp-stat:hover {
transform: translateY(-4px);
box-shadow: var(--wp-shadow-hover);
border-color: var(--wp-primary);
}
.wp-stat .wp-icon {
font-size: 24px;
margin-bottom: 8px;
}
.wp-stat .wp-num {
font-size: 28px;
font-weight: 800;
color: var(--wp-accent);
line-height: 1;
}
.wp-stat .wp-label {
font-size: 13px;
color: var(--wp-text-muted);
margin-top: 6px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* SECTION HEADERS */
.wp-section {
margin-bottom: 40px;
}
.wp-section-head {
display: flex;
align-items: baseline;
justify-content: space-between;
border-bottom: 2px solid #fdf5f5;
padding-bottom: 10px;
margin-bottom: 20px;
}
.wp-section-head h2 {
font-size: 22px;
font-weight: 700;
color: var(--wp-primary-dark);
margin: 0;
border: 0;
padding: 0;
}
/* COMPACT CARDS (GRID) */
.wp-grid-compact {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 20px;
}
.wp-card-compact {
display: flex;
flex-direction: column;
background: var(--wp-card);
border: 1px solid var(--wp-border);
border-radius: var(--wp-radius);
overflow: hidden;
box-shadow: var(--wp-shadow);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wp-card-compact:hover {
transform: translateY(-5px);
box-shadow: var(--wp-shadow-hover);
border-color: #f1d4d4;
}
.wp-card-compact-img {
position: relative;
width: 100%;
aspect-ratio: 4 / 3;
background: #f1f5f9;
overflow: hidden;
}
.wp-card-compact-img a,
.wp-card-compact-img img {
display: block;
width: 100% !important;
height: 100% !important;
object-fit: cover;
transition: transform 0.3s ease;
}
.wp-card-compact:hover .wp-card-compact-img img {
transform: scale(1.05);
}
.wp-card-compact-noimg {
display: flex;
align-items: center;
justify-content: center;
background: #e2e8f0;
}
.wp-icon-placeholder {
font-size: 3em;
opacity: 0.3;
}
.wp-badge-compact {
position: absolute;
top: 10px;
right: 10px;
/* Opacity merah bata untuk badge */
background: rgba(175, 52, 52, 0.85);
color: #fff;
font-size: 0.75em;
font-weight: 600;
padding: 4px 10px;
border-radius: 20px;
z-index: 2;
backdrop-filter: blur(4px);
}
.wp-card-compact-title {
padding: 12px 14px;
font-weight: 600;
font-size: 15px;
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.wp-card-compact-title a {
color: var(--wp-text-main);
text-decoration: none;
}
.wp-card-compact-title a:hover {
color: var(--wp-primary);
}
/* TENTANG KOMUNITAS */
.wp-community {
background: var(--wp-card);
border: 1px solid var(--wp-border);
border-radius: var(--wp-radius);
padding: 24px;
display: grid;
grid-template-columns: 280px 1fr;
gap: 28px;
align-items: center;
box-shadow: var(--wp-shadow);
}
.wp-community-img img {
width: 100%;
height: auto;
border-radius: 8px;
display: block;
}
.wp-community-text p {
margin: 0 0 12px 0;
line-height: 1.6;
}
.wp-chips {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 16px;
}
.wp-chip {
display: inline-block;
padding: 6px 16px;
border-radius: 20px;
background: #fdf5f5;
border: 1px solid #f1d4d4;
transition: all 0.2s ease;
font-size: 13px;
}
.wp-chip:hover {
background: var(--wp-primary);
border-color: var(--wp-primary);
}
.wp-chip a {
color: var(--wp-primary-dark) !important;
font-weight: 600;
text-decoration: none !important;
}
.wp-chip:hover a {
color: #ffffff !important;
}
/* FOOTER */
.wp-footer {
text-align: center;
margin-top: 48px;
padding-top: 24px;
border-top: 1px solid var(--wp-border);
opacity: 0.8;
}
/* =========================================================
KODE LAMA YANG SUDAH DIPERBAIKI (Home Box & Gallery)
========================================================= */
.home-container {
display: flex;
flex-wrap: wrap;
gap: 1em;
justify-content: space-between;
}
.home-box {
background: #fff;
border: 1px solid #ccc;
border-radius: 6px;
box-shadow: 1px 1px 5px rgba(0,0,0,0.1);
flex: 1 1 calc(48% - 1em);
min-width: 300px;
padding: 1em;
}
.home-header {
font-weight: bold;
font-size: 1.2em;
padding: 0.5em;
color: #fff;
margin: -1em -1em 0.5em -1em;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
border-left: 6px solid #eee;
}
.home-box.green .home-header { background: #2e8b57; border-left-color: #229b5e; }
.home-box.blue .home-header { background: #005a9c; border-left-color: #007acc; }
.home-box.red .home-header { background: #af3434; border-left-color: #8b2929; }
.home-content {
font-size: 0.95em;
line-height: 1.5em;
}
.gallery-row {
display: flex;
gap: 0.5em;
margin-top: 0.5em;
}
/* Artikel Galeri di halaman home */
.artikel-galeri {
display: inline-block;
width: 30%;
vertical-align: top;
margin: 10px;
border: 1px solid #ddd;
border-radius: 10px;
padding: 10px;
box-shadow: 2px 2px 8px #eee;
}
.galeri-kartu img {
width: 100%;
height: auto;
border-radius: 5px;
}
.galeri-judul {
font-size: 1.2em;
font-weight: bold;
color: #223366;
margin-top: 5px;
}
.galeri-ringkasan {
font-size: 0.95em;
color: #333;
margin-top: 5px;
}
.baca {
color: #3366cc;
font-weight: normal;
text-decoration: none;
}
/* DynamicPageList */
DynamicPageList ul {
column-count: 2;
column-gap: 2em;
margin: 0;
padding-left: 1.5em;
list-style-position: outside;
}
DynamicPageList li {
break-inside: avoid;
margin-bottom: 0.5em;
}
/* =========================================================
RESPONSIVE DESIGN (TAMPILAN HP/TABLET)
========================================================= */
@media (max-width: 768px) {
.wp-stats {
grid-template-columns: repeat(2, 1fr);
}
.wp-community {
grid-template-columns: 1fr;
text-align: center;
}
.wp-chips {
justify-content: center;
}
.wp-hero-content h2 {
font-size: 24px;
}
.wp-grid-compact {
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
}
