مدیاویکی:Common.css: تفاوت میان نسخهها
پرش به ناوبری
پرش به جستجو
جزبدون خلاصۀ ویرایش |
بدون خلاصۀ ویرایش |
||
| خط ۶۱۳: | خط ۶۱۳: | ||
رنگ عنوان صفحه باید سبز تیره شود. | رنگ عنوان صفحه باید سبز تیره شود. | ||
*/ | */ | ||
/* ========================================================= | |||
WIKIDAD — HOMEPAGE | |||
صفحه اصلی ویکیداد | |||
========================================================= */ | |||
.wd-home { | |||
direction: rtl; | |||
max-width: 1180px; | |||
margin: -8px auto 40px; | |||
color: #263238; | |||
} | |||
/* ---------- Hero ---------- */ | |||
.wd-hero { | |||
position: relative; | |||
overflow: hidden; | |||
padding: 48px 42px 44px; | |||
margin-bottom: 38px; | |||
border-radius: 20px; | |||
background: linear-gradient(135deg, #0f665d 0%, #168477 55%, #23978a 100%); | |||
color: #fff; | |||
box-shadow: 0 8px 30px rgba(20, 70, 65, 0.16); | |||
} | |||
.wd-hero::before { | |||
content: "§"; | |||
position: absolute; | |||
left: 45px; | |||
top: -25px; | |||
font-family: Georgia, serif; | |||
font-size: 190px; | |||
line-height: 1; | |||
color: rgba(255,255,255,0.07); | |||
pointer-events: none; | |||
} | |||
.wd-hero-title { | |||
position: relative; | |||
z-index: 1; | |||
margin-bottom: 5px; | |||
font-size: 42px; | |||
font-weight: 800; | |||
letter-spacing: -1px; | |||
} | |||
.wd-hero-subtitle { | |||
position: relative; | |||
z-index: 1; | |||
margin-bottom: 30px; | |||
font-size: 18px; | |||
font-weight: 400; | |||
color: rgba(255,255,255,0.92); | |||
} | |||
/* ---------- Search ---------- */ | |||
.wd-search-box { | |||
position: relative; | |||
z-index: 2; | |||
max-width: 780px; | |||
} | |||
.wd-search-box .mw-inputbox-form { | |||
display: flex; | |||
align-items: stretch; | |||
gap: 8px; | |||
} | |||
.wd-search-box input[type="text"] { | |||
flex: 1; | |||
min-width: 0; | |||
height: 54px; | |||
padding: 0 20px; | |||
border: 0; | |||
border-radius: 11px; | |||
background: #fff; | |||
color: #263238; | |||
font-family: inherit; | |||
font-size: 16px; | |||
box-shadow: 0 3px 15px rgba(0,0,0,0.12); | |||
} | |||
.wd-search-box input[type="text"]::placeholder { | |||
color: #8a9699; | |||
} | |||
.wd-search-box input[type="submit"] { | |||
height: 54px; | |||
padding: 0 28px; | |||
border: 0; | |||
border-radius: 11px; | |||
background: #c49a3a; | |||
color: #fff; | |||
font-family: inherit; | |||
font-size: 16px; | |||
font-weight: 700; | |||
cursor: pointer; | |||
transition: 0.2s ease; | |||
} | |||
.wd-search-box input[type="submit"]:hover { | |||
background: #ad842c; | |||
transform: translateY(-1px); | |||
} | |||
/* ---------- Section titles ---------- */ | |||
.wd-section-title { | |||
position: relative; | |||
margin: 34px 0 18px; | |||
padding-right: 15px; | |||
color: #11695f; | |||
font-size: 22px; | |||
font-weight: 800; | |||
} | |||
.wd-section-title::before { | |||
content: ""; | |||
position: absolute; | |||
right: 0; | |||
top: 4px; | |||
bottom: 4px; | |||
width: 5px; | |||
border-radius: 5px; | |||
background: #c49a3a; | |||
} | |||
/* ---------- Main cards ---------- */ | |||
.wd-main-grid { | |||
display: grid; | |||
grid-template-columns: repeat(4, 1fr); | |||
gap: 18px; | |||
} | |||
.wd-card { | |||
position: relative; | |||
min-height: 215px; | |||
padding: 25px 22px; | |||
border: 1px solid #e0e7e5; | |||
border-radius: 15px; | |||
background: #fff; | |||
box-shadow: 0 4px 18px rgba(20,60,55,0.07); | |||
transition: transform 0.2s ease, box-shadow 0.2s ease; | |||
} | |||
.wd-card:hover { | |||
transform: translateY(-4px); | |||
box-shadow: 0 9px 28px rgba(20,60,55,0.12); | |||
} | |||
.wd-card-icon { | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
width: 48px; | |||
height: 48px; | |||
margin-bottom: 17px; | |||
border-radius: 12px; | |||
background: #eef7f5; | |||
color: #168477; | |||
font-family: Georgia, serif; | |||
font-size: 25px; | |||
font-weight: 700; | |||
} | |||
.wd-card-title { | |||
margin-bottom: 10px; | |||
color: #11695f; | |||
font-size: 18px; | |||
font-weight: 800; | |||
} | |||
.wd-card-text { | |||
min-height: 62px; | |||
color: #667477; | |||
font-size: 14px; | |||
line-height: 1.9; | |||
} | |||
.wd-card-link { | |||
margin-top: 15px; | |||
color: #176c88; | |||
font-size: 13px; | |||
font-weight: 700; | |||
} | |||
/* رنگ اختصاصی کارتها */ | |||
.wd-courts .wd-card-icon { | |||
background: #eef4fa; | |||
color: #3978ad; | |||
} | |||
.wd-opinions .wd-card-icon { | |||
background: #f8f2e8; | |||
color: #a9783b; | |||
} | |||
.wd-terms .wd-card-icon { | |||
background: #f3eff8; | |||
color: #8064a2; | |||
} | |||
/* ---------- Popular laws ---------- */ | |||
.wd-popular-grid { | |||
display: grid; | |||
grid-template-columns: repeat(4, 1fr); | |||
gap: 15px; | |||
} | |||
.wd-popular-card { | |||
padding: 20px; | |||
border: 1px solid #e0e7e5; | |||
border-radius: 13px; | |||
background: #f8faf9; | |||
transition: 0.2s ease; | |||
} | |||
.wd-popular-card:hover { | |||
background: #fff; | |||
border-color: #b8d6d1; | |||
box-shadow: 0 5px 18px rgba(20,60,55,0.08); | |||
} | |||
.wd-popular-card a { | |||
display: block; | |||
margin-bottom: 7px; | |||
color: #176c88 !important; | |||
font-size: 17px; | |||
font-weight: 800; | |||
} | |||
.wd-popular-card span { | |||
display: block; | |||
color: #788487; | |||
font-size: 12px; | |||
line-height: 1.8; | |||
} | |||
/* ---------- Information boxes ---------- */ | |||
.wd-info-row { | |||
display: grid; | |||
grid-template-columns: 1fr 1fr; | |||
gap: 18px; | |||
margin-top: 30px; | |||
} | |||
.wd-info-box { | |||
padding: 23px 25px; | |||
border: 1px solid #e1e7e5; | |||
border-radius: 14px; | |||
background: #fff; | |||
} | |||
.wd-info-title { | |||
margin-bottom: 8px; | |||
color: #11695f; | |||
font-size: 17px; | |||
font-weight: 800; | |||
} | |||
.wd-info-box p { | |||
margin: 0; | |||
color: #667477; | |||
font-size: 14px; | |||
line-height: 2; | |||
} | |||
/* ---------- Remove unnecessary margins inside homepage ---------- */ | |||
.wd-home p { | |||
margin-top: 0; | |||
} | |||
.wd-home a { | |||
text-decoration: none; | |||
} | |||
/* ---------- Responsive ---------- */ | |||
@media (max-width: 1000px) { | |||
.wd-main-grid, | |||
.wd-popular-grid { | |||
grid-template-columns: repeat(2, 1fr); | |||
} | |||
} | |||
@media (max-width: 650px) { | |||
.wd-home { | |||
margin: 0 8px 30px; | |||
} | |||
.wd-hero { | |||
padding: 32px 22px; | |||
border-radius: 15px; | |||
} | |||
.wd-hero-title { | |||
font-size: 32px; | |||
} | |||
.wd-hero-subtitle { | |||
font-size: 15px; | |||
} | |||
.wd-search-box .mw-inputbox-form { | |||
display: block; | |||
} | |||
.wd-search-box input[type="text"], | |||
.wd-search-box input[type="submit"] { | |||
width: 100%; | |||
box-sizing: border-box; | |||
} | |||
.wd-search-box input[type="submit"] { | |||
margin-top: 8px; | |||
} | |||
.wd-main-grid, | |||
.wd-popular-grid, | |||
.wd-info-row { | |||
grid-template-columns: 1fr; | |||
} | |||
} | |||
نسخهٔ ۱۰ سپتامبر ۲۰۲۶، ساعت ۰۹:۲۵
/* =========================================================
WIKIDAD
Stage A — Base Persian UI
MediaWiki:Common.css
========================================================= */
/* ---------------------------------------------------------
1. WIKIDAD VARIABLES
--------------------------------------------------------- */
:root {
--wd-primary: #168477;
--wd-primary-dark: #11695f;
--wd-primary-soft: #eaf6f4;
--wd-gold: #c49a3a;
--wd-text: #263238;
--wd-text-soft: #68777b;
--wd-bg: #ffffff;
--wd-bg-soft: #f7f9f8;
--wd-border: #dfe7e5;
--wd-link: #176c88;
--wd-radius: 10px;
--wd-shadow:
0 3px 14px rgba(20, 60, 55, 0.07);
}
/* ---------------------------------------------------------
2. GLOBAL
--------------------------------------------------------- */
html {
direction: rtl;
}
body {
direction: rtl;
text-align: right;
background: var(--wd-bg);
color: var(--wd-text);
font-family:
"Vazirmatn",
"IRANSansX",
"IRANSans",
Tahoma,
Arial,
sans-serif;
font-size: 16px;
line-height: 1.95;
}
/* ---------------------------------------------------------
3. LINKS
--------------------------------------------------------- */
a {
color: var(--wd-link);
}
a:hover {
color: var(--wd-primary-dark);
}
/* ---------------------------------------------------------
4. PAGE BACKGROUND
--------------------------------------------------------- */
#mw-page-base {
background:
linear-gradient(
to bottom,
#edf7f5 0,
#ffffff 150px
) !important;
}
/* ---------------------------------------------------------
5. MAIN PAGE CONTAINER
--------------------------------------------------------- */
#content {
background: #ffffff;
border: 1px solid var(--wd-border);
border-radius: var(--wd-radius);
box-shadow: var(--wd-shadow);
}
/* ---------------------------------------------------------
6. MAIN CONTENT
--------------------------------------------------------- */
#bodyContent,
.mw-body-content {
font-family:
"Vazirmatn",
"IRANSansX",
"IRANSans",
Tahoma,
Arial,
sans-serif;
color: var(--wd-text);
line-height: 2;
}
/* ---------------------------------------------------------
7. PAGE TITLE
--------------------------------------------------------- */
#firstHeading {
color: var(--wd-primary-dark);
font-family:
"Vazirmatn",
"IRANSansX",
"IRANSans",
Tahoma,
Arial,
sans-serif;
font-size: 30px;
font-weight: 800;
line-height: 1.6;
border-bottom: none;
margin-bottom: 24px;
}
/* ---------------------------------------------------------
8. HEADINGS
--------------------------------------------------------- */
.mw-body-content h2 {
color: var(--wd-primary-dark);
font-size: 23px;
font-weight: 800;
border-bottom:
2px solid var(--wd-primary-soft);
padding-bottom: 8px;
margin-top: 34px;
}
.mw-body-content h3 {
color: var(--wd-primary);
font-size: 20px;
font-weight: 700;
margin-top: 28px;
}
.mw-body-content h4 {
color: var(--wd-text);
font-size: 18px;
}
/* ---------------------------------------------------------
9. HEADER
--------------------------------------------------------- */
#mw-head {
font-family:
"Vazirmatn",
"IRANSansX",
"IRANSans",
Tahoma,
Arial,
sans-serif;
}
/* Header background */
#mw-head {
background: #ffffff;
}
/* ---------------------------------------------------------
10. PERSONAL MENU
--------------------------------------------------------- */
#p-personal {
font-size: 13px;
}
#p-personal a {
color: var(--wd-text-soft);
}
#p-personal a:hover {
color: var(--wd-primary);
}
/* ---------------------------------------------------------
11. SEARCH BOX
--------------------------------------------------------- */
#p-search {
font-family:
"Vazirmatn",
"IRANSansX",
"IRANSans",
Tahoma,
Arial,
sans-serif;
}
#searchInput {
font-family:
"Vazirmatn",
"IRANSansX",
"IRANSans",
Tahoma,
Arial,
sans-serif;
font-size: 14px;
border:
1px solid var(--wd-border);
border-radius: 8px;
background: #ffffff;
color: var(--wd-text);
padding: 8px 12px;
transition:
border-color .2s ease,
box-shadow .2s ease;
}
#searchInput:focus {
border-color: var(--wd-primary);
box-shadow:
0 0 0 3px rgba(22,132,119,.12);
outline: none;
}
/* ---------------------------------------------------------
12. SEARCH BUTTON
--------------------------------------------------------- */
#searchButton {
border-radius: 8px;
border-color: var(--wd-primary);
color: var(--wd-primary);
}
/* ---------------------------------------------------------
13. TOP NAVIGATION
--------------------------------------------------------- */
#mw-panel {
font-family:
"Vazirmatn",
"IRANSansX",
"IRANSans",
Tahoma,
Arial,
sans-serif;
}
/* Sidebar headings */
#mw-panel .portal h3 {
color: var(--wd-primary-dark);
font-size: 14px;
font-weight: 800;
}
/* Sidebar links */
#mw-panel .portal a {
color: var(--wd-text-soft);
font-size: 14px;
}
#mw-panel .portal a:hover {
color: var(--wd-primary);
text-decoration: none;
}
/* ---------------------------------------------------------
14. PORTLET MENUS
--------------------------------------------------------- */
.vector-menu-portal {
font-family:
"Vazirmatn",
"IRANSansX",
"IRANSans",
Tahoma,
Arial,
sans-serif;
}
/* ---------------------------------------------------------
15. CONTENT LINKS
--------------------------------------------------------- */
.mw-body-content a {
color: var(--wd-link);
transition:
color .15s ease;
}
.mw-body-content a:hover {
color: var(--wd-primary-dark);
text-decoration: underline;
}
/* ---------------------------------------------------------
16. PARAGRAPHS
--------------------------------------------------------- */
.mw-body-content p {
margin-top: 0;
margin-bottom: 16px;
}
/* ---------------------------------------------------------
17. LISTS
--------------------------------------------------------- */
.mw-body-content ul,
.mw-body-content ol {
padding-right: 28px;
padding-left: 0;
}
.mw-body-content li {
margin-bottom: 7px;
}
/* ---------------------------------------------------------
18. TABLE OF CONTENTS
--------------------------------------------------------- */
#toc {
background: var(--wd-bg-soft);
border:
1px solid var(--wd-border);
border-right:
4px solid var(--wd-primary);
border-radius:
var(--wd-radius);
padding: 15px 20px;
box-shadow:
0 2px 10px rgba(20,60,55,.04);
}
#toc .toctitle {
color: var(--wd-primary-dark);
font-weight: 800;
}
/* ---------------------------------------------------------
19. CATEGORIES
--------------------------------------------------------- */
.catlinks {
background: var(--wd-bg-soft);
border:
1px solid var(--wd-border);
border-radius:
8px;
padding: 10px 14px;
margin-top: 30px;
font-size: 13px;
}
/* ---------------------------------------------------------
20. FOOTER
--------------------------------------------------------- */
#footer {
font-family:
"Vazirmatn",
"IRANSansX",
"IRANSans",
Tahoma,
Arial,
sans-serif;
color: var(--wd-text-soft);
border-top:
1px solid var(--wd-border);
margin-top: 40px;
}
#footer a {
color: var(--wd-link);
}
/* ---------------------------------------------------------
21. EDIT / TOOL LINKS
--------------------------------------------------------- */
#p-cactions a,
#p-views a,
#p-cactions li,
#p-views li {
font-family:
"Vazirmatn",
"IRANSansX",
"IRANSans",
Tahoma,
Arial,
sans-serif;
}
/* ---------------------------------------------------------
22. EDIT SECTION
--------------------------------------------------------- */
.mw-editsection {
font-size: 12px;
font-weight: normal;
}
.mw-editsection a {
color: var(--wd-link);
}
/* ---------------------------------------------------------
23. BLOCKQUOTES
--------------------------------------------------------- */
blockquote {
background:
var(--wd-bg-soft);
border-right:
4px solid var(--wd-primary);
border-left:
none;
border-radius:
8px;
padding:
14px 18px;
color:
var(--wd-text-soft);
}
/* ---------------------------------------------------------
24. TABLES
--------------------------------------------------------- */
.wikitable {
border:
1px solid var(--wd-border);
border-collapse:
collapse;
width: 100%;
font-family:
"Vazirmatn",
"IRANSansX",
"IRANSans",
Tahoma,
Arial,
sans-serif;
}
.wikitable th {
background:
var(--wd-primary-soft);
color:
var(--wd-primary-dark);
border:
1px solid var(--wd-border);
padding:
10px 14px;
}
.wikitable td {
border:
1px solid var(--wd-border);
padding:
10px 14px;
}
/* ---------------------------------------------------------
25. MOBILE
--------------------------------------------------------- */
@media (max-width: 700px) {
body {
font-size: 15px;
}
#firstHeading {
font-size: 24px;
}
.mw-body-content h2 {
font-size: 20px;
}
.mw-body-content h3 {
font-size: 18px;
}
#content {
border-radius: 0;
border-left: none;
border-right: none;
box-shadow: none;
}
}
/* ---------------------------------------------------------
26. TEST MARKER
--------------------------------------------------------- */
/*
اگر این فایل درست بارگذاری شده باشد،
رنگ عنوان صفحه باید سبز تیره شود.
*/
/* =========================================================
WIKIDAD — HOMEPAGE
صفحه اصلی ویکیداد
========================================================= */
.wd-home {
direction: rtl;
max-width: 1180px;
margin: -8px auto 40px;
color: #263238;
}
/* ---------- Hero ---------- */
.wd-hero {
position: relative;
overflow: hidden;
padding: 48px 42px 44px;
margin-bottom: 38px;
border-radius: 20px;
background: linear-gradient(135deg, #0f665d 0%, #168477 55%, #23978a 100%);
color: #fff;
box-shadow: 0 8px 30px rgba(20, 70, 65, 0.16);
}
.wd-hero::before {
content: "§";
position: absolute;
left: 45px;
top: -25px;
font-family: Georgia, serif;
font-size: 190px;
line-height: 1;
color: rgba(255,255,255,0.07);
pointer-events: none;
}
.wd-hero-title {
position: relative;
z-index: 1;
margin-bottom: 5px;
font-size: 42px;
font-weight: 800;
letter-spacing: -1px;
}
.wd-hero-subtitle {
position: relative;
z-index: 1;
margin-bottom: 30px;
font-size: 18px;
font-weight: 400;
color: rgba(255,255,255,0.92);
}
/* ---------- Search ---------- */
.wd-search-box {
position: relative;
z-index: 2;
max-width: 780px;
}
.wd-search-box .mw-inputbox-form {
display: flex;
align-items: stretch;
gap: 8px;
}
.wd-search-box input[type="text"] {
flex: 1;
min-width: 0;
height: 54px;
padding: 0 20px;
border: 0;
border-radius: 11px;
background: #fff;
color: #263238;
font-family: inherit;
font-size: 16px;
box-shadow: 0 3px 15px rgba(0,0,0,0.12);
}
.wd-search-box input[type="text"]::placeholder {
color: #8a9699;
}
.wd-search-box input[type="submit"] {
height: 54px;
padding: 0 28px;
border: 0;
border-radius: 11px;
background: #c49a3a;
color: #fff;
font-family: inherit;
font-size: 16px;
font-weight: 700;
cursor: pointer;
transition: 0.2s ease;
}
.wd-search-box input[type="submit"]:hover {
background: #ad842c;
transform: translateY(-1px);
}
/* ---------- Section titles ---------- */
.wd-section-title {
position: relative;
margin: 34px 0 18px;
padding-right: 15px;
color: #11695f;
font-size: 22px;
font-weight: 800;
}
.wd-section-title::before {
content: "";
position: absolute;
right: 0;
top: 4px;
bottom: 4px;
width: 5px;
border-radius: 5px;
background: #c49a3a;
}
/* ---------- Main cards ---------- */
.wd-main-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 18px;
}
.wd-card {
position: relative;
min-height: 215px;
padding: 25px 22px;
border: 1px solid #e0e7e5;
border-radius: 15px;
background: #fff;
box-shadow: 0 4px 18px rgba(20,60,55,0.07);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wd-card:hover {
transform: translateY(-4px);
box-shadow: 0 9px 28px rgba(20,60,55,0.12);
}
.wd-card-icon {
display: flex;
align-items: center;
justify-content: center;
width: 48px;
height: 48px;
margin-bottom: 17px;
border-radius: 12px;
background: #eef7f5;
color: #168477;
font-family: Georgia, serif;
font-size: 25px;
font-weight: 700;
}
.wd-card-title {
margin-bottom: 10px;
color: #11695f;
font-size: 18px;
font-weight: 800;
}
.wd-card-text {
min-height: 62px;
color: #667477;
font-size: 14px;
line-height: 1.9;
}
.wd-card-link {
margin-top: 15px;
color: #176c88;
font-size: 13px;
font-weight: 700;
}
/* رنگ اختصاصی کارتها */
.wd-courts .wd-card-icon {
background: #eef4fa;
color: #3978ad;
}
.wd-opinions .wd-card-icon {
background: #f8f2e8;
color: #a9783b;
}
.wd-terms .wd-card-icon {
background: #f3eff8;
color: #8064a2;
}
/* ---------- Popular laws ---------- */
.wd-popular-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 15px;
}
.wd-popular-card {
padding: 20px;
border: 1px solid #e0e7e5;
border-radius: 13px;
background: #f8faf9;
transition: 0.2s ease;
}
.wd-popular-card:hover {
background: #fff;
border-color: #b8d6d1;
box-shadow: 0 5px 18px rgba(20,60,55,0.08);
}
.wd-popular-card a {
display: block;
margin-bottom: 7px;
color: #176c88 !important;
font-size: 17px;
font-weight: 800;
}
.wd-popular-card span {
display: block;
color: #788487;
font-size: 12px;
line-height: 1.8;
}
/* ---------- Information boxes ---------- */
.wd-info-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 18px;
margin-top: 30px;
}
.wd-info-box {
padding: 23px 25px;
border: 1px solid #e1e7e5;
border-radius: 14px;
background: #fff;
}
.wd-info-title {
margin-bottom: 8px;
color: #11695f;
font-size: 17px;
font-weight: 800;
}
.wd-info-box p {
margin: 0;
color: #667477;
font-size: 14px;
line-height: 2;
}
/* ---------- Remove unnecessary margins inside homepage ---------- */
.wd-home p {
margin-top: 0;
}
.wd-home a {
text-decoration: none;
}
/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
.wd-main-grid,
.wd-popular-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 650px) {
.wd-home {
margin: 0 8px 30px;
}
.wd-hero {
padding: 32px 22px;
border-radius: 15px;
}
.wd-hero-title {
font-size: 32px;
}
.wd-hero-subtitle {
font-size: 15px;
}
.wd-search-box .mw-inputbox-form {
display: block;
}
.wd-search-box input[type="text"],
.wd-search-box input[type="submit"] {
width: 100%;
box-sizing: border-box;
}
.wd-search-box input[type="submit"] {
margin-top: 8px;
}
.wd-main-grid,
.wd-popular-grid,
.wd-info-row {
grid-template-columns: 1fr;
}
}