İçeriğe atla

MediaWiki:Common.css: Revizyonlar arasındaki fark

Hukukipedia sitesinden
Tam sayfa kanun görünümü ve madde menüsü stili ekle
Kanun maddelerini çok sütunlu göster
226. satır: 226. satır:
   font-weight: 700;
   font-weight: 700;
}
}
.hk-law-articles ol {
.hk-law-articles-list {
   display: flex;
   display: grid;
   flex-wrap: wrap;
   grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
   gap: .4rem;
   gap: .45rem;
   max-height: 260px;
   max-height: min(68vh, 620px);
   margin: 0;
   margin: 0;
   padding: 0;
   padding: 0;
   overflow-y: auto;
   overflow-y: auto;
   list-style: none;
   align-items: start;
}
}
.hk-law-articles li { margin: 0; }
.hk-law-articles li { margin: 0; }
.hk-law-articles a {
.hk-law-articles a {
   display: block;
   display: block;
  min-width: 0;
   padding: .42rem .7rem;
   padding: .42rem .7rem;
   border: 1px solid #9db5c5;
   border: 1px solid #9db5c5;
264. satır: 265. satır:
   .hk-law-header { padding: 1.2rem 1rem; }
   .hk-law-header { padding: 1.2rem 1rem; }
   .hk-law-header h1 { font-size: 1.55rem; }
   .hk-law-header h1 { font-size: 1.55rem; }
   .hk-law-articles ol { max-height: 220px; }
   .hk-law-articles-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 420px;
  }
   .hk-law-articles a { padding: .38rem .55rem; font-size: .85rem; }
   .hk-law-articles a { padding: .38rem .55rem; font-size: .85rem; }
}
}

13.56, 31 Ağustos 2026 tarihindeki hâli

/* Hukukipedia – açık, kart tabanlı wiki.gg esintili tema */
:root {
  --hk-bg: #f3f5f7;
  --hk-panel: #ffffff;
  --hk-panel-soft: #eef3f7;
  --hk-text: #27323a;
  --hk-muted: #66737c;
  --hk-link: #1769aa;
  --hk-blue: #5aa9e6;
  --hk-gold: #d8912b;
  --hk-line: #b7c5cf;
}

html, body { background: var(--hk-bg) !important; color: var(--hk-text); }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif; }
.mw-page-container { max-width: 1440px; }
.mw-body { background: var(--hk-panel); border: 1px solid var(--hk-line); padding: 1.25rem 1.5rem 2rem; color: var(--hk-text); }
.mw-body h1, .mw-body h2, .mw-body h3, .mw-body h4, .mw-body h5, .mw-body h6 { color: var(--hk-text); font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
.mw-body h1, .mw-body h2 { border-bottom: 1px solid var(--hk-gold); }
.mw-body a, .mw-parser-output a, #footer a { color: var(--hk-link); }
.mw-body a:visited, .mw-parser-output a:visited { color: #704c9f; }

/* Starsector benzeri: sol portalı sadeleştir, ana çalışma alanını genişlet. */
.vector-main-menu-container { background: var(--hk-panel); }
.vector-menu-portal { border-bottom: 1px solid var(--hk-line); }
.vector-menu-portal h3 { color: var(--hk-muted); font-family: Arial, sans-serif; font-size: .9rem; }
.vector-menu-content-list a { color: var(--hk-link); }
.vector-menu-content-list a:hover { background: var(--hk-panel-soft); }
.vector-header-container { border-bottom: 1px solid var(--hk-line); background: var(--hk-panel); }
.vector-page-toolbar { background: var(--hk-panel); }
.page-Anasayfa #toc { display: none; }
.vector-search-box input { background: #fff; color: var(--hk-text); border-color: var(--hk-line); }

/* Anasayfa özel alanları */
.hk-hero { background: linear-gradient(135deg, #eaf4fb, #fff7e8); border: 1px solid var(--hk-blue); padding: 1.5rem 2rem; margin: 0 0 1.25rem; text-align: center; }
.hk-hero h1 { margin: 0 0 .5rem; color: #245879; font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: .04em; }
.hk-hero p { max-width: 850px; margin: .5rem auto; color: var(--hk-muted); font-size: 1.05rem; }
.hk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 1.25rem; align-items: start; }
.hk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.hk-card { background: var(--hk-panel); border: 2px solid var(--hk-blue); border-radius: 7px; padding: .85rem 1rem; box-shadow: 0 2px 7px rgba(39,50,58,.12); min-height: 145px; }
.hk-card h2, .hk-card h3 { margin: 0 0 .55rem; padding: 0 0 .35rem; border-bottom: 1px solid var(--hk-gold); color: var(--hk-text); font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 1.15rem; }
.hk-card ul { margin: 0; padding-left: 1.2rem; }
.hk-card li { margin: .25rem 0; }
.hk-side { background: var(--hk-panel-soft); border: 1px solid var(--hk-line); padding: 1rem; }
.hk-side h2, .hk-side h3 { margin-top: 0; border-bottom: 1px solid var(--hk-gold); font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 1.1rem; }
.hk-notice { background: #fff8e8; border: 1px solid var(--hk-gold); padding: .8rem 1rem; margin: 1rem 0; }

.mw-parser-output table.wikitable { background: var(--hk-panel); color: var(--hk-text); border-color: var(--hk-line); }
.mw-parser-output table.wikitable th { background: var(--hk-panel-soft); color: var(--hk-text); }
#footer { border-top: 1px solid var(--hk-line); }

@media (max-width: 1000px) { .hk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .mw-body { padding: 1rem .75rem 1.5rem; border-left: 0; border-right: 0; }
  .hk-layout { grid-template-columns: 1fr; }
  .hk-grid { grid-template-columns: 1fr; }
  .hk-hero { padding: 1rem; }
}
/* MediaWiki: boş sayfa bağlantıları kırmızı gösterilir */
.mw-body a.new,
.mw-parser-output a.new,
#footer a.new,
a.new:visited {
  color: #ba0000 !important;
}
.mw-body a.new:hover,
.mw-parser-output a.new:hover,
#footer a.new:hover {
  color: #8f0000 !important;
}
# Fit the wide wiki logo inside the square Vector logo area.
#hk-logo-fit { display:none; }
#p-logo a { background-size: contain; }
#p-logo a { background-image: url("/resources/assets/wiki-logo-small.png") !important; background-size: contain !important; background-position: center center !important; }

/* Logo: square supplied icon must fit on all pages, including Special:UserLogin. */
#p-logo a.mw-wiki-logo {
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* Kanun bilgi kutusu — Template:Kanun */
.mw-parser-output table.hk-law-infobox {
  float: right;
  clear: right;
  width:  min(100%, 360px);
  margin: 0 0 1.25rem 1.5rem;
  border: 1px solid #9db5c5;
  border-radius: 8px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #fff;
  color: #27323a;
  box-shadow: 0 3px 12px rgba(39, 50, 58, .14);
  font-size: .95rem;
  line-height: 1.45;
}
.mw-parser-output table.hk-law-infobox th,
.mw-parser-output table.hk-law-infobox td {
  border: 0;
  border-bottom: 1px solid #dce5eb;
  padding: .55rem .7rem;
  vertical-align: top;
}
.mw-parser-output table.hk-law-infobox tr:last-child th,
.mw-parser-output table.hk-law-infobox tr:last-child td {
  border-bottom: 0;
}
.mw-parser-output table.hk-law-infobox .hk-law-infobox-title {
  padding: .8rem .9rem;
  background: linear-gradient(135deg, #245879, #1769aa);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}
.mw-parser-output table.hk-law-infobox th:not(.hk-law-infobox-title) {
  width: 42%;
  background: #eef3f7;
  color: #354c5b;
  font-weight: 700;
}
.mw-parser-output table.hk-law-infobox td {
  background: #fff;
  overflow-wrap: anywhere;
}
.mw-parser-output table.hk-law-infobox tr:hover th,
.mw-parser-output table.hk-law-infobox tr:hover td {
  background: #f7fbfd;
}
.mw-parser-output table.hk-law-infobox .hk-law-infobox-image {
  padding: .8rem;
  background: #f7fafc;
  text-align: center;
}
.mw-parser-output table.hk-law-infobox .hk-law-infobox-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.hk-law-note {
  clear: both;
  margin: 1rem 0;
  padding: .75rem 1rem;
  border-left: 4px solid #d8912b;
  border-radius: 0 5px 5px 0;
  background: #fff8e8;
  color: #4d3b22;
}
@media (max-width: 720px) {
  .mw-parser-output table.hk-law-infobox {
    float: none;
    width: 100%;
    margin: 0 0 1rem;
    font-size: .94rem;
  }
  .mw-parser-output table.hk-law-infobox th:not(.hk-law-infobox-title) {
    width: 40%;
  }
}

/* Tam sayfa kanun görünümü ve otomatik madde menüsü */
.mw-parser-output .hk-law-page {
  max-width: 1100px;
  margin: 0 auto;
  color: #27323a;
}
.hk-law-header {
  margin: 0 0 1.25rem;
  padding: 1.5rem 1.75rem;
  border-radius: 9px;
  background: linear-gradient(135deg, #245879, #1769aa);
  color: #fff;
  box-shadow: 0 3px 12px rgba(39, 50, 58, .16);
}
.hk-law-header h1 {
  margin: .25rem 0 .2rem;
  color: #fff !important;
  border: 0 !important;
  font-size: 2rem;
  line-height: 1.2;
}
.hk-law-type {
  color: #dceefa;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
}
.hk-law-short-name {
  color: #eaf4fb;
  font-size: 1.05rem;
  font-weight: 600;
}
.hk-law-summary {
  margin: 0 0 1.25rem;
  padding: 1rem 1.2rem;
  border-left: 4px solid #d8912b;
  border-radius: 0 6px 6px 0;
  background: #fff8e8;
  font-size: 1.05rem;
  line-height: 1.6;
}
.mw-parser-output .hk-law-page table.hk-law-infobox {
  float: none;
  width: 100%;
  max-width: none;
  margin: 0 0 1.5rem;
}
.hk-law-articles {
  clear: both;
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid #b7c5cf;
  border-radius: 8px;
  background: #eef3f7;
}
.hk-law-articles-title {
  margin-bottom: .75rem;
  color: #245879;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
}
.hk-law-articles-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: .45rem;
  max-height: min(68vh, 620px);
  margin: 0;
  padding: 0;
  overflow-y: auto;
  align-items: start;
}
.hk-law-articles li { margin: 0; }
.hk-law-articles a {
  display: block;
  min-width: 0;
  padding: .42rem .7rem;
  border: 1px solid #9db5c5;
  border-radius: 5px;
  background: #fff;
  color: #1769aa !important;
  font-size: .9rem;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.hk-law-articles a:hover,
.hk-law-articles a:focus {
  border-color: #1769aa;
  background: #dceefa;
  text-decoration: none;
}
.hk-law-empty {
  margin: 1rem 0;
  padding: .8rem 1rem;
  border: 1px dashed #b7c5cf;
  color: #66737c;
}
@media (max-width: 720px) {
  .mw-parser-output .hk-law-page { width: 100%; }
  .hk-law-header { padding: 1.2rem 1rem; }
  .hk-law-header h1 { font-size: 1.55rem; }
  .hk-law-articles-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 420px;
  }
  .hk-law-articles a { padding: .38rem .55rem; font-size: .85rem; }
}