MediaWiki:Common.css: Revizyonlar arasındaki fark
Görünüm
Fix logo fitting on login and all pages |
Kanun bilgi kutusuna özel görsel stil ekle |
||
| 79. satır: | 79. satır: | ||
background-position: center center !important; | background-position: center center !important; | ||
background-repeat: no-repeat !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%; | |||
} | |||
} | } | ||
13.40, 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%;
}
}