ميدياويكي: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&display=swap');
:root {
--primary-color: #1a472a;
--secondary-color: #2d5a3d;
--tertiary-color: #4a7c59;
--accent-gold: #c9a961;
--accent-green: #5d8f47;
--background-white: #fefefe;
--background-cream: #faf9f7;
--text-dark: #2c2c2c;
--text-muted: #666666;
--border-elegant: #e8e5e0;
--border-gold: #d4b76a;
--shadow-subtle: 0 2px 12px rgba(26, 71, 42, 0.1);
--shadow-elevated: 0 6px 24px rgba(26, 71, 42, 0.15);
--transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
--serif-font: 'Amiri', 'Times New Roman', serif;
--sans-font: 'Cairo', 'Segoe UI', sans-serif;
}
/* ========================
Base Styling
========================= */
body {
background: linear-gradient(135deg, #f8f7f4 0%, #f2f0eb 100%);
color: var(--text-dark);
line-height: 1.7;
margin: 0;
padding: 0;
font-size: 16px;
font-family: var(--serif-font);
}
/* ========================
Header Styling - Sacred & Professional
========================= */
.mw-body-header {
background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--tertiary-color) 100%);
border-bottom: 3px solid var(--accent-gold);
padding: 24px 40px;
text-align: center;
font-family: var(--sans-font);
font-size: 20px;
color: var(--background-white);
font-weight: 600;
letter-spacing: 1px;
box-shadow: var(--shadow-elevated);
position: relative;
overflow: hidden;
}
.mw-body-header::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg,
transparent 0%,
var(--accent-gold) 20%,
#f4e4a6 40%,
var(--accent-gold) 60%,
var(--accent-green) 80%,
transparent 100%);
animation: shimmer 3s ease-in-out infinite;
}
.mw-body-header::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 200px;
height: 200px;
background: radial-gradient(circle, rgba(201, 169, 97, 0.1) 0%, transparent 70%);
transform: translate(-50%, -50%);
pointer-events: none;
}
@keyframes shimmer {
0%, 100% { opacity: 0.7; }
50% { opacity: 1; }
}
/* ========================
Dropdown Menu - Enhanced
========================= */
.vector-dropdown {
position: relative;
display: inline-block;
cursor: pointer;
}
.vector-dropdown-content {
display: none;
position: absolute;
background: var(--background-white);
min-width: 220px;
border: 1px solid var(--border-gold);
border-radius: 8px;
box-shadow: var(--shadow-elevated);
z-index: 1000;
overflow: hidden;
backdrop-filter: blur(10px);
}
.vector-dropdown:hover .vector-dropdown-content {
display: block;
animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-10px) scale(0.95);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.vector-dropdown-content a {
display: block;
padding: 14px 18px;
color: var(--text-dark);
text-decoration: none;
font-family: var(--sans-font);
font-size: 14px;
border-bottom: 1px solid var(--border-elegant);
transition: var(--transition-smooth);
position: relative;
}
.vector-dropdown-content a:last-child {
border-bottom: none;
}
.vector-dropdown-content a:hover {
background: linear-gradient(90deg, var(--background-cream) 0%, #f5f3ef 100%);
padding-left: 24px;
color: var(--primary-color);
}
.vector-dropdown-content a::before {
content: '';
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 3px;
background: var(--accent-gold);
transform: scaleY(0);
transition: var(--transition-smooth);
}
.vector-dropdown-content a:hover::before {
transform: scaleY(1);
}
/* ========================
Content Styling - Scholarly & Sacred
========================= */
#content {
background: var(--background-white);
border: 1px solid var(--border-elegant);
padding: 50px 60px;
border-radius: 12px;
font-family: var(--serif-font);
font-size: 17px;
color: var(--text-dark);
box-shadow: var(--shadow-elevated);
direction: rtl;
margin: 30px auto;
position: relative;
max-width: 1200px;
}
#content::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 6px;
height: 100%;
background: linear-gradient(180deg,
var(--accent-gold) 0%,
var(--accent-green) 50%,
var(--primary-color) 100%);
border-radius: 0 6px 6px 0;
}
#content::after {
content: '';
position: absolute;
top: 20px;
right: 20px;
width: 60px;
height: 60px;
background: radial-gradient(circle, rgba(201, 169, 97, 0.1) 0%, transparent 70%);
border-radius: 50%;
pointer-events: none;
}
#content h2 {
color: var(--accent-green);
font-weight: 700;
border-bottom: 2px solid var(--border-gold);
padding-bottom: 8px;
margin-bottom: 20px;
}
#content h1 {
color: var(--primary-color);
text-align: center;
font-size: 2rem;
margin-bottom: 30px;
position: relative;
}
#content h1::after {
content: '';
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
width: 80px;
height: 3px;
background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}
#content h1, #content h3, #content h4, #content h5, #content h6 {
font-weight: 700;
font-size: 1.4rem !important;
margin-top: 2em;
margin-bottom: 0.8em;
line-height: 1.3;
color: var(--secondary-color);
}
#content h1 { font-size: 28px; }
#content h2 { font-size: 24px; }
#content h3 { font-size: 20px; }
#content p {
margin-bottom: 1.4em;
text-align: justify;
line-height: 1.8;
}
#content a {
color: var(--tertiary-color);
text-decoration: underline;
text-decoration-color: var(--accent-gold);
text-underline-offset: 3px;
transition: var(--transition-smooth);
font-weight: 500;
}
#content a:hover {
color: var(--primary-color);
text-decoration-color: var(--accent-green);
text-shadow: 0 1px 2px rgba(26, 71, 42, 0.1);
}
/* ========================
Categories Styling - Islamic Design
========================= */
#catlinks {
background: linear-gradient(135deg, var(--background-cream) 0%, #f4f2ee 100%);
border: 2px solid var(--border-gold);
padding: 25px 30px;
border-radius: 12px;
margin-top: 40px;
font-family: var(--sans-font);
font-size: 14px;
box-shadow: var(--shadow-subtle);
color: var(--text-muted);
margin-left: auto;
margin-right: auto;
position: relative;
}
#catlinks::before {
content: 'التصنيفات';
display: block;
font-weight: 700;
color: var(--primary-color);
margin-bottom: 16px;
font-size: 16px;
letter-spacing: 0.5px;
text-align: center;
position: relative;
}
#catlinks::after {
content: '';
position: absolute;
top: 10px;
right: 10px;
width: 30px;
height: 30px;
background: radial-gradient(circle, rgba(201, 169, 97, 0.2) 0%, transparent 70%);
border-radius: 50%;
}
#catlinks a {
color: var(--text-dark);
font-weight: 500;
text-decoration: none;
padding: 10px 18px;
margin: 6px 8px 6px 0;
background: linear-gradient(135deg, var(--background-white) 0%, #fcfbf9 100%);
border: 2px solid var(--border-elegant);
border-radius: 25px;
display: inline-block;
transition: var(--transition-smooth);
font-size: 13px;
position: relative;
overflow: hidden;
font-family: var(--sans-font);
}
#catlinks a::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.15), transparent);
transition: var(--transition-smooth);
}
#catlinks a:hover {
background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
color: var(--background-white);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(26, 71, 42, 0.25);
border-color: var(--accent-gold);
}
#catlinks a:hover::before {
left: 100%;
}
/* ========================
Responsive Design
========================= */
@media (max-width: 768px) {
#content {
margin: 20px 15px;
padding: 30px 25px;
}
.mw-body-header {
padding: 20px 25px;
font-size: 18px;
}
#catlinks {
margin: 25px 15px;
padding: 20px 25px;
}
#content h1 {
font-size: 1.5rem;
}
}
/* ========================
Accessibility & Print
========================= */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
@media print {
body {
background: white;
}
.mw-body-header, #catlinks {
display: none;
}
#content {
box-shadow: none;
border: 1px solid #ccc;
padding: 20px 0;
}
}
/* Focus states for accessibility */
a:focus, .vector-dropdown:focus {
outline: 3px solid var(--accent-gold);
outline-offset: 2px;
}
/* ========================
Utility Classes
========================= */
.printfooter,
.vector-menu h3 {
display: none;
}
/* Enhanced scrollbar */
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background: var(--border-elegant);
border-radius: 5px;
}
::-webkit-scrollbar-thumb {
background: linear-gradient(180deg, var(--tertiary-color), var(--primary-color));
border-radius: 5px;
border: 1px solid var(--border-elegant);
}
::-webkit-scrollbar-thumb:hover {
background: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
}
/* ========================
Islamic Geometric Patterns (Subtle)
========================= */
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image:
radial-gradient(circle at 25% 25%, rgba(201, 169, 97, 0.02) 0%, transparent 25%),
radial-gradient(circle at 75% 75%, rgba(93, 143, 71, 0.02) 0%, transparent 25%);
pointer-events: none;
z-index: -1;
}