ميدياويكي:Common.css
المظهر
ملاحظة: بعد النشر، أنت قد تحتاج إلى إفراغ الكاش الخاص بمتصفحك لرؤية التغييرات.
- فايرفوكس / سافاري: أمسك Shift أثناء ضغط Reload، أو اضغط على إما Ctrl-F5 أو Ctrl-R (⌘-R على ماك)
- جوجل كروم: اضغط Ctrl-Shift-R (⌘-Shift-R على ماك)
- إنترنت إكسبلورر/إيدج: أمسك Ctrl أثناء ضغط Refresh، أو اضغط Ctrl-F5
- أوبرا: اضغط Ctrl-F5.
@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;
}
}