MediaWiki:Common.css: Perbedaan antara revisi

Dari WikiPangan
Tidak ada ringkasan suntingan
Tidak ada ringkasan suntingan
 
(1 revisi perantara oleh pengguna yang sama tidak ditampilkan)
Baris 138: Baris 138:
   text-decoration: none;
   text-decoration: none;
}
}
 
/* Styling untuk daftar yang dihasilkan oleh DynamicPageList */
body {
DynamicPageList ul {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  column-count: 2;
  background-color: #f5f5f5;
  column-gap: 2em;
  margin: 0;
  margin: 0;
  padding: 2em;
  padding-left: 1.5em;
  color: #333;
  list-style-position: outside;
}
}
 
DynamicPageList li {
.container {
  break-inside: avoid;
  max-width: 1200px;
  margin-bottom: 0.5em;
  margin: 0 auto;
}
}
 
.search-bar {
  margin-bottom: 2em;
  position: sticky;
  top: 1em;
  z-index: 10;
  background: #fff;
  padding: 1em;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
 
.search-bar input {
  width: 100%;
  padding: 0.75em;
  font-size: 1em;
  border: 1px solid #ddd;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s;
}
 
.search-bar input:focus {
  border-color: #007bff;
}
 
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5em;
}
 
.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5em;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
 
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
 
.card h2 {
  margin: 0 0 1em;
  font-size: 1.5em;
  color: #222;
  border-bottom: 2px solid #007bff;
  padding-bottom: 0.5em;
}
 
.card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
 
.card ul li {
  margin: 0.5em 0;
}
 
.card ul li a {
  text-decoration: none;
  color: #007bff;
  font-size: 1em;
  transition: color 0.3s;
}
 
.card ul li a:hover {
  color: #0056b3;
  text-decoration: underline;
}
 
@media (max-width: 600px) {
  body {
    padding: 1em;
  }
 
  .grid {
    grid-template-columns: 1fr;
  }
 
  .card {
    padding: 1em;
  }
 
  .card h2 {
    font-size: 1.3em;
  }
}

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