انتقل إلى المحتوى

ميدياويكي:Common.css

من موسوعة زيارة الاربعين
مراجعة ١١:١١، ١٩ يوليو ٢٠٢٥ بواسطة Admin (نقاش | مساهمات)

ملاحظة: بعد النشر، أنت قد تحتاج إلى إفراغ الكاش الخاص بمتصفحك لرؤية التغييرات.

  • فايرفوكس / سافاري: أمسك Shift أثناء ضغط Reload، أو اضغط على إما Ctrl-F5 أو Ctrl-R (⌘-R على ماك)
  • جوجل كروم: اضغط Ctrl-Shift-R (⌘-Shift-R على ماك)
  • إنترنت إكسبلورر/إيدج: أمسك Ctrl أثناء ضغط Refresh، أو اضغط Ctrl-F5
  • أوبرا: اضغط Ctrl-F5.
/* ========================
   Academic Theme Variables
========================= */
:root {
  --deep-charcoal: #1D1616;
  --crimson-red: #8E1616;
  --forest-green: #004030;
  --royal-blue: #261FB3;
  --pearl-white: #EAEFEF;
  
  /* Derived colors for better contrast */
  --charcoal-light: #2a2323;
  --crimson-light: #b32020;
  --forest-light: #006b50;
  --blue-light: #3e35d1;
  --pearl-dark: #d4d9d9;
  
  /* Academic styling variables */
  --serif-font: 'Crimson Text', 'Times New Roman', serif;
  --sans-serif-font: 'Source Sans Pro', 'Helvetica Neue', sans-serif;
  --mono-font: 'Source Code Pro', 'Courier New', monospace;
  
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --shadow-soft: 0 8px 32px rgba(29, 22, 22, 0.12);
  --shadow-emphasis: 0 12px 48px rgba(29, 22, 22, 0.18);
}

/* ========================
   Typography & Base
========================= */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=Source+Sans+Pro:wght@300;400;600;700&family=Source+Code+Pro:wght@400;500&display=swap');

body {
  font-family: var(--serif-font);
  background: linear-gradient(135deg, var(--pearl-white) 0%, #f0f5f5 100%);
  color: var(--deep-charcoal);
  line-height: 1.7;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* ========================
   Header - Distinguished Academic Style
========================= */
.mw-body-header {
  background: linear-gradient(135deg, var(--deep-charcoal) 0%, var(--charcoal-light) 100%);
  border-bottom: 4px solid var(--crimson-red);
  padding: 32px 40px;
  text-align: center;
  position: relative;
  overflow: visible;
}

.mw-body-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    var(--royal-blue) 0%, 
    var(--forest-green) 50%, 
    var(--crimson-red) 100%);
}

.mw-body-header::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: var(--royal-blue);
  border-radius: 2px;
}

.mw-body-header h1,
.mw-body-header .mw-page-title-main {
  font-family: var(--serif-font);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 600;
  color: var(--pearl-white);
  margin: 0;
  letter-spacing: 0.5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ========================
   Navigation & Dropdowns
========================= */
.vector-dropdown {
  position: relative;
  display: inline-block;
  margin: 0 8px;
}

.vector-dropdown > a {
  font-family: var(--sans-serif-font);
  font-weight: 600;
  color: var(--deep-charcoal);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--pearl-white);
  border: 2px solid transparent;
  transition: all var(--transition-smooth);
  display: inline-block;
}

.vector-dropdown > a:hover {
  background: var(--royal-blue);
  color: var(--pearl-white);
  border-color: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.vector-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--pearl-white);
  min-width: 220px;
  border-radius: 12px;
  box-shadow: var(--shadow-emphasis);
  border: 1px solid var(--pearl-dark);
  z-index: 1000;
  margin-top: 8px;
  padding: 8px 0;
}

.vector-dropdown:hover .vector-dropdown-content {
  display: block;
  animation: dropdownFade 0.3s ease-out;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vector-dropdown-content a {
  display: block;
  padding: 12px 24px;
  color: var(--deep-charcoal);
  text-decoration: none;
  font-family: var(--sans-serif-font);
  transition: all var(--transition-smooth);
  border-left: 4px solid transparent;
}

.vector-dropdown-content a:hover {
  background: linear-gradient(90deg, var(--forest-green), var(--forest-light));
  color: var(--pearl-white);
  border-left-color: var(--crimson-red);
}

/* ========================
   Main Content - Academic Journal Style
========================= */
#content {
  background: var(--pearl-white);
  border-radius: 16px;
  padding: 48px 56px;
  margin: 32px auto;
  max-width: 1200px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--pearl-dark);
  position: relative;
}

#content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, 
    var(--royal-blue) 0%,
    var(--forest-green) 50%,
    var(--crimson-red) 100%);
  border-radius: 16px 0 0 16px;
}

#content h1, #content h2, #content h3, #content h4, #content h5, #content h6 {
  font-family: var(--serif-font);
  color: var(--deep-charcoal);
  margin: 32px 0 16px 0;
  font-weight: 600;
}

#content h1 { 
  font-size: 2.5em; 
  color: var(--crimson-red);
  border-bottom: 3px solid var(--crimson-red);
  padding-bottom: 12px;
}

#content h2 { 
  font-size: 2em; 
  color: var(--royal-blue);
}

#content h3 { 
  font-size: 1.5em; 
  color: var(--forest-green);
}

#content p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 24px;
  text-align: justify;
  hyphens: auto;
}

#content a {
  color: var(--royal-blue);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-smooth);
  font-weight: 500;
}

#content a:hover {
  color: var(--crimson-red);
  border-bottom-color: var(--crimson-red);
}

/* ========================
   Academic Citation & References
========================= */
.citation, .reference {
  font-family: var(--sans-serif-font);
  font-size: 14px;
  color: var(--forest-green);
  background: rgba(0, 64, 48, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(0, 64, 48, 0.2);
}

blockquote {
  font-style: italic;
  border-left: 6px solid var(--royal-blue);
  margin: 32px 0;
  padding: 24px 32px;
  background: rgba(38, 31, 179, 0.05);
  border-radius: 0 12px 12px 0;
  font-size: 1.1em;
}

/* ========================
   Categories - Academic Tags
========================= */
#catlinks {
  background: linear-gradient(135deg, var(--pearl-white) 0%, #f5f8f8 100%);
  border: 2px solid var(--pearl-dark);
  border-radius: 16px;
  padding: 24px 32px;
  margin: 40px auto 32px;
  max-width: 1200px;
  box-shadow: var(--shadow-soft);
}

#catlinks h5 {
  font-family: var(--sans-serif-font);
  font-weight: 700;
  color: var(--deep-charcoal);
  margin: 0 0 16px 0;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#catlinks a {
  display: inline-block;
  color: var(--pearl-white);
  background: var(--forest-green);
  font-family: var(--sans-serif-font);
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  margin: 4px 8px 4px 0;
  border-radius: 24px;
  font-size: 14px;
  transition: all var(--transition-bounce);
  border: 2px solid var(--forest-green);
  position: relative;
  overflow: hidden;
}

#catlinks a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

#catlinks a:hover {
  background: var(--crimson-red);
  border-color: var(--crimson-red);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 16px rgba(142, 22, 22, 0.3);
}

#catlinks a:hover::before {
  left: 100%;
}

/* ========================
   Special Academic Elements
========================= */
.infobox, .navbox {
  background: var(--pearl-white);
  border: 2px solid var(--royal-blue);
  border-radius: 12px;
  margin: 24px 0;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.infobox th, .navbox th {
  background: var(--royal-blue);
  color: var(--pearl-white);
  padding: 12px;
  font-family: var(--sans-serif-font);
  font-weight: 600;
}

table {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

/* ========================
   Responsive Design
========================= */
@media (max-width: 768px) {
  .mw-body-header {
    padding: 24px 20px;
  }
  
  #content {
    padding: 32px 24px;
    margin: 16px;
    border-radius: 12px;
  }
  
  #catlinks {
    padding: 20px 16px;
    margin: 24px 16px;
  }
}

/* ========================
   Accessibility & Performance
========================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --pearl-white: #2a2323;
    --pearl-dark: #3d3535;
    --deep-charcoal: #EAEFEF;
  }
  
  body {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  }
  
  #content {
    background: var(--pearl-white);
    color: var(--deep-charcoal);
  }
}

@media print {
  body {
    background: white;
  }
  
  .mw-body-header,
  #catlinks,
  .vector-dropdown {
    display: none;
  }
  
  #content {
    box-shadow: none;
    border: none;
    padding: 20px;
  }
}

/* ========================
   Utility Classes
========================= */
.printfooter,
.vector-menu h3 {
  display: none;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.font-sans { font-family: var(--sans-serif-font); }
.font-mono { font-family: var(--mono-font); }