الفرق بين المراجعتين لصفحة: «ميدياويكي:Common.css»
المظهر
لا ملخص تعديل |
لا ملخص تعديل |
||
سطر ٢: | سطر ٢: | ||
:root { | :root { | ||
/* | /* Cold, elegant color palette with high contrast */ | ||
--primary-color: # | --primary-color: #1a2332; | ||
--secondary-color: # | --secondary-color: #2d3e56; | ||
--text-dark: # | --text-dark: #0f1419; | ||
--text-muted: # | --text-muted: #4a5568; | ||
--accent- | --accent-steel: #718096; | ||
--accent- | --accent-blue: #4299e1; | ||
--accent- | --accent-slate: #64748b; | ||
--background-main: #ffffff; | --background-main: #ffffff; | ||
--background-light: # | --background-light: #f8fafc; | ||
--background- | --background-contrast: #e2e8f0; | ||
--border-elegant: # | --border-elegant: #cbd5e0; | ||
--border- | --border-strong: #94a3b8; | ||
--shadow- | --shadow-soft: 0 2px 12px rgba(15, 20, 25, 0.12); | ||
--shadow- | --shadow-medium: 0 4px 20px rgba(15, 20, 25, 0.18); | ||
--transition: 0.3s ease; | --transition-gentle: 0.3s ease; | ||
--serif-font: 'Scheherazade New', 'Amiri', serif; | --serif-font: 'Scheherazade New', 'Amiri', serif; | ||
--sans-font: 'Cairo', sans-serif; | --sans-font: 'Cairo', sans-serif; | ||
سطر ٢٣: | سطر ٢٣: | ||
/* ======================== | /* ======================== | ||
Image Styling - Clean and Elegant | |||
========================= */ | ========================= */ | ||
.mw-default-size, | .mw-default-size, | ||
figure[typeof="mw:File/Thumb"] { | figure[typeof="mw:File/Thumb"] { | ||
background: var(--background- | background: var(--background-main); | ||
border: | border: 2px solid var(--border-elegant); | ||
border-radius: 8px; | border-radius: 8px; | ||
box-shadow: var(--shadow- | box-shadow: var(--shadow-soft); | ||
overflow: hidden; | overflow: hidden; | ||
margin: | margin: 25px auto; | ||
padding: | padding: 16px; | ||
transition: var(--transition); | transition: var(--transition-gentle); | ||
position: relative; | |||
max-width: fit-content; | max-width: fit-content; | ||
} | } | ||
سطر ٥٣: | سطر ٤١: | ||
.mw-default-size:hover, | .mw-default-size:hover, | ||
figure[typeof="mw:File/Thumb"]:hover { | figure[typeof="mw:File/Thumb"]:hover { | ||
box-shadow: var(--shadow- | box-shadow: var(--shadow-medium); | ||
border-color: var(--border- | border-color: var(--accent-steel); | ||
} | |||
.mw-default-size::before, | |||
figure[typeof="mw:File/Thumb"]::before { | |||
content: ''; | |||
position: absolute; | |||
top: 8px; | |||
right: 8px; | |||
width: 24px; | |||
height: 3px; | |||
background: var(--accent-blue); | |||
border-radius: 2px; | |||
opacity: 0.8; | |||
} | } | ||
سطر ٦١: | سطر ٦٢: | ||
border-radius: 6px; | border-radius: 6px; | ||
overflow: hidden; | overflow: hidden; | ||
transition: var(--transition-gentle); | |||
} | |||
.mw-file-description:hover { | |||
transform: scale(1.01); | |||
} | } | ||
سطر ٦٧: | سطر ٧٣: | ||
height: auto; | height: auto; | ||
border-radius: 6px; | border-radius: 6px; | ||
filter: brightness(0. | transition: var(--transition-gentle); | ||
filter: contrast(1.08) brightness(0.96); | |||
} | |||
.mw-file-element:hover { | |||
filter: contrast(1.12) brightness(1); | |||
} | } | ||
/* | /* Caption styling */ | ||
figcaption { | figcaption { | ||
padding: 12px | padding: 16px 20px 12px; | ||
font-family: var(--sans-font); | font-family: var(--sans-font); | ||
font-size: | font-size: 14px; | ||
color: var(--text-muted); | color: var(--text-muted); | ||
text-align: center; | text-align: center; | ||
line-height: 1. | line-height: 1.5; | ||
border-top: 2px solid var(--border-elegant); | |||
margin-top: | margin-top: 12px; | ||
background: var(--background-light); | |||
} | } | ||
/* | /* Content images */ | ||
#content figure { | #content figure { | ||
margin: | margin: 32px 0; | ||
text-align: center; | text-align: center; | ||
} | } | ||
#content figure img { | |||
border-radius: 6px; | |||
} | |||
/* Different sized images */ | |||
figure.mw-halign-right { | figure.mw-halign-right { | ||
float: left; | float: left; | ||
margin: 0 0 | margin: 0 0 24px 28px; | ||
clear: left; | |||
} | } | ||
figure.mw-halign-left { | figure.mw-halign-left { | ||
float: right; | float: right; | ||
margin: 0 | margin: 0 28px 24px 0; | ||
clear: right; | |||
} | } | ||
figure.mw-halign-center { | figure.mw-halign-center { | ||
display: block; | display: block; | ||
margin: | margin: 28px auto; | ||
float: none; | float: none; | ||
clear: both; | |||
} | |||
/* Special effects for large images */ | |||
figure[typeof="mw:File/Thumb"][data-file-width]::after { | |||
content: '⌘'; | |||
position: absolute; | |||
bottom: 16px; | |||
left: 16px; | |||
font-size: 18px; | |||
color: var(--accent-blue); | |||
opacity: 0.5; | |||
text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.9); | |||
} | |||
/* Responsive images */ | |||
@media (max-width: 768px) { | |||
.mw-default-size, | |||
figure[typeof="mw:File/Thumb"] { | |||
margin: 20px 12px; | |||
padding: 12px; | |||
} | |||
figure.mw-halign-right, | |||
figure.mw-halign-left { | |||
float: none; | |||
margin: 20px auto; | |||
max-width: 100%; | |||
} | |||
.mw-file-element { | |||
max-width: 100%; | |||
height: auto; | |||
} | |||
} | |||
.vector-page-titlebar::after { | |||
content: ''; | |||
display: block; | |||
position: absolute; | |||
bottom: 0; | |||
right: 0; | |||
left: 0; | |||
height: 1px; | |||
background-color: transparent !important; | |||
} | } | ||
/* ======================== | /* ======================== | ||
Base Layout - Clean Background | |||
========================= */ | |||
body { | |||
background: var(--background-main); | |||
color: var(--text-dark); | |||
line-height: 1.75; | |||
margin: 0; | |||
padding: 0; | |||
font-size: 16px; | |||
font-family: var(--serif-font); | |||
} | |||
/* ======================== | |||
Page Header - Simple and Elegant | |||
========================= */ | ========================= */ | ||
.mw-body-header { | .mw-body-header { | ||
background: var(--background-light); | background: var(--background-light); | ||
border: | border: 2px solid var(--border-strong); | ||
border-bottom: | border-bottom: 4px solid var(--accent-steel); | ||
padding: | padding: 28px 40px; | ||
text-align: center; | text-align: center; | ||
font-family: var(--sans-font); | font-family: var(--sans-font); | ||
font-size: | font-size: 21px; | ||
color: var(--primary-color); | color: var(--primary-color); | ||
font-weight: | font-weight: 600; | ||
letter-spacing: 0. | letter-spacing: 0.8px; | ||
box-shadow: var(--shadow-gentle); | box-shadow: var(--shadow-soft); | ||
border- | position: relative; | ||
transition: var(--transition-gentle); | |||
} | |||
.mw-body-header:hover { | |||
border-bottom-color: var(--accent-blue); | |||
} | |||
.mw-body-header::after { | |||
content: '◆'; | |||
position: absolute; | |||
top: 50%; | |||
right: 28px; | |||
transform: translateY(-50%); | |||
font-size: 16px; | |||
color: var(--accent-steel); | |||
opacity: 0.8; | |||
} | } | ||
/* ======================== | /* ======================== | ||
Dropdown Menu - Clean | |||
========================= */ | ========================= */ | ||
.vector-dropdown { | .vector-dropdown { | ||
سطر ١٢٩: | سطر ٢٢٢: | ||
display: inline-block; | display: inline-block; | ||
cursor: pointer; | cursor: pointer; | ||
transition: var(--transition-gentle); | |||
} | } | ||
سطر ١٣٥: | سطر ٢٢٩: | ||
position: absolute; | position: absolute; | ||
background: var(--background-main); | background: var(--background-main); | ||
border: | border: 2px solid var(--border-strong); | ||
min-width: | min-width: 240px; | ||
border-radius: 6px; | border-radius: 6px; | ||
box-shadow: var(--shadow- | box-shadow: var(--shadow-medium); | ||
z-index: 1000; | z-index: 1000; | ||
overflow: hidden; | overflow: hidden; | ||
سطر ١٤٩: | سطر ٢٤٣: | ||
.vector-dropdown-content a { | .vector-dropdown-content a { | ||
display: block; | display: block; | ||
padding: | padding: 16px 24px; | ||
color: var(--text-dark); | color: var(--text-dark); | ||
text-decoration: none; | text-decoration: none; | ||
font-family: var(--sans-font); | font-family: var(--sans-font); | ||
font-size: | font-size: 15px; | ||
font-weight: 400; | |||
border-bottom: 1px solid var(--border-elegant); | border-bottom: 1px solid var(--border-elegant); | ||
transition: var(--transition); | transition: var(--transition-gentle); | ||
} | } | ||
سطر ١٦٣: | سطر ٢٥٨: | ||
.vector-dropdown-content a:hover { | .vector-dropdown-content a:hover { | ||
background: var(--background- | background: var(--background-contrast); | ||
color: var(--primary-color); | color: var(--primary-color); | ||
padding-right: 28px; | |||
} | } | ||
/* ======================== | /* ======================== | ||
Main Content - Clean and Readable | |||
========================= */ | ========================= */ | ||
#content { | #content { | ||
background: var(--background-main); | background: var(--background-main); | ||
border: | border: 2px solid var(--border-elegant); | ||
border-right: | border-right: 5px solid var(--accent-slate); | ||
padding: | padding: 56px 64px; | ||
border-radius: | border-radius: 8px; | ||
font-family: var(--serif-font); | font-family: var(--serif-font); | ||
font-size: 17px; | font-size: 17px; | ||
color: var(--text-dark); | color: var(--text-dark); | ||
box-shadow: var(--shadow- | box-shadow: var(--shadow-soft); | ||
direction: rtl; | direction: rtl; | ||
margin: | margin: 32px auto; | ||
position: relative; | |||
transition: var(--transition-gentle); | |||
} | |||
#content:hover { | |||
box-shadow: var(--shadow-medium); | |||
border-right-color: var(--accent-blue); | |||
} | |||
#content::after { | |||
content: '◉'; | |||
position: absolute; | |||
top: 24px; | |||
right: 28px; | |||
font-size: 20px; | |||
color: var(--accent-steel); | |||
opacity: 0.6; | |||
} | } | ||
/* ======================== | /* ======================== | ||
Headings - Elegant and Readable | |||
========================= */ | ========================= */ | ||
#content h1 { | #content h1 { | ||
color: var(--primary-color); | color: var(--primary-color); | ||
text-align: center; | text-align: center; | ||
font-size: 2. | font-size: 2.1rem; | ||
margin-bottom: 40px; | margin-bottom: 40px; | ||
font-weight: | font-weight: 700; | ||
padding-bottom: | padding-bottom: 20px; | ||
position: relative; | position: relative; | ||
border-bottom: 3px solid var(--border-strong); | |||
} | } | ||
سطر ٢٠٣: | سطر ٣١٤: | ||
content: ''; | content: ''; | ||
position: absolute; | position: absolute; | ||
bottom: - | bottom: -3px; | ||
left: 50%; | left: 50%; | ||
transform: translateX(-50%); | transform: translateX(-50%); | ||
width: | width: 100px; | ||
height: | height: 3px; | ||
background: var(--accent- | background: var(--accent-blue); | ||
} | } | ||
#content h2 { | #content h2 { | ||
color: var(--secondary-color); | color: var(--secondary-color); | ||
font-weight: | font-weight: 600; | ||
font-size: 1.5rem; | font-size: 1.5rem; | ||
border-bottom: | border-bottom: 2px solid var(--border-strong); | ||
padding-bottom: | padding-bottom: 12px; | ||
margin-bottom: | margin-bottom: 24px; | ||
margin-top: 40px; | margin-top: 40px; | ||
transition: var(--transition-gentle); | |||
} | } | ||
#content h3 { | #content h2:hover { | ||
color: var(--primary-color); | |||
border-bottom-color: var(--accent-slate); | |||
} | |||
#content h3, #content h4, #content h5, #content h6 { | |||
color: var(--text-dark); | color: var(--text-dark); | ||
font-weight: 500; | font-weight: 500; | ||
margin-top: 28px; | |||
margin-top: | |||
margin-bottom: 16px; | margin-bottom: 16px; | ||
transition: var(--transition-gentle); | |||
} | } | ||
#content | #content h3 { | ||
font-size: 1.3rem; | |||
font- | border-bottom: 1px solid var(--border-elegant); | ||
padding-bottom: 8px; | |||
} | } | ||
#content h4 { font-size: 1. | #content h4 { | ||
font-size: 1.15rem; | |||
color: var(--secondary-color); | |||
} | |||
/* ======================== | /* ======================== | ||
Text and Links | |||
========================= */ | ========================= */ | ||
#content p { | #content p { | ||
سطر ٢٥١: | سطر ٣٦٨: | ||
#content a { | #content a { | ||
color: var(--accent- | color: var(--accent-blue); | ||
text-decoration: none; | text-decoration: none; | ||
border-bottom: 1px solid | border-bottom: 1px solid var(--accent-slate); | ||
transition: var(--transition); | padding-bottom: 2px; | ||
transition: var(--transition-gentle); | |||
font-weight: 500; | font-weight: 500; | ||
} | } | ||
سطر ٢٦٠: | سطر ٣٧٨: | ||
#content a:hover { | #content a:hover { | ||
color: var(--primary-color); | color: var(--primary-color); | ||
border-bottom-color: var(--accent- | border-bottom-color: var(--accent-blue); | ||
border-bottom-width: 2px; | |||
} | } | ||
/* ======================== | /* ======================== | ||
Categories - Clean and Beautiful | |||
========================= */ | ========================= */ | ||
#catlinks { | #catlinks { | ||
background: var(--background-light); | background: var(--background-light); | ||
border: | border: 2px solid var(--border-strong); | ||
border-top: | border-top: 4px solid var(--accent-slate); | ||
padding: | padding: 28px 32px; | ||
border-radius: 8px; | border-radius: 8px; | ||
margin: | margin-top: 44px; | ||
font-family: var(--sans-font); | font-family: var(--sans-font); | ||
font-size: | font-size: 15px; | ||
box-shadow: var(--shadow- | box-shadow: var(--shadow-soft); | ||
color: var(--text-muted); | color: var(--text-muted); | ||
margin-left: auto; | |||
margin-right: auto; | |||
position: relative; | |||
transition: var(--transition-gentle); | |||
} | |||
#catlinks:hover { | |||
border-top-color: var(--accent-blue); | |||
box-shadow: var(--shadow-medium); | |||
} | } | ||
سطر ٢٨٣: | سطر ٤١٠: | ||
content: 'التصنيفات'; | content: 'التصنيفات'; | ||
display: block; | display: block; | ||
font-weight: | font-weight: 600; | ||
color: var(--primary-color); | color: var(--primary-color); | ||
margin-bottom: | margin-bottom: 20px; | ||
font-size: | font-size: 17px; | ||
text-align: center; | text-align: center; | ||
border-bottom: 2px solid var(--border-strong); | |||
border-bottom: | padding-bottom: 12px; | ||
} | } | ||
#catlinks a { | #catlinks a { | ||
color: var(--text-dark); | color: var(--text-dark); | ||
font-weight: | font-weight: 500; | ||
text-decoration: none; | text-decoration: none; | ||
padding: | padding: 10px 20px; | ||
margin: | margin: 8px 10px 8px 0; | ||
background: var(--background-main); | background: var(--background-main); | ||
border: | border: 2px solid var(--border-elegant); | ||
border-radius: | border-radius: 6px; | ||
display: inline-block; | display: inline-block; | ||
transition: var(--transition); | transition: var(--transition-gentle); | ||
font-size: | font-size: 14px; | ||
font-family: var(--sans-font); | |||
} | } | ||
#catlinks a:hover { | #catlinks a:hover { | ||
color: var(--primary-color); | color: var(--primary-color); | ||
background: var(--background- | background: var(--background-contrast); | ||
border-color: var(--accent- | border-color: var(--accent-steel); | ||
transform: translateY(-2px); | |||
box-shadow: 0 4px 12px rgba(15, 20, 25, 0.15); | |||
} | } | ||
/* ======================== | /* ======================== | ||
Responsive Design | |||
========================= */ | ========================= */ | ||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
#content { | #content { | ||
margin: | margin: 24px 16px; | ||
padding: | padding: 40px 28px; | ||
} | } | ||
.mw-body-header { | .mw-body-header { | ||
padding: 24px 28px; | |||
padding: | font-size: 19px; | ||
font-size: | |||
} | } | ||
#catlinks { | #catlinks { | ||
margin: | margin: 28px 16px; | ||
padding: | padding: 24px 28px; | ||
} | } | ||
#content h1 { | #content h1 { | ||
font-size: 1.8rem; | font-size: 1.8rem; | ||
} | } | ||
} | } | ||
/* ======================== | /* ======================== | ||
Focus and Accessibility | |||
========================= */ | ========================= */ | ||
a:focus, .vector-dropdown:focus, #catlinks a:focus { | a:focus, .vector-dropdown:focus, #catlinks a:focus { | ||
outline: | outline: 3px solid var(--accent-blue); | ||
outline-offset: 2px; | outline-offset: 2px; | ||
box-shadow: 0 0 0 4px rgba(66, 153, 225, 0.25); | |||
} | } | ||
/* ======================== | /* ======================== | ||
Hide Unwanted Elements | |||
========================= */ | ========================= */ | ||
.printfooter, | |||
.vector-menu h3 { | |||
display: none; | |||
} | |||
/* Custom scrollbar */ | |||
::-webkit-scrollbar { | ::-webkit-scrollbar { | ||
width: | width: 12px; | ||
} | } | ||
::-webkit-scrollbar-track { | ::-webkit-scrollbar-track { | ||
background: var(--background- | background: var(--background-contrast); | ||
border-radius: 6px; | |||
} | } | ||
::-webkit-scrollbar-thumb { | ::-webkit-scrollbar-thumb { | ||
background: var(-- | background: var(--accent-steel); | ||
border-radius: | border-radius: 6px; | ||
border: 2px solid var(--background-main); | |||
} | } | ||
::-webkit-scrollbar-thumb:hover { | ::-webkit-scrollbar-thumb:hover { | ||
background: var(--accent- | background: var(--accent-blue); | ||
} | } | ||
/* ======================== | /* ======================== | ||
Print Styles | |||
========================= */ | ========================= */ | ||
@media print { | @media print { | ||
body, #content | body, #content { | ||
background: white !important; | background: white !important; | ||
box-shadow: none !important; | box-shadow: none !important; | ||
border | color: black !important; | ||
} | |||
.mw-body-header::after, #content::after { | |||
display: none; | |||
} | |||
#catlinks { | |||
border: 2px solid #333; | |||
} | |||
#content a { | |||
color: #000 !important; | |||
border-bottom: 1px solid #333; | |||
} | } | ||
} | } |
مراجعة ١٢:١٦، ٢٢ يوليو ٢٠٢٥
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Cairo:wght@300;400;500;600;700&family=Scheherazade+New:wght@400;500;600;700&display=swap');
:root {
/* Cold, elegant color palette with high contrast */
--primary-color: #1a2332;
--secondary-color: #2d3e56;
--text-dark: #0f1419;
--text-muted: #4a5568;
--accent-steel: #718096;
--accent-blue: #4299e1;
--accent-slate: #64748b;
--background-main: #ffffff;
--background-light: #f8fafc;
--background-contrast: #e2e8f0;
--border-elegant: #cbd5e0;
--border-strong: #94a3b8;
--shadow-soft: 0 2px 12px rgba(15, 20, 25, 0.12);
--shadow-medium: 0 4px 20px rgba(15, 20, 25, 0.18);
--transition-gentle: 0.3s ease;
--serif-font: 'Scheherazade New', 'Amiri', serif;
--sans-font: 'Cairo', sans-serif;
}
/* ========================
Image Styling - Clean and Elegant
========================= */
.mw-default-size,
figure[typeof="mw:File/Thumb"] {
background: var(--background-main);
border: 2px solid var(--border-elegant);
border-radius: 8px;
box-shadow: var(--shadow-soft);
overflow: hidden;
margin: 25px auto;
padding: 16px;
transition: var(--transition-gentle);
position: relative;
max-width: fit-content;
}
.mw-default-size:hover,
figure[typeof="mw:File/Thumb"]:hover {
box-shadow: var(--shadow-medium);
border-color: var(--accent-steel);
}
.mw-default-size::before,
figure[typeof="mw:File/Thumb"]::before {
content: '';
position: absolute;
top: 8px;
right: 8px;
width: 24px;
height: 3px;
background: var(--accent-blue);
border-radius: 2px;
opacity: 0.8;
}
.mw-file-description {
display: block;
border-radius: 6px;
overflow: hidden;
transition: var(--transition-gentle);
}
.mw-file-description:hover {
transform: scale(1.01);
}
.mw-file-element {
width: 100%;
height: auto;
border-radius: 6px;
transition: var(--transition-gentle);
filter: contrast(1.08) brightness(0.96);
}
.mw-file-element:hover {
filter: contrast(1.12) brightness(1);
}
/* Caption styling */
figcaption {
padding: 16px 20px 12px;
font-family: var(--sans-font);
font-size: 14px;
color: var(--text-muted);
text-align: center;
line-height: 1.5;
border-top: 2px solid var(--border-elegant);
margin-top: 12px;
background: var(--background-light);
}
/* Content images */
#content figure {
margin: 32px 0;
text-align: center;
}
#content figure img {
border-radius: 6px;
}
/* Different sized images */
figure.mw-halign-right {
float: left;
margin: 0 0 24px 28px;
clear: left;
}
figure.mw-halign-left {
float: right;
margin: 0 28px 24px 0;
clear: right;
}
figure.mw-halign-center {
display: block;
margin: 28px auto;
float: none;
clear: both;
}
/* Special effects for large images */
figure[typeof="mw:File/Thumb"][data-file-width]::after {
content: '⌘';
position: absolute;
bottom: 16px;
left: 16px;
font-size: 18px;
color: var(--accent-blue);
opacity: 0.5;
text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.9);
}
/* Responsive images */
@media (max-width: 768px) {
.mw-default-size,
figure[typeof="mw:File/Thumb"] {
margin: 20px 12px;
padding: 12px;
}
figure.mw-halign-right,
figure.mw-halign-left {
float: none;
margin: 20px auto;
max-width: 100%;
}
.mw-file-element {
max-width: 100%;
height: auto;
}
}
.vector-page-titlebar::after {
content: '';
display: block;
position: absolute;
bottom: 0;
right: 0;
left: 0;
height: 1px;
background-color: transparent !important;
}
/* ========================
Base Layout - Clean Background
========================= */
body {
background: var(--background-main);
color: var(--text-dark);
line-height: 1.75;
margin: 0;
padding: 0;
font-size: 16px;
font-family: var(--serif-font);
}
/* ========================
Page Header - Simple and Elegant
========================= */
.mw-body-header {
background: var(--background-light);
border: 2px solid var(--border-strong);
border-bottom: 4px solid var(--accent-steel);
padding: 28px 40px;
text-align: center;
font-family: var(--sans-font);
font-size: 21px;
color: var(--primary-color);
font-weight: 600;
letter-spacing: 0.8px;
box-shadow: var(--shadow-soft);
position: relative;
transition: var(--transition-gentle);
}
.mw-body-header:hover {
border-bottom-color: var(--accent-blue);
}
.mw-body-header::after {
content: '◆';
position: absolute;
top: 50%;
right: 28px;
transform: translateY(-50%);
font-size: 16px;
color: var(--accent-steel);
opacity: 0.8;
}
/* ========================
Dropdown Menu - Clean
========================= */
.vector-dropdown {
position: relative;
display: inline-block;
cursor: pointer;
transition: var(--transition-gentle);
}
.vector-dropdown-content {
display: none;
position: absolute;
background: var(--background-main);
border: 2px solid var(--border-strong);
min-width: 240px;
border-radius: 6px;
box-shadow: var(--shadow-medium);
z-index: 1000;
overflow: hidden;
}
.vector-dropdown:hover .vector-dropdown-content {
display: block;
}
.vector-dropdown-content a {
display: block;
padding: 16px 24px;
color: var(--text-dark);
text-decoration: none;
font-family: var(--sans-font);
font-size: 15px;
font-weight: 400;
border-bottom: 1px solid var(--border-elegant);
transition: var(--transition-gentle);
}
.vector-dropdown-content a:last-child {
border-bottom: none;
}
.vector-dropdown-content a:hover {
background: var(--background-contrast);
color: var(--primary-color);
padding-right: 28px;
}
/* ========================
Main Content - Clean and Readable
========================= */
#content {
background: var(--background-main);
border: 2px solid var(--border-elegant);
border-right: 5px solid var(--accent-slate);
padding: 56px 64px;
border-radius: 8px;
font-family: var(--serif-font);
font-size: 17px;
color: var(--text-dark);
box-shadow: var(--shadow-soft);
direction: rtl;
margin: 32px auto;
position: relative;
transition: var(--transition-gentle);
}
#content:hover {
box-shadow: var(--shadow-medium);
border-right-color: var(--accent-blue);
}
#content::after {
content: '◉';
position: absolute;
top: 24px;
right: 28px;
font-size: 20px;
color: var(--accent-steel);
opacity: 0.6;
}
/* ========================
Headings - Elegant and Readable
========================= */
#content h1 {
color: var(--primary-color);
text-align: center;
font-size: 2.1rem;
margin-bottom: 40px;
font-weight: 700;
padding-bottom: 20px;
position: relative;
border-bottom: 3px solid var(--border-strong);
}
#content h1::after {
content: '';
position: absolute;
bottom: -3px;
left: 50%;
transform: translateX(-50%);
width: 100px;
height: 3px;
background: var(--accent-blue);
}
#content h2 {
color: var(--secondary-color);
font-weight: 600;
font-size: 1.5rem;
border-bottom: 2px solid var(--border-strong);
padding-bottom: 12px;
margin-bottom: 24px;
margin-top: 40px;
transition: var(--transition-gentle);
}
#content h2:hover {
color: var(--primary-color);
border-bottom-color: var(--accent-slate);
}
#content h3, #content h4, #content h5, #content h6 {
color: var(--text-dark);
font-weight: 500;
margin-top: 28px;
margin-bottom: 16px;
transition: var(--transition-gentle);
}
#content h3 {
font-size: 1.3rem;
border-bottom: 1px solid var(--border-elegant);
padding-bottom: 8px;
}
#content h4 {
font-size: 1.15rem;
color: var(--secondary-color);
}
/* ========================
Text and Links
========================= */
#content p {
margin-bottom: 1.6em;
text-align: justify;
line-height: 1.8;
color: var(--text-dark);
}
#content a {
color: var(--accent-blue);
text-decoration: none;
border-bottom: 1px solid var(--accent-slate);
padding-bottom: 2px;
transition: var(--transition-gentle);
font-weight: 500;
}
#content a:hover {
color: var(--primary-color);
border-bottom-color: var(--accent-blue);
border-bottom-width: 2px;
}
/* ========================
Categories - Clean and Beautiful
========================= */
#catlinks {
background: var(--background-light);
border: 2px solid var(--border-strong);
border-top: 4px solid var(--accent-slate);
padding: 28px 32px;
border-radius: 8px;
margin-top: 44px;
font-family: var(--sans-font);
font-size: 15px;
box-shadow: var(--shadow-soft);
color: var(--text-muted);
margin-left: auto;
margin-right: auto;
position: relative;
transition: var(--transition-gentle);
}
#catlinks:hover {
border-top-color: var(--accent-blue);
box-shadow: var(--shadow-medium);
}
#catlinks::before {
content: 'التصنيفات';
display: block;
font-weight: 600;
color: var(--primary-color);
margin-bottom: 20px;
font-size: 17px;
text-align: center;
border-bottom: 2px solid var(--border-strong);
padding-bottom: 12px;
}
#catlinks a {
color: var(--text-dark);
font-weight: 500;
text-decoration: none;
padding: 10px 20px;
margin: 8px 10px 8px 0;
background: var(--background-main);
border: 2px solid var(--border-elegant);
border-radius: 6px;
display: inline-block;
transition: var(--transition-gentle);
font-size: 14px;
font-family: var(--sans-font);
}
#catlinks a:hover {
color: var(--primary-color);
background: var(--background-contrast);
border-color: var(--accent-steel);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(15, 20, 25, 0.15);
}
/* ========================
Responsive Design
========================= */
@media (max-width: 768px) {
#content {
margin: 24px 16px;
padding: 40px 28px;
}
.mw-body-header {
padding: 24px 28px;
font-size: 19px;
}
#catlinks {
margin: 28px 16px;
padding: 24px 28px;
}
#content h1 {
font-size: 1.8rem;
}
}
/* ========================
Focus and Accessibility
========================= */
a:focus, .vector-dropdown:focus, #catlinks a:focus {
outline: 3px solid var(--accent-blue);
outline-offset: 2px;
box-shadow: 0 0 0 4px rgba(66, 153, 225, 0.25);
}
/* ========================
Hide Unwanted Elements
========================= */
.printfooter,
.vector-menu h3 {
display: none;
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 12px;
}
::-webkit-scrollbar-track {
background: var(--background-contrast);
border-radius: 6px;
}
::-webkit-scrollbar-thumb {
background: var(--accent-steel);
border-radius: 6px;
border: 2px solid var(--background-main);
}
::-webkit-scrollbar-thumb:hover {
background: var(--accent-blue);
}
/* ========================
Print Styles
========================= */
@media print {
body, #content {
background: white !important;
box-shadow: none !important;
color: black !important;
}
.mw-body-header::after, #content::after {
display: none;
}
#catlinks {
border: 2px solid #333;
}
#content a {
color: #000 !important;
border-bottom: 1px solid #333;
}
}