MediaWiki:Common.css: Perbedaan antara revisi

Dari WikiPangan
Tidak ada ringkasan suntingan
Tidak ada ringkasan suntingan
 
Baris 138: Baris 138:
   text-decoration: none;
   text-decoration: none;
}
}
 
/* Styling untuk daftar yang dihasilkan oleh DynamicPageList */
  /* Container utama */
DynamicPageList ul {
  .main-container {
  column-count: 2;
    display: flex;
  column-gap: 2em;
    flex-wrap: wrap;
  margin: 0;
    justify-content: space-between;
  padding-left: 1.5em;
    gap: 1.5em;
  list-style-position: outside;
    max-width: 1200px;
}
    margin: 0 auto;
DynamicPageList li {
    padding: 1.5em;
  break-inside: avoid;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  margin-bottom: 0.5em;
  }
}
 
  /* Container untuk Bahan Pangan dan Olahan Pangan */
  .top-section {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 1.5em;
    width: 100%;
    margin-bottom: 1em;
  }
 
  /* Styling kartu */
  .card {
    flex: 1 1 48%;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
 
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  }
 
  /* Styling header dalam kartu */
  .card h2 {
    font-size: 1.5em;
    margin: 0 0 1em 0;
    color: #1a3c34;
    display: flex;
    align-items: center;
    gap: 0.5em;
  }
 
  /* Styling DynamicPageList */
  .card DynamicPageList {
    font-size: 1em;
    color: #333;
    line-height: 1.6;
  }
 
  /* Responsivitas untuk layar kecil */
  @media (max-width: 768px) {
    .top-section {
      flex-wrap: wrap;
    }
    .card {
      flex: 1 1 100%;
    }
  }

Revisi terkini sejak 25 Juli 2025 07.39

/* CSS yang ada di sini akan diterapkan pada semua kulit. */
.etika-wrapper {
  background-color: #fcfcfc;
  padding: 1em 2em;
  border-left: 4px solid #5c8a8a;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
}

.etika-wrapper h2 {
  color: #336666;
  border-bottom: 2px solid #aac;
  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: #336666;
}

/* CSS untuk Halaman Home

.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: #a41515;
  border-left-color: #e03c3c;
}

.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;
}
 /* Styling untuk daftar yang dihasilkan oleh 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;
 }