الفرق بين المراجعتين لصفحة: «ميدياويكي:Common.css»
المظهر
لا ملخص تعديل |
لا ملخص تعديل |
||
سطر ١: | سطر ١: | ||
/* ======================== | /* ======================== | ||
Root Variables - Dark Academia Theme | |||
========================= */ | ========================= */ | ||
:root { | :root { | ||
--primary- | --primary-color: #2c1810; | ||
--secondary- | --secondary-color: #4a3423; | ||
-- | --tertiary-color: #6b4d35; | ||
-- | --accent-gold: #d4af37; | ||
-- | --accent-copper: #b87333; | ||
-- | --background-white: #fefefe; | ||
--text-dark: #1a1a1a; | |||
--text-muted: #4a4a4a; | |||
--border-elegant: #e5ddd5; | |||
--text-dark: # | --shadow-subtle: 0 2px 8px rgba(44, 24, 16, 0.08); | ||
--shadow-elevated: 0 4px 16px rgba(44, 24, 16, 0.12); | |||
--text- | --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1); | ||
--border- | --serif-font: 'Crimson Text', 'Times New Roman', serif; | ||
--shadow- | --sans-font: 'Inter', 'Helvetica Neue', sans-serif; | ||
--shadow- | |||
--transition: 0. | |||
-- | |||
-- | |||
} | } | ||
/* ======================== | /* ======================== | ||
سطر ٣٢: | سطر ٢٣: | ||
========================= */ | ========================= */ | ||
body { | body { | ||
font-family: | font-family: var(--serif-font); | ||
background: | background-color: var(--background-white); | ||
color: var(--text-dark); | color: var(--text-dark); | ||
line-height: 1.6; | |||
margin: 0; | margin: 0; | ||
padding: 0; | padding: 0; | ||
font-size: 16px; | font-size: 16px; | ||
} | } | ||
/* ======================== | /* ======================== | ||
Header Styling - | Header Styling - Elegant Academia | ||
========================= */ | ========================= */ | ||
.mw-body-header | .mw-body-header { | ||
background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); | |||
border-bottom: 1px solid var(--border-elegant); | |||
padding: 20px 30px; | |||
text-align: center; | |||
font-family: var(--sans-font); | |||
font-size: 18px; | |||
color: var(--background-white); | |||
font-weight: 600; | |||
letter-spacing: 0.5px; | |||
box-shadow: var(--shadow-subtle); | |||
background: linear-gradient(135deg, var(--primary- | position: relative; | ||
padding: | |||
text-align: center | |||
font-family: | |||
font-size: | |||
box-shadow: var(--shadow- | |||
position: relative | |||
} | } | ||
.mw-body-header::before { | |||
content: ''; | |||
position: absolute; | |||
top: 0; | |||
left: 0; | |||
right: 0; | |||
height: 2px; | |||
background: linear-gradient(90deg, | |||
transparent 0%, | |||
var(--accent-gold) 20%, | |||
var(--accent-copper) 50%, | |||
var(--accent-gold) 80%, | |||
transparent 100% | |||
. | ); | ||
content: | |||
position: absolute | |||
top: 0 | |||
left: 0 | |||
right: 0 | |||
height: | |||
background: linear-gradient(90deg, var(--accent- | |||
} | } | ||
/* ======================== | /* ======================== | ||
Dropdown Menu - Refined | |||
========================= */ | ========================= */ | ||
.vector- | .vector-dropdown { | ||
position: relative; | position: relative; | ||
display: inline-block; | display: inline-block; | ||
cursor: pointer; | |||
} | } | ||
.vector- | .vector-dropdown-content { | ||
display: none; | display: none; | ||
position: absolute; | position: absolute; | ||
background-color: var(--background-white); | |||
min-width: 200px; | |||
background: var(--white); | border: 1px solid var(--border-elegant); | ||
min-width: | border-radius: 4px; | ||
border | box-shadow: var(--shadow-elevated); | ||
z-index: 1000; | z-index: 1000; | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
.vector-dropdown:hover .vector-dropdown-content | .vector-dropdown:hover .vector-dropdown-content { | ||
display: block; | display: block; | ||
animation: | animation: fadeIn 0.2s ease-out; | ||
} | } | ||
@keyframes | @keyframes fadeIn { | ||
from { | from { opacity: 0; transform: translateY(-8px); } | ||
to { opacity: 1; transform: translateY(0); } | |||
to { | |||
} | } | ||
.vector-dropdown-content | .vector-dropdown-content a { | ||
display: block; | display: block; | ||
padding: | padding: 12px 16px; | ||
color: var(--text-dark); | color: var(--text-dark); | ||
text-decoration: none; | text-decoration: none; | ||
font-size: | font-family: var(--sans-font); | ||
font-size: 14px; | |||
transition: | border-bottom: 1px solid var(--border-elegant); | ||
border- | transition: var(--transition-smooth); | ||
} | |||
.vector-dropdown-content a:last-child { | |||
border-bottom: none; | |||
} | } | ||
.vector-dropdown-content | .vector-dropdown-content a:hover { | ||
background-color: #f8f6f3; | |||
background | padding-left: 20px; | ||
padding-left: | |||
} | } | ||
/* ======================== | /* ======================== | ||
Content | Content Styling - Academic Paper Feel | ||
========================= */ | ========================= */ | ||
#content | #content { | ||
background: var(--background-white); | |||
border: 1px solid var(--border-elegant); | |||
background: var(--white) | padding: 40px 50px; | ||
border: | border-radius: 2px; | ||
padding: | font-family: var(--serif-font); | ||
font-size: 16px; | |||
color: var(--text-dark); | |||
box-shadow: var(--shadow-subtle); | |||
direction: rtl; | |||
font-size: | max-width: 800px; | ||
margin: 20px auto; | |||
color: var(--text-dark) | position: relative; | ||
box-shadow: var(--shadow- | |||
position: relative | |||
} | } | ||
#content::before { | |||
# | content: ''; | ||
position: absolute; | |||
content: | top: 0; | ||
position: absolute | left: 0; | ||
top: 0 | width: 4px; | ||
left: 0 | height: 100%; | ||
background: linear-gradient(180deg, var(--accent-gold), var(--accent-copper)); | |||
height: | border-radius: 0 2px 2px 0; | ||
background: linear-gradient( | |||
border-radius: | |||
} | } | ||
/* ======================== | /* ======================== | ||
Typography | Typography Enhancements | ||
========================= */ | ========================= */ | ||
#content h1, #content h2, #content h3, #content h4, #content h5, #content h6 | #content h1, #content h2, #content h3, #content h4, #content h5, #content h6 { | ||
font-family: var(--sans-font); | |||
font-family: | color: var(--primary-color); | ||
font-weight: 700; | |||
color: var(--primary- | margin-top: 2em; | ||
margin-top: 2em | margin-bottom: 0.8em; | ||
margin-bottom: | line-height: 1.3; | ||
line-height: 1.3 | |||
} | } | ||
# | #content h1 { font-size: 24px; } | ||
#content h2 { font-size: 20px; } | |||
#content h3 { font-size: 18px; } | |||
} | |||
# | |||
} | |||
#content | #content p { | ||
margin-bottom: 1.2em; | |||
text-align: justify; | |||
} | } | ||
#content | #content a { | ||
color: var(--tertiary-color); | |||
text- | text-decoration: underline; | ||
text-decoration-color: var(--accent-copper); | |||
text-underline-offset: 2px; | |||
transition: var(--transition-smooth); | |||
} | } | ||
#content a | #content a:hover { | ||
color: var(-- | color: var(--accent-copper); | ||
text-decoration | text-decoration-color: var(--primary-color); | ||
} | } | ||
/* ======================== | /* ======================== | ||
Categories | Categories Styling - Refined Tags | ||
========================= */ | ========================= */ | ||
#catlinks | #catlinks { | ||
background: linear-gradient(135deg, #f9f7f4 0%, #f3f0eb 100%); | |||
border: 1px solid var(--border-elegant); | |||
background: linear-gradient(135deg, | padding: 20px 25px; | ||
border: | border-radius: 2px; | ||
padding: | margin-top: 30px; | ||
font-family: var(--sans-font); | |||
font-size: 14px; | |||
box-shadow: var(--shadow-subtle); | |||
font- | color: var(--text-muted); | ||
box-shadow: var(--shadow- | max-width: 800px; | ||
margin-left: auto; | |||
margin-right: auto; | |||
} | } | ||
# | #catlinks::before { | ||
content: 'التصنيفات'; | |||
content: | display: block; | ||
display: block | font-weight: 600; | ||
font-weight: | color: var(--primary-color); | ||
color: var(--primary- | margin-bottom: 12px; | ||
margin-bottom: | font-size: 15px; | ||
font-size: | letter-spacing: 0.3px; | ||
} | } | ||
# | #catlinks a { | ||
color: var(--text-dark); | |||
color: var(--text-dark) | font-weight: 500; | ||
font-weight: | text-decoration: none; | ||
text-decoration: none | padding: 8px 14px; | ||
padding: | margin: 4px 6px 4px 0; | ||
margin: | background-color: var(--background-white); | ||
border-radius: | border: 1px solid var(--border-elegant); | ||
display: inline-block | border-radius: 20px; | ||
font-size: | display: inline-block; | ||
transition: var(--transition-smooth); | |||
font-size: 13px; | |||
position: relative; | |||
overflow: hidden; | |||
} | } | ||
#catlinks a: | #catlinks a::before { | ||
background: linear-gradient( | 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: | #catlinks a:hover { | ||
background: | background-color: var(--primary-color); | ||
color: var(--background-white); | |||
transform: translateY(-1px); | |||
box-shadow: var(--shadow-subtle); | |||
} | } | ||
#catlinks a: | #catlinks a:hover::before { | ||
left: 100%; | |||
} | } | ||
سطر ٣٤٨: | سطر ٢٤٩: | ||
========================= */ | ========================= */ | ||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
#content { | |||
margin: 15px; | |||
padding: 25px 20px; | |||
margin: 15px | |||
padding: | |||
} | } | ||
.mw-body-header { | |||
padding: 15px 20px; | |||
font-size: 16px; | |||
} | |||
#catlinks { | |||
margin: 20px 15px; | |||
padding: 15px 20px; | |||
} | |||
} | |||
/* ======================== | |||
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 | @media print { | ||
body { | |||
background-color: white; | |||
} | } | ||
.mw-body-header, #catlinks { | |||
.mw-body- | display: none; | ||
} | } | ||
# | #content { | ||
box-shadow: none; | |||
border: none; | |||
padding: 20px 0; | |||
} | } | ||
} | |||
/* Focus states for accessibility */ | |||
a:focus, .vector-dropdown:focus { | |||
outline: 2px solid var(--accent-gold); | |||
outline-offset: 2px; | |||
} | } | ||
/* ======================== | /* ======================== | ||
Utility Classes | |||
========================= */ | ========================= */ | ||
.printfooter, | |||
* { | .vector-menu h3 { | ||
display: none; | |||
} | |||
/* Elegant scrollbar for webkit browsers */ | |||
::-webkit-scrollbar { | |||
width: 8px; | |||
} | |||
::-webkit-scrollbar-track { | |||
background: var(--border-elegant); | |||
} | } | ||
::-webkit-scrollbar-thumb { | |||
background: var(--tertiary-color); | |||
border-radius: 4px; | |||
border-radius: | |||
} | } | ||
::-webkit-scrollbar-thumb:hover { | |||
background: var(--secondary-color); | |||
} | } |
مراجعة ١١:٤٦، ١٩ يوليو ٢٠٢٥
/* ========================
Root Variables - Dark Academia Theme
========================= */
:root {
--primary-color: #2c1810;
--secondary-color: #4a3423;
--tertiary-color: #6b4d35;
--accent-gold: #d4af37;
--accent-copper: #b87333;
--background-white: #fefefe;
--text-dark: #1a1a1a;
--text-muted: #4a4a4a;
--border-elegant: #e5ddd5;
--shadow-subtle: 0 2px 8px rgba(44, 24, 16, 0.08);
--shadow-elevated: 0 4px 16px rgba(44, 24, 16, 0.12);
--transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
--serif-font: 'Crimson Text', 'Times New Roman', serif;
--sans-font: 'Inter', 'Helvetica Neue', sans-serif;
}
/* ========================
Base Styling
========================= */
body {
font-family: var(--serif-font);
background-color: var(--background-white);
color: var(--text-dark);
line-height: 1.6;
margin: 0;
padding: 0;
font-size: 16px;
}
/* ========================
Header Styling - Elegant Academia
========================= */
.mw-body-header {
background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
border-bottom: 1px solid var(--border-elegant);
padding: 20px 30px;
text-align: center;
font-family: var(--sans-font);
font-size: 18px;
color: var(--background-white);
font-weight: 600;
letter-spacing: 0.5px;
box-shadow: var(--shadow-subtle);
position: relative;
}
.mw-body-header::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: linear-gradient(90deg,
transparent 0%,
var(--accent-gold) 20%,
var(--accent-copper) 50%,
var(--accent-gold) 80%,
transparent 100%
);
}
/* ========================
Dropdown Menu - Refined
========================= */
.vector-dropdown {
position: relative;
display: inline-block;
cursor: pointer;
}
.vector-dropdown-content {
display: none;
position: absolute;
background-color: var(--background-white);
min-width: 200px;
border: 1px solid var(--border-elegant);
border-radius: 4px;
box-shadow: var(--shadow-elevated);
z-index: 1000;
overflow: hidden;
}
.vector-dropdown:hover .vector-dropdown-content {
display: block;
animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(-8px); }
to { opacity: 1; transform: translateY(0); }
}
.vector-dropdown-content a {
display: block;
padding: 12px 16px;
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);
}
.vector-dropdown-content a:last-child {
border-bottom: none;
}
.vector-dropdown-content a:hover {
background-color: #f8f6f3;
padding-left: 20px;
}
/* ========================
Content Styling - Academic Paper Feel
========================= */
#content {
background: var(--background-white);
border: 1px solid var(--border-elegant);
padding: 40px 50px;
border-radius: 2px;
font-family: var(--serif-font);
font-size: 16px;
color: var(--text-dark);
box-shadow: var(--shadow-subtle);
direction: rtl;
max-width: 800px;
margin: 20px auto;
position: relative;
}
#content::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 4px;
height: 100%;
background: linear-gradient(180deg, var(--accent-gold), var(--accent-copper));
border-radius: 0 2px 2px 0;
}
/* ========================
Typography Enhancements
========================= */
#content h1, #content h2, #content h3, #content h4, #content h5, #content h6 {
font-family: var(--sans-font);
color: var(--primary-color);
font-weight: 700;
margin-top: 2em;
margin-bottom: 0.8em;
line-height: 1.3;
}
#content h1 { font-size: 24px; }
#content h2 { font-size: 20px; }
#content h3 { font-size: 18px; }
#content p {
margin-bottom: 1.2em;
text-align: justify;
}
#content a {
color: var(--tertiary-color);
text-decoration: underline;
text-decoration-color: var(--accent-copper);
text-underline-offset: 2px;
transition: var(--transition-smooth);
}
#content a:hover {
color: var(--accent-copper);
text-decoration-color: var(--primary-color);
}
/* ========================
Categories Styling - Refined Tags
========================= */
#catlinks {
background: linear-gradient(135deg, #f9f7f4 0%, #f3f0eb 100%);
border: 1px solid var(--border-elegant);
padding: 20px 25px;
border-radius: 2px;
margin-top: 30px;
font-family: var(--sans-font);
font-size: 14px;
box-shadow: var(--shadow-subtle);
color: var(--text-muted);
max-width: 800px;
margin-left: auto;
margin-right: auto;
}
#catlinks::before {
content: 'التصنيفات';
display: block;
font-weight: 600;
color: var(--primary-color);
margin-bottom: 12px;
font-size: 15px;
letter-spacing: 0.3px;
}
#catlinks a {
color: var(--text-dark);
font-weight: 500;
text-decoration: none;
padding: 8px 14px;
margin: 4px 6px 4px 0;
background-color: var(--background-white);
border: 1px solid var(--border-elegant);
border-radius: 20px;
display: inline-block;
transition: var(--transition-smooth);
font-size: 13px;
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 {
background-color: var(--primary-color);
color: var(--background-white);
transform: translateY(-1px);
box-shadow: var(--shadow-subtle);
}
#catlinks a:hover::before {
left: 100%;
}
/* ========================
Responsive Design
========================= */
@media (max-width: 768px) {
#content {
margin: 15px;
padding: 25px 20px;
}
.mw-body-header {
padding: 15px 20px;
font-size: 16px;
}
#catlinks {
margin: 20px 15px;
padding: 15px 20px;
}
}
/* ========================
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-color: white;
}
.mw-body-header, #catlinks {
display: none;
}
#content {
box-shadow: none;
border: none;
padding: 20px 0;
}
}
/* Focus states for accessibility */
a:focus, .vector-dropdown:focus {
outline: 2px solid var(--accent-gold);
outline-offset: 2px;
}
/* ========================
Utility Classes
========================= */
.printfooter,
.vector-menu h3 {
display: none;
}
/* Elegant scrollbar for webkit browsers */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: var(--border-elegant);
}
::-webkit-scrollbar-thumb {
background: var(--tertiary-color);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--secondary-color);
}