MediaWiki:Common.css: Revizyonlar arasındaki fark
Gezinti kısmına atla
Arama kısmına atla
Değişiklik özeti yok Etiket: Geri alındı |
Değişiklik özeti yok Etiket: Geri alındı |
||
| 7. satır: | 7. satır: | ||
/*Logo*/ | /*Logo*/ | ||
/* === | /* === Üst Banner (WikiKod Hukuk Teması) === */ | ||
#mw-page-base { | |||
background: url("/resources/assets/banner.png") center top / cover no-repeat; | |||
height: 200px; | |||
border-bottom: 3px solid #1e3a8a; | |||
} | } | ||
/* Header şeffaf hale gelsin ki banner gözüksün */ | |||
.vector-header-container { | |||
background: transparent !important; | |||
box-shadow: none !important; | |||
min-height: 200px !important; | |||
} | |||
/* Logo banner üzerinde dursun */ | |||
.vector-header-start { | |||
position: relative; | |||
z-index: 2; | |||
display: flex; | |||
align-items: center; | |||
gap: 12px; | |||
margin-left: 40px; | |||
padding-top: 50px; /* banner yüksekliğine göre ayarlanabilir */ | |||
} | |||
/* Logo boyutu */ | |||
.vector-header-start .mw-logo-icon img { | .vector-header-start .mw-logo-icon img { | ||
height: | height: 90px !important; | ||
width: auto !important; | width: auto !important; | ||
border-radius: 6px; | border-radius: 6px; | ||
filter: drop-shadow(0 | filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); | ||
} | } | ||
/* | /* Yazı kısmı (WikiKod Hukuk Ansiklopedisi) */ | ||
.mw-logo-wordmark { | .mw-logo-wordmark { | ||
font-family: "Merriweather", "Georgia", serif; | font-family: "Merriweather", "Georgia", serif; | ||
font-size: | font-size: 32px; | ||
font-weight: 700; | font-weight: 700; | ||
text-shadow: 0 | color: white !important; | ||
text-shadow: 0 2px 6px rgba(0,0,0,0.5); | |||
} | } | ||
/* Arama kutusu banner'ın altına gelsin */ | |||
/* Arama kutusu | |||
.vector-search-box { | .vector-search-box { | ||
margin-top: | margin-top: 20px !important; | ||
position: relative; | |||
z-index: 5; | |||
} | } | ||
/* Mobil | /* Mobil görünümde banner küçülsün */ | ||
@media (max-width: 720px) { | @media (max-width: 720px) { | ||
#mw-page-base { | |||
height: 120px; | |||
} | } | ||
.vector-header-start .mw-logo-icon img { | .vector-header-start .mw-logo-icon img { | ||
height: | height: 60px !important; | ||
} | } | ||
.mw-logo-wordmark { | .mw-logo-wordmark { | ||
font-size: | font-size: 22px; | ||
} | } | ||
} | } | ||
/*Logo Son*/ | /*Logo Son*/ | ||
13.47, 11 Kasım 2025 tarihindeki hâli
/* --- WikiKod: Kurumsal Hukuk Teması (v2 optimize) --- */
/* Vector 2022 ile tam uyumlu, sade ve kurumsal görünüm */
/* ==========================================================
GENEL STİLLER
========================================================== */
/*Logo*/
/* === Üst Banner (WikiKod Hukuk Teması) === */
#mw-page-base {
background: url("/resources/assets/banner.png") center top / cover no-repeat;
height: 200px;
border-bottom: 3px solid #1e3a8a;
}
/* Header şeffaf hale gelsin ki banner gözüksün */
.vector-header-container {
background: transparent !important;
box-shadow: none !important;
min-height: 200px !important;
}
/* Logo banner üzerinde dursun */
.vector-header-start {
position: relative;
z-index: 2;
display: flex;
align-items: center;
gap: 12px;
margin-left: 40px;
padding-top: 50px; /* banner yüksekliğine göre ayarlanabilir */
}
/* Logo boyutu */
.vector-header-start .mw-logo-icon img {
height: 90px !important;
width: auto !important;
border-radius: 6px;
filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}
/* Yazı kısmı (WikiKod Hukuk Ansiklopedisi) */
.mw-logo-wordmark {
font-family: "Merriweather", "Georgia", serif;
font-size: 32px;
font-weight: 700;
color: white !important;
text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
/* Arama kutusu banner'ın altına gelsin */
.vector-search-box {
margin-top: 20px !important;
position: relative;
z-index: 5;
}
/* Mobil görünümde banner küçülsün */
@media (max-width: 720px) {
#mw-page-base {
height: 120px;
}
.vector-header-start .mw-logo-icon img {
height: 60px !important;
}
.mw-logo-wordmark {
font-size: 22px;
}
}
/*Logo Son*/
body {
background-color: #f8f9fa;
color: #202122;
font-family: "Segoe UI", "Inter", "Helvetica Neue", sans-serif;
}
a { color: #0645ad; }
a:visited { color: #0b0080; }
a:hover { text-decoration: underline; }
.mw-body-content {
background: #fff;
border: 1px solid #ddd;
border-radius: 4px;
padding: 1.2rem 1.5rem;
box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
/* Başlıklar */
h1, h2 {
color: #2a4b8d;
font-weight: 600;
border-bottom: 2px solid #dbe4f3;
padding-bottom: 0.2em;
margin-top: 1.2em;
}
h3, h4 {
color: #22335b;
border-left: 4px solid #c2d0ec;
padding-left: 6px;
font-weight: 600;
}
/* Hover efekti */
.infobox:hover {
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
transition: box-shadow 0.2s ease;
}
/* ==========================================================
HUKUKİ KUTULAR
========================================================== */
/* === Kanun kutusu === */
/* Kanun kutusu */
.lawbox {
float: right;
/* clear: right; ← bunu kaldır */
margin: 0 0 1em 1em;
border: 1px solid #bcc6d6;
border-radius: 6px;
background: #ffffff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
overflow: hidden;
width: auto;
max-width: 340px; /* isteğe göre */
}
.lawbox caption {
background: linear-gradient(180deg, #e8f0ff, #d7e2fa);
color: #1f376d;
font-weight: 700;
text-align: center;
padding: 8px;
border-bottom: 2px solid #b5c1d7;
font-size: 1em;
}
.lawbox th, .lawbox td {
border-bottom: 1px solid #d8e0ee;
padding: 6px 8px;
}
.lawbox th {
width: 38%;
background: #f2f6fc;
color: #1c1c1c;
border-right: 1px solid #d8e0ee;
font-weight: 600;
}
.lawbox td { color: #222; }
/* Kavram kutusu */
.lawbox.kavram {
float: left;
clear: right;
max-width: 2280px;
}
.lawbox.kavram th { background: #f4f7ff; }
.lawbox.kavram caption {
background: linear-gradient(180deg, #f0f5ff, #dce7ff);
color: #22335b;
font-weight: 700;
border-bottom: 1px solid #c8d6f2;
}
/* Hover */
.lawbox:hover {
box-shadow: 0 3px 10px rgba(0,0,0,0.08);
transition: box-shadow 0.2s ease;
}
/* ==========================================================
MAKALE DÜZENİ
========================================================== */
.mw-parser-output p {
text-align: justify;
line-height: 1.65;
margin: 0.6em 0;
}
.mw-parser-output ul {
margin: 0.5em 0 0.5em 1.5em;
}
.mw-parser-output li { margin-bottom: 4px; }
blockquote {
background: #f4f7fb;
border-left: 4px solid #4c6ef5;
padding: 8px 12px;
margin: 1em 0;
font-style: italic;
}
.references {
border-top: 1px solid #dbe4f3;
padding-top: 6px;
}
/* ==========================================================
UYARI / BİLGİ KUTULARI
========================================================== */
.notice-box,
.warning-box,
.deprecated-box {
display: inline-flex;
align-items: center;
gap: 6px;
width: auto;
border-radius: 6px;
padding: 8px 12px;
margin: 0.5em 0 1em 0;
font-size: 90%;
line-height: 1.5;
box-sizing: border-box;
word-wrap: break-word;
}
.notice-box *,
.warning-box *,
.deprecated-box * {
background: none !important;
border: none !important;
padding: 0 !important;
margin: 0 !important;
}
.notice-box {
border: 1px solid #cfd8ea;
background: #f1f5ff;
color: #1e2a4a;
}
.notice-box::before {
content: "ℹ️";
color: #22335b;
}
.warning-box {
border: 1px solid #f3d08c;
background: #fff8e1;
color: #503c00;
}
.warning-box::before {
content: "⚠️";
color: #9a6a00;
}
.deprecated-box {
border: 1px solid #e2b0b0;
background: #fff0f0;
color: #5a1f1f;
}
.deprecated-box::before {
content: "⛔";
color: #b52d2d;
}
/* === Güncellik şeridi === */
.outdated-banner {
background: linear-gradient(90deg, #ffe8a3, #fff4cf);
border: 1px solid #f3d08c;
padding: 8px;
border-radius: 4px;
font-weight: 500;
color: #664d00;
text-align: center;
margin: 1em 0;
}
/* Kod blokları */
pre, code {
background: #f1f3f5;
border: 1px solid #dee2e6;
border-radius: 4px;
padding: 6px 10px;
display: block;
font-family: "Consolas", monospace;
font-size: 0.95em;
}
/* ==========================================================
ANA SAYFA DÜZENİ
========================================================== */
.main-grid {
display: flex;
justify-content: space-between;
gap: 20px;
flex-wrap: wrap;
margin-top: 20px;
}
.main-column {
flex: 1;
min-width: 250px;
background: #fff;
border: 1px solid #e2e6ef;
border-radius: 8px;
padding: 15px 20px;
box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.main-column h2 {
color: #2a4b8d;
border-bottom: 1px solid #dbe4f3;
padding-bottom: 4px;
margin-bottom: 10px;
font-size: 1.1em;
}
.main-column ul { margin: 0; padding-left: 16px; }
.main-column li { margin: 5px 0; }
.footer-bar {
text-align: center;
margin-top: 40px;
font-size: 0.9em;
color: #555;
border-top: 1px solid #ddd;
padding-top: 10px;
}
/* Üst Navigasyon */
.top-nav {
background: linear-gradient(180deg, #30448a, #2a3b76);
padding: 10px;
text-align: center;
border-radius: 6px;
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.top-nav a,
.top-nav a:visited {
color: #fff !important;
text-decoration: none !important;
margin: 0 15px;
font-weight: 500;
}
.top-nav a:hover {
opacity: 0.85;
transform: scale(1.05);
}
.lawbox-footer td {
border-top: 1px solid #d8e0ee;
background: #f9fbff;
}
.ictihatbox {
background: #f8f9fa;
border: 1px solid #cbd5e0;
border-radius: 8px;
padding: 10px;
margin: 1em 0;
margin-left:12px;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
display:inline-block;
}
.ictihatbox .lawbox-header {
background: linear-gradient(135deg,#1e40af,#2563eb);
color: #fff;
padding: 5px 10px;
border-radius: 6px 6px 0 0;
font-weight: bold;
}
.ictihatbox .lawbox-body {
padding: 6px 10px;
line-height: 1.5;
}
.ictihat-listesi ul {
list-style-type: disc;
margin-left: 1.5em;
}
.kanun-metin {
background: #fff;
border: 1px solid #d1d5db;
border-radius: 8px;
padding: 20px 30px;
margin: 1em 0;
font-family: "DejaVu Serif", Georgia, "Times New Roman", serif;
line-height: 1.7;
color: #222;
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.kanun-metin h2 {
color: #1e3a8a;
border-bottom: 2px solid #3b82f6;
padding-bottom: 4px;
margin-top: 1.3em;
font-size: 1.2em;
}
.kanun-metin b {
color: #111;
}
.kanun-metin dd {
margin-left: 2em;
text-indent: -1.2em;
}
.kanun-metin .iptal {
background: #f3f4f6;
border-left: 3px solid #9ca3af;
padding: 4px 8px;
font-style: italic;
color: #555;
margin: 0.4em 0;
border-radius: 4px;
}
/* === Ana sayfa portalı === */
.main-portal {
max-width: 960px;
margin: 0 auto;
text-align: center;
font-family: "Segoe UI", "Inter", sans-serif;
}
.portal-header {
margin-top: 30px;
}
.portal-header h1 {
font-size: 2em;
color: #1e3a8a;
margin: 0.2em 0;
}
.portal-header .subtitle {
color: #555;
font-size: 1.1em;
}
.portal-logo {
width: 140px;
margin-bottom: 10px;
}
.portal-sections {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
margin-top: 30px;
}
.portal-card {
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 10px;
padding: 20px;
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.portal-card:hover {
transform: translateY(-3px);
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.portal-card h2 {
color: #1e3a8a;
}
.portal-link {
display: inline-block;
margin-top: 8px;
color: #2563eb;
font-weight: 600;
text-decoration: none;
}
.portal-link:hover {
text-decoration: underline;
}
/*İhtisas kutusu*/
.ihtisas-box {
border: 1px solid #cbd5e1;
border-left: 6px solid #1e3a8a;
background: #f9fafb;
padding: 16px 20px;
margin: 16px 0;
border-radius: 8px;
box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.ihtisas-header {
font-size: 16px;
color: #1e3a8a;
margin-bottom: 6px;
}
.ihtisas-task {
color: #111827;
font-size: 15px;
margin-bottom: 10px;
}
.ihtisas-details {
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 6px;
padding: 10px 16px;
font-size: 14px;
color: #111;
line-height: 1.6;
}
.ihtisas-details ol {
margin: 0;
padding-left: 18px;
}
/*ihtisas kutusu sonu*/