מדיה ויקי:Common.css: הבדלים בין גרסאות בדף

מתוך Smarpedia
(עיצוב רספונסיבי ודקורטיבי מרהיב)
(הוספת עיצוב לנתיב ניווט)
 
(גרסת ביניים אחת של אותו משתמש אינה מוצגת)
שורה 147: שורה 147:
}
}


/* === RESPONSIVE / MOBILE === */
/* === IMAGES RESPONSIVE === */
img {
    max-width: 100%;
    height: auto;
}
 
.thumbinner {
    max-width: 100% !important;
}
 
/* ============================================
  RESPONSIVE / MOBILE - IMPROVED
  ============================================ */
 
/* Tablet - 1000px */
@media (max-width: 1000px) {
@media (max-width: 1000px) {
     .mw-body {
     .mw-body {
שורה 154: שורה 168:
         border-radius: 10px;
         border-radius: 10px;
     }
     }
   
 
     .firstHeading, h1 {
     .firstHeading, h1 {
         font-size: 1.6em;
         font-size: 1.6em;
     }
     }
   
 
     h2 {
     h2 {
         font-size: 1.3em;
         font-size: 1.3em;
     }
     }
   
 
     .mw-body-content {
     .mw-body-content {
         font-size: 16px;
         font-size: 16px;
     }
     }
      
 
     /* Make all wiki tables scrollable if too wide */
     .wikitable {
     .wikitable {
         display: block;
         display: block;
         overflow-x: auto;
         overflow-x: auto;
    }
    /* Hide sidebar on smaller tablets */
    #mw-panel,
    .vector-menu-portal,
    #mw-navigation {
        display: none !important;
    }
    /* Expand content to full width when sidebar hidden */
    #content,
    .mw-body {
        margin-left: 0 !important;
     }
     }
}
}


/* Mobile landscape / small tablet - 720px */
@media (max-width: 720px) {
@media (max-width: 720px) {
     body {
     body {
         font-size: 15px;
         font-size: 15px;
     }
     }
   
 
     .mw-body {
     .mw-body {
         margin: 5px;
         margin: 5px;
         padding: 12px;
         padding: 12px;
     }
     }
   
 
     .firstHeading, h1 {
     .firstHeading, h1 {
         font-size: 1.4em;
         font-size: 1.4em;
         padding-bottom: 10px;
         padding-bottom: 10px;
     }
     }
   
 
     h2 {
     h2 {
         font-size: 1.2em;
         font-size: 1.2em;
שורה 193: שורה 222:
         padding-right: 10px;
         padding-right: 10px;
     }
     }
   
 
     .wikitable th, .wikitable td {
     .wikitable th, .wikitable td {
         padding: 8px 10px !important;
         padding: 8px 10px !important;
         font-size: 14px;
         font-size: 14px;
     }
     }
      
 
     /* Stack portal boxes on mobile */
     /* === PORTAL TABLE CELLS - 2 columns === */
     div[style*="width:25%"] {
     /* Target table cells with inline width:25% */
    td[style*="width:25%"],
    td[style*="width: 25%"] {
        width: 48% !important;
        display: inline-block !important;
        vertical-align: top !important;
        margin-bottom: 10px;
    }
 
    /* Two-column top tables - stack them */
    td[style*="width:50%"],
    td[style*="width: 50%"] {
        width: 100% !important;
        display: block !important;
        padding: 5px 0 !important;
    }
 
    /* Divs with inline widths */
    div[style*="width:25%"],
     div[style*="width: 25%"] {
         width: 48% !important;
         width: 48% !important;
         margin-bottom: 10px;
         margin-bottom: 10px;
    }
    /* Header banner - smaller text */
    div[style*="font-size:2.5em"] span[style*="font-size:2.5em"],
    span[style*="font-size:2.5em"] {
        font-size: 1.8em !important;
    }
    span[style*="font-size:1.2em"] {
        font-size: 1em !important;
    }
    /* Smaller portal icons */
    div[style*="width:45px"] {
        width: 38px !important;
        height: 38px !important;
        line-height: 38px !important;
        font-size: 18px !important;
     }
     }
}
}


/* Mobile portrait - 480px */
@media (max-width: 480px) {
@media (max-width: 480px) {
    .mw-body {
        margin: 3px;
        padding: 10px;
        border-radius: 8px;
    }
     .firstHeading, h1 {
     .firstHeading, h1 {
         font-size: 1.2em;
         font-size: 1.2em;
        border-bottom-width: 3px;
     }
     }
      
 
     h2 {
        font-size: 1.1em;
    }
 
    /* === ALL PORTAL ITEMS - FULL WIDTH === */
    td[style*="width:25%"],
    td[style*="width: 25%"],
    td[style*="width:20%"],
    td[style*="width: 20%"] {
        width: 100% !important;
        display: block !important;
        margin-bottom: 8px;
    }
 
     div[style*="width:25%"],
     div[style*="width:25%"],
     div[style*="width:20%"] {
    div[style*="width: 25%"],
    div[style*="width:20%"],
     div[style*="width: 20%"] {
         width: 100% !important;
         width: 100% !important;
         margin-bottom: 8px;
         margin-bottom: 8px;
     }
     }
      
 
     /* Small category row - 2 per row on very small screens */
    td[style*="padding:10px"][style*="background:#f8f8f8"] {
        width: 48% !important;
        display: inline-block !important;
        vertical-align: top !important;
        padding: 8px !important;
        margin-bottom: 5px;
    }
 
    /* Even smaller icons */
    div[style*="width:45px"],
    div[style*="width: 45px"] {
        width: 35px !important;
        height: 35px !important;
        line-height: 35px !important;
        font-size: 16px !important;
    }
 
    div[style*="width:35px"],
    div[style*="width: 35px"] {
        width: 30px !important;
        height: 30px !important;
        line-height: 30px !important;
        font-size: 14px !important;
    }
 
    /* Header banner */
    span[style*="font-size:2.5em"] {
        font-size: 1.5em !important;
    }
 
    span[style*="font-size:1.2em"] {
        font-size: 0.9em !important;
    }
 
     .catlinks {
     .catlinks {
         padding: 10px;
         padding: 10px;
         font-size: 14px;
         font-size: 14px;
    }
    /* Featured article section */
    td[style*="width:60px"] {
        width: 50px !important;
    }
    div[style*="width:50px"] {
        width: 40px !important;
        height: 40px !important;
        line-height: 40px !important;
        font-size: 20px !important;
    }
    /* Footer stats */
    div[style*="360+"] {
        font-size: 14px !important;
        padding: 10px !important;
    }
}
/* Very small phones - 360px */
@media (max-width: 360px) {
    .mw-body {
        padding: 8px;
    }
    .firstHeading, h1 {
        font-size: 1.1em;
    }
    span[style*="font-size:2.5em"] {
        font-size: 1.3em !important;
    }
    /* Stack small categories fully */
    td[style*="padding:10px"][style*="background:#f8f8f8"] {
        width: 100% !important;
        display: block !important;
     }
     }
}
}
שורה 239: שורה 403:
         background: white;
         background: white;
     }
     }
   
 
     a {
     a {
         color: black !important;
         color: black !important;
     }
     }
    #mw-panel,
    .vector-menu-portal {
        display: none !important;
    }
}
/* Breadcrumb styling */
#breadcrumbs2 {
    padding: 8px 0;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #666;
    direction: rtl;
}
#breadcrumbs2 a {
    color: #0645ad;
}
#breadcrumbs2 a.new {
    color: #ba0000;
}
#breadcrumbs2-currentitle::before {
    content: " > ";
    color: #666;
}
#breadcrumbs2-currentitle {
    font-weight: bold;
    color: #333;
}
}

גרסה אחרונה מ־20:44, 4 בפברואר 2026

/* === סמארפדיה - עיצוב מרהיב === */

/* Google Fonts - Hebrew */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;700;900&family=David+Libre:wght@400;500;700&family=Secular+One&display=swap');

:root {
    --primary-blue: #1a1a6c;
    --primary-gold: #c9a227;
    --light-gold: #f4e8c1;
    --light-blue: #e8e8f4;
    --bg-cream: #fefcf6;
}

/* === BASE === */
body {
    font-family: 'Heebo', Arial, sans-serif !important;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8f4 100%);
    line-height: 1.8;
}

/* === CONTENT AREA === */
.mw-body {
    background: var(--bg-cream);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(26, 26, 108, 0.1);
    padding: 25px;
    margin: 15px;
}

.mw-body-content {
    font-size: 17px;
}

/* === HEADINGS === */
h1, h2, h3, .mw-headline, .firstHeading {
    font-family: 'David Libre', 'Secular One', serif !important;
    color: var(--primary-blue);
}

.firstHeading, h1 {
    font-size: 2.2em;
    background: linear-gradient(90deg, var(--primary-blue), #3d3d9c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom: 4px solid var(--primary-gold);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

h2 {
    font-size: 1.6em;
    border-right: 5px solid var(--primary-gold);
    padding-right: 15px;
    margin: 30px 0 15px;
}

h3 {
    color: var(--primary-gold);
    font-size: 1.3em;
}

/* === LINKS === */
a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-gold);
    text-decoration: underline;
}

/* === TABLES === */
.wikitable {
    border-radius: 12px;
    overflow: hidden;
    border: none !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.wikitable th {
    background: linear-gradient(135deg, var(--primary-blue), #2a2a8c) !important;
    color: white !important;
    padding: 15px !important;
    font-weight: 500;
}

.wikitable td {
    padding: 12px 15px !important;
    border-color: #eee !important;
}

.wikitable tr:hover td {
    background: var(--light-gold) !important;
}

/* === CATEGORIES === */
.catlinks {
    background: linear-gradient(135deg, var(--light-blue), #f0f0ff);
    border-radius: 12px;
    padding: 15px 20px;
    border: 2px solid var(--primary-gold);
    margin-top: 30px;
}

/* === PORTAL BOXES === */
div[style*="border-radius"] {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

div[style*="border-radius"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 26, 108, 0.15);
}

/* === SIDEBAR === */
.vector-menu-portal .vector-menu-heading {
    color: var(--primary-blue);
    font-weight: 700;
}

/* === FOOTER === */
#footer {
    background: linear-gradient(135deg, var(--primary-blue), #0d0d4d);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    margin-top: 30px;
}

#footer a {
    color: var(--primary-gold) !important;
}

/* === DECORATIVE ELEMENTS === */
.mw-body::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* === IMAGES RESPONSIVE === */
img {
    max-width: 100%;
    height: auto;
}

.thumbinner {
    max-width: 100% !important;
}

/* ============================================
   RESPONSIVE / MOBILE - IMPROVED
   ============================================ */

/* Tablet - 1000px */
@media (max-width: 1000px) {
    .mw-body {
        margin: 10px;
        padding: 15px;
        border-radius: 10px;
    }

    .firstHeading, h1 {
        font-size: 1.6em;
    }

    h2 {
        font-size: 1.3em;
    }

    .mw-body-content {
        font-size: 16px;
    }

    /* Make all wiki tables scrollable if too wide */
    .wikitable {
        display: block;
        overflow-x: auto;
    }

    /* Hide sidebar on smaller tablets */
    #mw-panel,
    .vector-menu-portal,
    #mw-navigation {
        display: none !important;
    }

    /* Expand content to full width when sidebar hidden */
    #content,
    .mw-body {
        margin-left: 0 !important;
    }
}

/* Mobile landscape / small tablet - 720px */
@media (max-width: 720px) {
    body {
        font-size: 15px;
    }

    .mw-body {
        margin: 5px;
        padding: 12px;
    }

    .firstHeading, h1 {
        font-size: 1.4em;
        padding-bottom: 10px;
    }

    h2 {
        font-size: 1.2em;
        border-right-width: 3px;
        padding-right: 10px;
    }

    .wikitable th, .wikitable td {
        padding: 8px 10px !important;
        font-size: 14px;
    }

    /* === PORTAL TABLE CELLS - 2 columns === */
    /* Target table cells with inline width:25% */
    td[style*="width:25%"],
    td[style*="width: 25%"] {
        width: 48% !important;
        display: inline-block !important;
        vertical-align: top !important;
        margin-bottom: 10px;
    }

    /* Two-column top tables - stack them */
    td[style*="width:50%"],
    td[style*="width: 50%"] {
        width: 100% !important;
        display: block !important;
        padding: 5px 0 !important;
    }

    /* Divs with inline widths */
    div[style*="width:25%"],
    div[style*="width: 25%"] {
        width: 48% !important;
        margin-bottom: 10px;
    }

    /* Header banner - smaller text */
    div[style*="font-size:2.5em"] span[style*="font-size:2.5em"],
    span[style*="font-size:2.5em"] {
        font-size: 1.8em !important;
    }

    span[style*="font-size:1.2em"] {
        font-size: 1em !important;
    }

    /* Smaller portal icons */
    div[style*="width:45px"] {
        width: 38px !important;
        height: 38px !important;
        line-height: 38px !important;
        font-size: 18px !important;
    }
}

/* Mobile portrait - 480px */
@media (max-width: 480px) {
    .mw-body {
        margin: 3px;
        padding: 10px;
        border-radius: 8px;
    }

    .firstHeading, h1 {
        font-size: 1.2em;
        border-bottom-width: 3px;
    }

    h2 {
        font-size: 1.1em;
    }

    /* === ALL PORTAL ITEMS - FULL WIDTH === */
    td[style*="width:25%"],
    td[style*="width: 25%"],
    td[style*="width:20%"],
    td[style*="width: 20%"] {
        width: 100% !important;
        display: block !important;
        margin-bottom: 8px;
    }

    div[style*="width:25%"],
    div[style*="width: 25%"],
    div[style*="width:20%"],
    div[style*="width: 20%"] {
        width: 100% !important;
        margin-bottom: 8px;
    }

    /* Small category row - 2 per row on very small screens */
    td[style*="padding:10px"][style*="background:#f8f8f8"] {
        width: 48% !important;
        display: inline-block !important;
        vertical-align: top !important;
        padding: 8px !important;
        margin-bottom: 5px;
    }

    /* Even smaller icons */
    div[style*="width:45px"],
    div[style*="width: 45px"] {
        width: 35px !important;
        height: 35px !important;
        line-height: 35px !important;
        font-size: 16px !important;
    }

    div[style*="width:35px"],
    div[style*="width: 35px"] {
        width: 30px !important;
        height: 30px !important;
        line-height: 30px !important;
        font-size: 14px !important;
    }

    /* Header banner */
    span[style*="font-size:2.5em"] {
        font-size: 1.5em !important;
    }

    span[style*="font-size:1.2em"] {
        font-size: 0.9em !important;
    }

    .catlinks {
        padding: 10px;
        font-size: 14px;
    }

    /* Featured article section */
    td[style*="width:60px"] {
        width: 50px !important;
    }

    div[style*="width:50px"] {
        width: 40px !important;
        height: 40px !important;
        line-height: 40px !important;
        font-size: 20px !important;
    }

    /* Footer stats */
    div[style*="360+"] {
        font-size: 14px !important;
        padding: 10px !important;
    }
}

/* Very small phones - 360px */
@media (max-width: 360px) {
    .mw-body {
        padding: 8px;
    }

    .firstHeading, h1 {
        font-size: 1.1em;
    }

    span[style*="font-size:2.5em"] {
        font-size: 1.3em !important;
    }

    /* Stack small categories fully */
    td[style*="padding:10px"][style*="background:#f8f8f8"] {
        width: 100% !important;
        display: block !important;
    }
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mw-body-content {
    animation: fadeIn 0.4s ease-out;
}

/* === PRINT STYLES === */
@media print {
    .mw-body {
        box-shadow: none;
        background: white;
    }

    a {
        color: black !important;
    }

    #mw-panel,
    .vector-menu-portal {
        display: none !important;
    }
}
/* Breadcrumb styling */
#breadcrumbs2 {
    padding: 8px 0;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #666;
    direction: rtl;
}

#breadcrumbs2 a {
    color: #0645ad;
}

#breadcrumbs2 a.new {
    color: #ba0000;
}

#breadcrumbs2-currentitle::before {
    content: " > ";
    color: #666;
}

#breadcrumbs2-currentitle {
    font-weight: bold;
    color: #333;
}