الفرق بين المراجعتين لصفحة: «ميدياويكي:Common.css»
المظهر
لا ملخص تعديل |
لا ملخص تعديل وسم: مسترجع |
||
سطر ١: | سطر ١: | ||
@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'); | @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'); | ||
/* ==== | /* ======================== | ||
. | ENHANCED CSS VARIABLES | ||
========================= */ | |||
:root { | |||
/* Primary Islamic-inspired color palette */ | |||
--primary-emerald: #1a5d4a; | |||
--secondary-sage: #2d6b5c; | |||
--tertiary-forest: #3a4739; | |||
/* Accent colors */ | |||
--gold-primary: #d4af37; | |||
--gold-light: #f4e4a6; | |||
--gold-dark: #b8941f; | |||
/* Sage and green tones */ | |||
--sage-light: #a8c09a; | |||
--sage-medium: #8fa68e; | |||
--sage-dark: #6b8e5a; | |||
/* Neutral colors */ | |||
--text-primary: #2c3e30; | |||
--text-secondary: #4a5a4a; | |||
--text-muted: #6b7b6b; | |||
--text-light: #8a9a8a; | |||
/* Background colors */ | |||
--bg-main: #fefefe; | |||
--bg-secondary: #fafafa; | |||
--bg-accent: #f5f7f5; | |||
--bg-overlay: rgba(255, 255, 255, 0.95); | |||
/* Border colors */ | |||
--border-light: #e8ebe8; | |||
--border-medium: #d4d7d4; | |||
--border-accent: rgba(212, 175, 55, 0.3); | |||
/* Shadows */ | |||
--shadow-subtle: 0 2px 8px rgba(42, 62, 48, 0.06); | |||
--shadow-soft: 0 4px 16px rgba(42, 62, 48, 0.08); | |||
--shadow-medium: 0 8px 24px rgba(42, 62, 48, 0.12); | |||
--shadow-strong: 0 12px 32px rgba(42, 62, 48, 0.16); | |||
--shadow-glow: 0 0 20px rgba(212, 175, 55, 0.15); | |||
/* Typography */ | |||
--font-serif: 'Scheherazade New', 'Amiri', serif; | |||
--font-sans: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif; | |||
/* Transitions */ | |||
--transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1); | |||
--transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |||
--transition-gentle: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); | |||
/* Border radius */ | |||
--radius-sm: 4px; | |||
--radius-md: 8px; | |||
--radius-lg: 12px; | |||
--radius-xl: 16px; | |||
--radius-full: 50px; | |||
} | } | ||
/* | |||
/* ======================== | |||
MODERN HEADER DESIGN | |||
========================= */ | |||
.vector-header-container { | .vector-header-container { | ||
background: | background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-accent) 100%) !important; | ||
border-bottom: 1px solid | border-bottom: 1px solid var(--border-light); | ||
position: | backdrop-filter: blur(10px); | ||
position: sticky; | |||
top: 0; | |||
z-index: 1000; | z-index: 1000; | ||
box-shadow: var(--shadow-subtle); | |||
} | } | ||
.vector-header { | .vector-header { | ||
padding: | padding: 1rem 2rem; | ||
display: flex !important; | display: flex !important; | ||
align-items: center !important; | align-items: center !important; | ||
justify-content: space-between !important; | justify-content: space-between !important; | ||
max-width: 1400px; | |||
margin: 0 auto; | |||
gap: 2rem; | |||
max-width: | min-height: 80px; | ||
gap: | |||
} | } | ||
/* Enhanced Logo */ | |||
/* Logo | |||
.mw-logo { | .mw-logo { | ||
display: flex; | display: flex; | ||
سطر ٧١: | سطر ٩١: | ||
gap: 1rem; | gap: 1rem; | ||
text-decoration: none; | text-decoration: none; | ||
transition: | transition: var(--transition-smooth); | ||
} | } | ||
.mw-logo:hover { | .mw-logo:hover { | ||
transform: scale(1. | transform: scale(1.02); | ||
} | } | ||
.mw-logo-icon { | .mw-logo-icon { | ||
height: 5rem !important; | |||
filter: drop-shadow(var(--shadow-subtle)); | |||
transition: var(--transition-smooth); | |||
} | |||
.mw-logo:hover .mw-logo-icon { | |||
filter: drop-shadow(var(--shadow-soft)); | |||
} | } | ||
.mw-logo-wordmark { | .mw-logo-wordmark { | ||
color: var(--primary-emerald) !important; | |||
font-size: 1.75rem !important; | |||
font-weight: 700 !important; | |||
font-family: var(--font-sans) !important; | |||
letter-spacing: 0.5px !important; | |||
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important; | |||
. | |||
} | } | ||
/* Enhanced Search */ | |||
.cdx-search-input { | .cdx-search-input { | ||
border-radius: | border-radius: var(--radius-full) !important; | ||
overflow: hidden !important; | overflow: hidden !important; | ||
box-shadow: | box-shadow: var(--shadow-soft) !important; | ||
backdrop-filter: blur(10px); | |||
} | } | ||
.cdx-text-input { | .cdx-text-input { | ||
background: | background: var(--bg-overlay) !important; | ||
border: 2px solid var(--border-medium) !important; | |||
transition: var(--transition-smooth) !important; | |||
} | |||
.cdx-text-input:focus-within { | |||
border-color: var(--gold-primary) !important; | |||
box-shadow: var(--shadow-glow) !important; | |||
} | } | ||
سطر ١٢٥: | سطر ١٣٩: | ||
background: transparent !important; | background: transparent !important; | ||
border: none !important; | border: none !important; | ||
padding: | padding: 1rem 1.5rem 1rem 3.5rem !important; | ||
font-size: 1rem !important; | font-size: 1rem !important; | ||
color: | color: var(--text-primary) !important; | ||
font-family: var(--font-sans) !important; | |||
} | } | ||
.cdx-text-input__input::placeholder { | .cdx-text-input__input::placeholder { | ||
color: | color: var(--text-muted) !important; | ||
font-weight: 400 !important; | |||
} | } | ||
.cdx-search-input__end-button { | .cdx-search-input__end-button { | ||
background: linear-gradient(135deg, | background: linear-gradient(135deg, var(--sage-medium), var(--sage-dark)) !important; | ||
border: none !important; | border: none !important; | ||
color: white !important; | color: white !important; | ||
padding: | padding: 1rem 2rem !important; | ||
font-weight: 600 !important; | font-weight: 600 !important; | ||
transition: | transition: var(--transition-smooth) !important; | ||
} | } | ||
.cdx-search-input__end-button:hover { | .cdx-search-input__end-button:hover { | ||
background: linear-gradient(135deg, | background: linear-gradient(135deg, var(--sage-dark), var(--primary-emerald)) !important; | ||
transform: | transform: translateY(-1px) !important; | ||
box-shadow: var(--shadow-medium) !important; | |||
} | } | ||
/* | /* ======================== | ||
ENHANCED BODY AND LAYOUT | |||
========================= */ | |||
body { | |||
background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-accent) 100%); | |||
background-attachment: fixed; | |||
color: var(--text-primary); | |||
font-family: var(--font-serif); | |||
font-size: 16px; | |||
line-height: 1.7; | |||
margin: 0; | |||
padding: 0; | |||
} | } | ||
/* Add subtle pattern overlay */ | |||
body::before { | |||
content: ''; | |||
position: fixed; | |||
top: 0; | |||
left: 0; | |||
width: 100%; | |||
height: 100%; | |||
background-image: | |||
radial-gradient(circle at 25% 25%, rgba(212, 175, 55, 0.03) 0%, transparent 50%), | |||
radial-gradient(circle at 75% 75%, rgba(143, 166, 142, 0.03) 0%, transparent 50%); | |||
pointer-events: none; | |||
z-index: -1; | |||
} | } | ||
/* ======================== | |||
ENHANCED CONTENT AREA | |||
border- | ========================= */ | ||
#content { | |||
box-shadow: | background: var(--bg-overlay); | ||
backdrop-filter: blur(20px); | |||
border: 1px solid var(--border-light); | |||
border-right: 4px solid var(--sage-medium); | |||
padding: 3rem 4rem; | |||
border-radius: var(--radius-xl); | |||
box-shadow: var(--shadow-medium); | |||
margin: 2rem auto; | |||
max-width: 1200px; | |||
position: relative; | |||
transition: var(--transition-gentle); | |||
overflow: hidden; | |||
} | } | ||
#content::before { | |||
content: ''; | |||
background: linear-gradient( | position: absolute; | ||
top: 0; | |||
left: 0; | |||
right: 0; | |||
height: 2px; | |||
background: linear-gradient(90deg, var(--gold-primary), var(--sage-medium), var(--gold-primary)); | |||
opacity: 0.7; | |||
} | } | ||
#content:hover { | |||
box-shadow: var(--shadow-strong); | |||
border-right-color: var(--gold-primary); | |||
transform: translateY(-2px); | |||
} | } | ||
/* | /* ======================== | ||
ENHANCED TYPOGRAPHY | |||
========================= */ | |||
#content h1 { | |||
color: var(--primary-emerald); | |||
text-align: center; | |||
font-size: 2.5rem; | |||
font-weight: 700; | |||
margin-bottom: 2.5rem; | |||
padding-bottom: 1rem; | |||
position: relative; | |||
font-family: var(--font-sans); | |||
letter-spacing: 0.5px; | |||
} | } | ||
#content h1::after { | |||
content: ''; | |||
position: absolute; | |||
bottom: 0; | |||
left: 50%; | |||
transform: translateX(-50%); | |||
width: 100px; | |||
height: 3px; | |||
background: linear-gradient(90deg, var(--gold-primary), var(--sage-medium)); | |||
border-radius: var(--radius-sm); | |||
} | } | ||
#content h1::before { | |||
content: '✦'; | |||
position: absolute; | |||
top: -10px; | |||
left: 50%; | |||
transform: translateX(-50%); | |||
color: var(--gold-primary); | |||
font-size: 1.5rem; | |||
opacity: 0.7; | |||
} | } | ||
#content h2 { | |||
color: var(--secondary-sage); | |||
font-weight: 600; | |||
font-size: 1.5rem; | |||
padding: | margin: 2.5rem 0 1.5rem; | ||
padding: 1rem 1.5rem; | |||
background: linear-gradient(135deg, var(--bg-accent), var(--bg-secondary)); | |||
border-radius: | border-right: 4px solid var(--sage-medium); | ||
transition: | border-radius: var(--radius-md); | ||
transition: var(--transition-smooth); | |||
position: relative; | |||
} | } | ||
#content h2:hover { | |||
border-right-color: var(--gold-primary); | |||
transform: translateX(5px); | |||
box-shadow: var(--shadow-soft); | |||
} | } | ||
#content h2::before { | |||
content: '◆'; | |||
position: absolute; | |||
right: 15px; | |||
top: 50%; | |||
transform: translateY(-50%); | |||
color: var(--gold-primary); | |||
font-size: 0.8rem; | |||
opacity: 0.6; | |||
} | } | ||
#content h3, #content h4, #content h5, #content h6 { | |||
color: var(--text-primary); | |||
font-weight: 500; | |||
margin: 2rem 0 1rem; | |||
transition: var(--transition-smooth); | |||
position: relative; | |||
padding-right: 1rem; | |||
} | } | ||
#content h3 { | |||
font-size: 1.3rem; | |||
border-bottom: 1px solid var(--border-light); | |||
padding-bottom: 0.5rem; | |||
} | } | ||
#content h4 { font-size: 1.1rem; } | |||
} | |||
/* | /* Enhanced paragraphs */ | ||
. | #content p { | ||
margin-bottom: 1.5rem; | |||
text-align: justify; | |||
line-height: 1.8; | |||
color: var(--text-primary); | |||
hyphens: auto; | |||
text-indent: 1rem; | |||
} | } | ||
#content p:first-of-type { | |||
text-indent: 0; | |||
font-size: 1.1rem; | |||
font-weight: 400; | |||
color: var(--text-secondary); | |||
margin-bottom: 2rem; | |||
} | } | ||
/* | /* Enhanced links */ | ||
#content a { | |||
color: var(--sage-dark); | |||
text-decoration: none; | |||
border-bottom: 1px solid transparent; | |||
padding-bottom: 2px; | |||
transition: var(--transition-fast); | |||
font-weight: 500; | |||
position: relative; | |||
- | |||
- | |||
} | } | ||
#content a::after { | |||
content: ''; | |||
position: absolute; | |||
bottom: -2px; | |||
left: 0; | |||
width: 0; | |||
height: 2px; | |||
background: linear-gradient(90deg, var(--gold-primary), var(--sage-medium)); | |||
transition: var(--transition-smooth); | |||
} | } | ||
#content a:hover::after { | |||
width: 100%; | |||
} | } | ||
#content a:hover { | |||
color: var(--primary-emerald); | |||
transform: translateY(-1px); | |||
} | } | ||
/* ======================== | |||
ENHANCED FIGURE STYLING | |||
========================= */ | |||
/* | |||
.mw-default-size, | .mw-default-size, | ||
figure[typeof="mw:File/Thumb"] { | figure[typeof="mw:File/Thumb"] { | ||
background: var(-- | background: var(--bg-overlay); | ||
border: | backdrop-filter: blur(10px); | ||
border-radius: | border: 1px solid var(--border-light); | ||
border-radius: var(--radius-lg); | |||
box-shadow: var(--shadow-soft); | box-shadow: var(--shadow-soft); | ||
overflow: hidden; | overflow: hidden; | ||
margin: | margin: 2rem auto; | ||
padding: | padding: 1rem; | ||
transition: var(--transition-gentle); | transition: var(--transition-gentle); | ||
position: relative; | position: relative; | ||
max-width: fit-content; | max-width: fit-content; | ||
} | } | ||
سطر ٤٠٥: | سطر ٣٨٥: | ||
content: ''; | content: ''; | ||
position: absolute; | position: absolute; | ||
top: | top: 10px; | ||
right: | right: 10px; | ||
width: | width: 25px; | ||
height: 3px; | height: 3px; | ||
background: linear-gradient(90deg, var(-- | background: linear-gradient(90deg, var(--gold-primary), var(--sage-medium)); | ||
border-radius: | border-radius: var(--radius-sm); | ||
opacity: 0. | opacity: 0.8; | ||
} | } | ||
.mw- | .mw-default-size:hover, | ||
figure[typeof="mw:File/Thumb"]:hover { | |||
box-shadow: var(--shadow-strong); | |||
transform: translateY(-3px) scale(1.02); | |||
border-color: var(--sage-medium); | |||
transform: scale(1.02); | |||
} | } | ||
سطر ٤٢٨: | سطر ٤٠٤: | ||
width: 100%; | width: 100%; | ||
height: auto; | height: auto; | ||
border-radius: | border-radius: var(--radius-md); | ||
transition: var(--transition- | transition: var(--transition-smooth); | ||
filter: brightness(0.95) contrast(1.05); | filter: brightness(0.95) contrast(1.05) saturate(1.1); | ||
} | } | ||
.mw-file-element:hover { | .mw-file-element:hover { | ||
filter: brightness(1) contrast(1.1); | filter: brightness(1) contrast(1.1) saturate(1.2); | ||
} | } | ||
figcaption { | figcaption { | ||
padding: | padding: 1rem 1.5rem 0.5rem; | ||
font-family: var(- | font-family: var(--font-sans); | ||
font-size: 0.9rem; | |||
color: var(--text-secondary); | |||
font-size | |||
color: var(-- | |||
text-align: center; | text-align: center; | ||
line-height: 1.5; | |||
border-top: 1px solid var(--border-light); | |||
margin-top: 1rem; | |||
position: relative; | position: relative; | ||
background: linear-gradient(135deg, var(--bg-accent), transparent); | |||
border-radius: 0 0 var(--radius-md) var(--radius-md); | |||
border- | |||
} | } | ||
/* ======================== | /* ======================== | ||
ENHANCED CATEGORIES | |||
========================= */ | ========================= */ | ||
#catlinks { | |||
background: linear-gradient(135deg, var(--bg-overlay), var(--bg-accent)); | |||
backdrop-filter: blur(15px); | |||
border: 1px solid var(--border-light); | |||
border-top: 3px solid var(--sage-medium); | |||
padding: 2rem; | |||
border-radius: var(--radius-lg); | |||
margin: 3rem auto 2rem; | |||
box-shadow: var(--shadow-medium); | |||
position: relative; | position: relative; | ||
transition: var(--transition-gentle); | transition: var(--transition-gentle); | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
#catlinks::before { | |||
content: 'التصنيفات'; | |||
display: block; | display: block; | ||
font-family: var(--font-sans); | |||
font-weight: 700; | |||
font-size: 1.1rem; | |||
color: var(--primary-emerald); | |||
text-align: center; | |||
margin-bottom: 1.5rem; | |||
padding-bottom: 1rem; | |||
font-family: var(--sans | border-bottom: 1px solid var(--border-light); | ||
font- | |||
font- | |||
. | |||
padding- | |||
border | |||
position: relative; | position: relative; | ||
} | } | ||
#content: | #catlinks::after { | ||
content: ''; | |||
border- | position: absolute; | ||
top: 0; | |||
left: 50%; | |||
transform: translateX(-50%); | |||
width: 50px; | |||
height: 3px; | |||
background: linear-gradient(90deg, var(--gold-primary), var(--sage-medium)); | |||
border-radius: 0 0 var(--radius-sm) var(--radius-sm); | |||
} | } | ||
# | #catlinks:hover { | ||
box-shadow: var(--shadow-strong); | |||
border-top-color: var(--gold-primary); | |||
top | transform: translateY(-2px); | ||
} | } | ||
#catlinks a { | |||
display: inline-block; | |||
color: var(--text-primary); | |||
text-decoration: none; | |||
padding: 0.75rem 1.25rem; | |||
margin: 0.5rem 0.5rem 0.5rem 0; | |||
font- | background: var(--bg-main); | ||
border: 1px solid var(--border-medium); | |||
font-weight: | border-radius: var(--radius-full); | ||
font-family: var(--font-sans); | |||
font-size: 0.85rem; | |||
font-weight: 500; | |||
transition: var(--transition-smooth); | |||
position: relative; | position: relative; | ||
overflow: hidden; | |||
} | } | ||
# | #catlinks a::before { | ||
content: ''; | content: ''; | ||
position: absolute; | position: absolute; | ||
top: 0; | |||
left: | left: -100%; | ||
width: 100%; | |||
width: | height: 100%; | ||
height: | background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent); | ||
background: | transition: var(--transition-smooth); | ||
transition: var(--transition- | |||
} | } | ||
# | #catlinks a:hover::before { | ||
left: 100%; | |||
} | } | ||
# | #catlinks a:hover { | ||
color: var(-- | color: var(--primary-emerald); | ||
background: var(--bg-accent); | |||
border-color: var(--sage-medium); | |||
transform: translateY(-2px); | |||
box-shadow: var(--shadow-soft); | |||
} | } | ||
/* ======================== | /* ======================== | ||
ENHANCED DROPDOWNS | |||
========================= */ | ========================= */ | ||
.vector-dropdown-content { | |||
background: var(--bg-overlay) !important; | |||
backdrop-filter: blur(20px) !important; | |||
border: 1px solid var(--border-medium) !important; | |||
border-radius: var(--radius-lg) !important; | |||
box-shadow: var(--shadow-strong) !important; | |||
overflow: hidden !important; | |||
margin-top: 0.5rem !important; | |||
} | } | ||
.vector-menu-content-list a { | |||
color: var(-- | padding: 1rem 1.5rem !important; | ||
color: var(--text-primary) !important; | |||
border-bottom: 1px solid var(-- | border-bottom: 1px solid var(--border-light) !important; | ||
transition: var(--transition-smooth) !important; | |||
font-family: var(--font-sans) !important; | |||
font-weight: 500; | font-weight: 500 !important; | ||
} | } | ||
.vector-menu-content-list a:hover { | |||
color: var(--primary- | background: linear-gradient(135deg, var(--bg-accent), var(--bg-secondary)) !important; | ||
border- | color: var(--primary-emerald) !important; | ||
transform: translateX(8px) !important; | |||
border-left: 3px solid var(--gold-primary) !important; | |||
} | } | ||
/* ======================== | /* ======================== | ||
ENHANCED SCROLLBAR | |||
========================= */ | ========================= */ | ||
::-webkit-scrollbar { | |||
width: 12px; | |||
} | } | ||
::-webkit-scrollbar-track { | |||
background: var(--bg-accent); | |||
border-radius: var(--radius-md); | |||
} | } | ||
::-webkit-scrollbar-thumb { | |||
background: linear-gradient(135deg, var(--sage-medium), var(--sage-dark)); | |||
border-radius: var(--radius-md); | |||
border: 2px solid var(--bg-accent); | |||
border | |||
} | } | ||
::-webkit-scrollbar-thumb:hover { | |||
background: linear-gradient(135deg, var(--gold-primary), var(--sage-medium)); | |||
background: | |||
} | } | ||
/* ======================== | |||
RESPONSIVE ENHANCEMENTS | |||
========================= */ | |||
@media (max-width: 1024px) { | |||
.vector-header { | |||
padding: 1rem; | |||
gap: 1rem; | |||
} | |||
#content { | |||
margin: 1rem; | |||
padding: 2rem; | |||
} | |||
} | } | ||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
.vector-header { | |||
flex-wrap: wrap; | |||
min-height: auto; | |||
} | } | ||
.mw- | .mw-logo-wordmark { | ||
font-size: 1.4rem !important; | |||
font-size: | |||
} | } | ||
# | #content { | ||
padding: 1.5rem; | |||
margin: 0.5rem; | |||
} | } | ||
#content h1 { | #content h1 { | ||
font-size: 1. | font-size: 2rem; | ||
} | |||
#catlinks { | |||
margin: 2rem 0.5rem 1rem; | |||
padding: 1.5rem; | |||
} | } | ||
} | } | ||
/* ======================== | /* ======================== | ||
ACCESSIBILITY ENHANCEMENTS | |||
========================= */ | ========================= */ | ||
@media (prefers-reduced-motion: reduce) { | |||
* { | |||
animation-duration: 0.01ms !important; | |||
animation-iteration-count: 1 !important; | |||
transition-duration: 0.01ms !important; | |||
} | |||
} | } | ||
/* | /* Focus states */ | ||
*:focus-visible { | |||
outline: 2px solid var(--gold-primary); | |||
outline-offset: 2px; | |||
box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2); | |||
} | } | ||
/* | /* High contrast mode support */ | ||
::- | @media (prefers-contrast: high) { | ||
:root { | |||
--text-primary: #000000; | |||
--bg-main: #ffffff; | |||
--border-medium: #000000; | |||
} | |||
} | } | ||
/* Dark mode support */ | |||
@media (prefers-color-scheme: dark) { | |||
:root { | |||
--bg-main: #1a1a1a; | |||
--bg-secondary: #2a2a2a; | |||
--bg-accent: #252525; | |||
--text-primary: #e0e0e0; | |||
--text-secondary: #c0c0c0; | |||
--border-light: #404040; | |||
--border-medium: #505050; | |||
} | |||
} | } | ||
/* ======================== | /* ======================== | ||
PRINT OPTIMIZATIONS | |||
========================= */ | ========================= */ | ||
@media print { | @media print { | ||
سطر ٨٧٠: | سطر ٦٥٤: | ||
background: white !important; | background: white !important; | ||
box-shadow: none !important; | box-shadow: none !important; | ||
backdrop-filter: none !important; | |||
} | } | ||
. | .vector-header-container, | ||
display: none; | #catlinks::before, | ||
#content::before, | |||
.mw-default-size::before { | |||
display: none !important; | |||
} | } | ||
# | #content { | ||
border: 1px solid #ccc; | border: 1px solid #ccc !important; | ||
margin: 0 !important; | |||
padding: 2rem !important; | |||
} | } | ||
} | |||
/* Hide unwanted elements */ | |||
.printfooter, | |||
.vector-menu h3, | |||
.cdx-text-input__icon { | |||
display: none !important; | |||
} | |||
#footer-icons { | |||
float: left; | |||
display: none !important; | |||
} | |||
.vector-page-titlebar::after { | |||
content: ''; | |||
display: block; | |||
position: absolute; | |||
bottom: 0; | |||
right: 0; | |||
left: 0; | |||
height: 1px; | |||
background-color: transparent !important; | |||
} | } |
مراجعة ١١:٣٦، ٢٩ يوليو ٢٠٢٥
@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');
/* ========================
ENHANCED CSS VARIABLES
========================= */
:root {
/* Primary Islamic-inspired color palette */
--primary-emerald: #1a5d4a;
--secondary-sage: #2d6b5c;
--tertiary-forest: #3a4739;
/* Accent colors */
--gold-primary: #d4af37;
--gold-light: #f4e4a6;
--gold-dark: #b8941f;
/* Sage and green tones */
--sage-light: #a8c09a;
--sage-medium: #8fa68e;
--sage-dark: #6b8e5a;
/* Neutral colors */
--text-primary: #2c3e30;
--text-secondary: #4a5a4a;
--text-muted: #6b7b6b;
--text-light: #8a9a8a;
/* Background colors */
--bg-main: #fefefe;
--bg-secondary: #fafafa;
--bg-accent: #f5f7f5;
--bg-overlay: rgba(255, 255, 255, 0.95);
/* Border colors */
--border-light: #e8ebe8;
--border-medium: #d4d7d4;
--border-accent: rgba(212, 175, 55, 0.3);
/* Shadows */
--shadow-subtle: 0 2px 8px rgba(42, 62, 48, 0.06);
--shadow-soft: 0 4px 16px rgba(42, 62, 48, 0.08);
--shadow-medium: 0 8px 24px rgba(42, 62, 48, 0.12);
--shadow-strong: 0 12px 32px rgba(42, 62, 48, 0.16);
--shadow-glow: 0 0 20px rgba(212, 175, 55, 0.15);
/* Typography */
--font-serif: 'Scheherazade New', 'Amiri', serif;
--font-sans: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
/* Transitions */
--transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
--transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
--transition-gentle: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
/* Border radius */
--radius-sm: 4px;
--radius-md: 8px;
--radius-lg: 12px;
--radius-xl: 16px;
--radius-full: 50px;
}
/* ========================
MODERN HEADER DESIGN
========================= */
.vector-header-container {
background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-accent) 100%) !important;
border-bottom: 1px solid var(--border-light);
backdrop-filter: blur(10px);
position: sticky;
top: 0;
z-index: 1000;
box-shadow: var(--shadow-subtle);
}
.vector-header {
padding: 1rem 2rem;
display: flex !important;
align-items: center !important;
justify-content: space-between !important;
max-width: 1400px;
margin: 0 auto;
gap: 2rem;
min-height: 80px;
}
/* Enhanced Logo */
.mw-logo {
display: flex;
align-items: center;
gap: 1rem;
text-decoration: none;
transition: var(--transition-smooth);
}
.mw-logo:hover {
transform: scale(1.02);
}
.mw-logo-icon {
height: 5rem !important;
filter: drop-shadow(var(--shadow-subtle));
transition: var(--transition-smooth);
}
.mw-logo:hover .mw-logo-icon {
filter: drop-shadow(var(--shadow-soft));
}
.mw-logo-wordmark {
color: var(--primary-emerald) !important;
font-size: 1.75rem !important;
font-weight: 700 !important;
font-family: var(--font-sans) !important;
letter-spacing: 0.5px !important;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}
/* Enhanced Search */
.cdx-search-input {
border-radius: var(--radius-full) !important;
overflow: hidden !important;
box-shadow: var(--shadow-soft) !important;
backdrop-filter: blur(10px);
}
.cdx-text-input {
background: var(--bg-overlay) !important;
border: 2px solid var(--border-medium) !important;
transition: var(--transition-smooth) !important;
}
.cdx-text-input:focus-within {
border-color: var(--gold-primary) !important;
box-shadow: var(--shadow-glow) !important;
}
.cdx-text-input__input {
background: transparent !important;
border: none !important;
padding: 1rem 1.5rem 1rem 3.5rem !important;
font-size: 1rem !important;
color: var(--text-primary) !important;
font-family: var(--font-sans) !important;
}
.cdx-text-input__input::placeholder {
color: var(--text-muted) !important;
font-weight: 400 !important;
}
.cdx-search-input__end-button {
background: linear-gradient(135deg, var(--sage-medium), var(--sage-dark)) !important;
border: none !important;
color: white !important;
padding: 1rem 2rem !important;
font-weight: 600 !important;
transition: var(--transition-smooth) !important;
}
.cdx-search-input__end-button:hover {
background: linear-gradient(135deg, var(--sage-dark), var(--primary-emerald)) !important;
transform: translateY(-1px) !important;
box-shadow: var(--shadow-medium) !important;
}
/* ========================
ENHANCED BODY AND LAYOUT
========================= */
body {
background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-accent) 100%);
background-attachment: fixed;
color: var(--text-primary);
font-family: var(--font-serif);
font-size: 16px;
line-height: 1.7;
margin: 0;
padding: 0;
}
/* Add subtle pattern overlay */
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image:
radial-gradient(circle at 25% 25%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
radial-gradient(circle at 75% 75%, rgba(143, 166, 142, 0.03) 0%, transparent 50%);
pointer-events: none;
z-index: -1;
}
/* ========================
ENHANCED CONTENT AREA
========================= */
#content {
background: var(--bg-overlay);
backdrop-filter: blur(20px);
border: 1px solid var(--border-light);
border-right: 4px solid var(--sage-medium);
padding: 3rem 4rem;
border-radius: var(--radius-xl);
box-shadow: var(--shadow-medium);
margin: 2rem auto;
max-width: 1200px;
position: relative;
transition: var(--transition-gentle);
overflow: hidden;
}
#content::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: linear-gradient(90deg, var(--gold-primary), var(--sage-medium), var(--gold-primary));
opacity: 0.7;
}
#content:hover {
box-shadow: var(--shadow-strong);
border-right-color: var(--gold-primary);
transform: translateY(-2px);
}
/* ========================
ENHANCED TYPOGRAPHY
========================= */
#content h1 {
color: var(--primary-emerald);
text-align: center;
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 2.5rem;
padding-bottom: 1rem;
position: relative;
font-family: var(--font-sans);
letter-spacing: 0.5px;
}
#content h1::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 100px;
height: 3px;
background: linear-gradient(90deg, var(--gold-primary), var(--sage-medium));
border-radius: var(--radius-sm);
}
#content h1::before {
content: '✦';
position: absolute;
top: -10px;
left: 50%;
transform: translateX(-50%);
color: var(--gold-primary);
font-size: 1.5rem;
opacity: 0.7;
}
#content h2 {
color: var(--secondary-sage);
font-weight: 600;
font-size: 1.5rem;
margin: 2.5rem 0 1.5rem;
padding: 1rem 1.5rem;
background: linear-gradient(135deg, var(--bg-accent), var(--bg-secondary));
border-right: 4px solid var(--sage-medium);
border-radius: var(--radius-md);
transition: var(--transition-smooth);
position: relative;
}
#content h2:hover {
border-right-color: var(--gold-primary);
transform: translateX(5px);
box-shadow: var(--shadow-soft);
}
#content h2::before {
content: '◆';
position: absolute;
right: 15px;
top: 50%;
transform: translateY(-50%);
color: var(--gold-primary);
font-size: 0.8rem;
opacity: 0.6;
}
#content h3, #content h4, #content h5, #content h6 {
color: var(--text-primary);
font-weight: 500;
margin: 2rem 0 1rem;
transition: var(--transition-smooth);
position: relative;
padding-right: 1rem;
}
#content h3 {
font-size: 1.3rem;
border-bottom: 1px solid var(--border-light);
padding-bottom: 0.5rem;
}
#content h4 { font-size: 1.1rem; }
/* Enhanced paragraphs */
#content p {
margin-bottom: 1.5rem;
text-align: justify;
line-height: 1.8;
color: var(--text-primary);
hyphens: auto;
text-indent: 1rem;
}
#content p:first-of-type {
text-indent: 0;
font-size: 1.1rem;
font-weight: 400;
color: var(--text-secondary);
margin-bottom: 2rem;
}
/* Enhanced links */
#content a {
color: var(--sage-dark);
text-decoration: none;
border-bottom: 1px solid transparent;
padding-bottom: 2px;
transition: var(--transition-fast);
font-weight: 500;
position: relative;
}
#content a::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 0;
height: 2px;
background: linear-gradient(90deg, var(--gold-primary), var(--sage-medium));
transition: var(--transition-smooth);
}
#content a:hover::after {
width: 100%;
}
#content a:hover {
color: var(--primary-emerald);
transform: translateY(-1px);
}
/* ========================
ENHANCED FIGURE STYLING
========================= */
.mw-default-size,
figure[typeof="mw:File/Thumb"] {
background: var(--bg-overlay);
backdrop-filter: blur(10px);
border: 1px solid var(--border-light);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-soft);
overflow: hidden;
margin: 2rem auto;
padding: 1rem;
transition: var(--transition-gentle);
position: relative;
max-width: fit-content;
}
.mw-default-size::before,
figure[typeof="mw:File/Thumb"]::before {
content: '';
position: absolute;
top: 10px;
right: 10px;
width: 25px;
height: 3px;
background: linear-gradient(90deg, var(--gold-primary), var(--sage-medium));
border-radius: var(--radius-sm);
opacity: 0.8;
}
.mw-default-size:hover,
figure[typeof="mw:File/Thumb"]:hover {
box-shadow: var(--shadow-strong);
transform: translateY(-3px) scale(1.02);
border-color: var(--sage-medium);
}
.mw-file-element {
width: 100%;
height: auto;
border-radius: var(--radius-md);
transition: var(--transition-smooth);
filter: brightness(0.95) contrast(1.05) saturate(1.1);
}
.mw-file-element:hover {
filter: brightness(1) contrast(1.1) saturate(1.2);
}
figcaption {
padding: 1rem 1.5rem 0.5rem;
font-family: var(--font-sans);
font-size: 0.9rem;
color: var(--text-secondary);
text-align: center;
line-height: 1.5;
border-top: 1px solid var(--border-light);
margin-top: 1rem;
position: relative;
background: linear-gradient(135deg, var(--bg-accent), transparent);
border-radius: 0 0 var(--radius-md) var(--radius-md);
}
/* ========================
ENHANCED CATEGORIES
========================= */
#catlinks {
background: linear-gradient(135deg, var(--bg-overlay), var(--bg-accent));
backdrop-filter: blur(15px);
border: 1px solid var(--border-light);
border-top: 3px solid var(--sage-medium);
padding: 2rem;
border-radius: var(--radius-lg);
margin: 3rem auto 2rem;
box-shadow: var(--shadow-medium);
position: relative;
transition: var(--transition-gentle);
overflow: hidden;
}
#catlinks::before {
content: 'التصنيفات';
display: block;
font-family: var(--font-sans);
font-weight: 700;
font-size: 1.1rem;
color: var(--primary-emerald);
text-align: center;
margin-bottom: 1.5rem;
padding-bottom: 1rem;
border-bottom: 1px solid var(--border-light);
position: relative;
}
#catlinks::after {
content: '';
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
width: 50px;
height: 3px;
background: linear-gradient(90deg, var(--gold-primary), var(--sage-medium));
border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
#catlinks:hover {
box-shadow: var(--shadow-strong);
border-top-color: var(--gold-primary);
transform: translateY(-2px);
}
#catlinks a {
display: inline-block;
color: var(--text-primary);
text-decoration: none;
padding: 0.75rem 1.25rem;
margin: 0.5rem 0.5rem 0.5rem 0;
background: var(--bg-main);
border: 1px solid var(--border-medium);
border-radius: var(--radius-full);
font-family: var(--font-sans);
font-size: 0.85rem;
font-weight: 500;
transition: var(--transition-smooth);
position: relative;
overflow: hidden;
}
#catlinks a::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
transition: var(--transition-smooth);
}
#catlinks a:hover::before {
left: 100%;
}
#catlinks a:hover {
color: var(--primary-emerald);
background: var(--bg-accent);
border-color: var(--sage-medium);
transform: translateY(-2px);
box-shadow: var(--shadow-soft);
}
/* ========================
ENHANCED DROPDOWNS
========================= */
.vector-dropdown-content {
background: var(--bg-overlay) !important;
backdrop-filter: blur(20px) !important;
border: 1px solid var(--border-medium) !important;
border-radius: var(--radius-lg) !important;
box-shadow: var(--shadow-strong) !important;
overflow: hidden !important;
margin-top: 0.5rem !important;
}
.vector-menu-content-list a {
padding: 1rem 1.5rem !important;
color: var(--text-primary) !important;
border-bottom: 1px solid var(--border-light) !important;
transition: var(--transition-smooth) !important;
font-family: var(--font-sans) !important;
font-weight: 500 !important;
}
.vector-menu-content-list a:hover {
background: linear-gradient(135deg, var(--bg-accent), var(--bg-secondary)) !important;
color: var(--primary-emerald) !important;
transform: translateX(8px) !important;
border-left: 3px solid var(--gold-primary) !important;
}
/* ========================
ENHANCED SCROLLBAR
========================= */
::-webkit-scrollbar {
width: 12px;
}
::-webkit-scrollbar-track {
background: var(--bg-accent);
border-radius: var(--radius-md);
}
::-webkit-scrollbar-thumb {
background: linear-gradient(135deg, var(--sage-medium), var(--sage-dark));
border-radius: var(--radius-md);
border: 2px solid var(--bg-accent);
}
::-webkit-scrollbar-thumb:hover {
background: linear-gradient(135deg, var(--gold-primary), var(--sage-medium));
}
/* ========================
RESPONSIVE ENHANCEMENTS
========================= */
@media (max-width: 1024px) {
.vector-header {
padding: 1rem;
gap: 1rem;
}
#content {
margin: 1rem;
padding: 2rem;
}
}
@media (max-width: 768px) {
.vector-header {
flex-wrap: wrap;
min-height: auto;
}
.mw-logo-wordmark {
font-size: 1.4rem !important;
}
#content {
padding: 1.5rem;
margin: 0.5rem;
}
#content h1 {
font-size: 2rem;
}
#catlinks {
margin: 2rem 0.5rem 1rem;
padding: 1.5rem;
}
}
/* ========================
ACCESSIBILITY ENHANCEMENTS
========================= */
@media (prefers-reduced-motion: reduce) {
* {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
/* Focus states */
*:focus-visible {
outline: 2px solid var(--gold-primary);
outline-offset: 2px;
box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
}
/* High contrast mode support */
@media (prefers-contrast: high) {
:root {
--text-primary: #000000;
--bg-main: #ffffff;
--border-medium: #000000;
}
}
/* Dark mode support */
@media (prefers-color-scheme: dark) {
:root {
--bg-main: #1a1a1a;
--bg-secondary: #2a2a2a;
--bg-accent: #252525;
--text-primary: #e0e0e0;
--text-secondary: #c0c0c0;
--border-light: #404040;
--border-medium: #505050;
}
}
/* ========================
PRINT OPTIMIZATIONS
========================= */
@media print {
body, #content {
background: white !important;
box-shadow: none !important;
backdrop-filter: none !important;
}
.vector-header-container,
#catlinks::before,
#content::before,
.mw-default-size::before {
display: none !important;
}
#content {
border: 1px solid #ccc !important;
margin: 0 !important;
padding: 2rem !important;
}
}
/* Hide unwanted elements */
.printfooter,
.vector-menu h3,
.cdx-text-input__icon {
display: none !important;
}
#footer-icons {
float: left;
display: none !important;
}
.vector-page-titlebar::after {
content: '';
display: block;
position: absolute;
bottom: 0;
right: 0;
left: 0;
height: 1px;
background-color: transparent !important;
}