מדיה ויקי:Common.css

מתוך אוצר מהרי''ט
קפיצה לניווט קפיצה לחיפוש

הערה: לאחר הפרסום, ייתכן שיהיה צורך לנקות את זיכרון המטמון (cache) של הדפדפן כדי להבחין בשינויים.

  • פיירפוקס / ספארי: להחזיק את המקש 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=David+Libre:wght@400;700&display=swap');

body {
    font-family: 'David Libre', serif;
    font-size: 19px;
}

.bookshelf-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #F5F5DC;
    padding: 20px;
    border: 2px solid #8B4513;
}

.shelf {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    padding: 10px;
    border-bottom: 5px solid #8B4513;
    margin-bottom: 20px;
}

.book {
    width: 100px;
    height: 150px;
    margin: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #000;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.book:hover {
    transform: rotate(0deg);
}

.book-link {
    text-decoration: none;
    color: white;
    font-weight: bold;
    text-align: center;
}

/* תוכן עניינים - הגדרה אחת מאוחדת */
#toc {
    position: fixed;
    top: 220px;
    right: 0;
    width: 200px;
    padding: 15px;
    background-color: #faf5eb;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 75%;
    max-height: calc(100vh - 240px);
    overflow-y: auto;
    z-index: 1000;
}

.toctitle {
    display: none;
}

#content {
    margin-left: 10%;
    margin-right: 220px;
}

/* התאמה למסכים קטנים */
@media screen and (max-width: 768px) {
    #toc {
        display: none;
    }
    
    #content {
        margin-left: 5%;
        margin-right: 5%;
    }
}

#p-tb { display: none; }

.page-וויאל_משה_מאמר_לשון_הקודש #toc,
.page-וויאל_משה_מאמר_לשון_הקודש_ .mw-parser-output #toc {
    display: none;
}


/* כל הקוד CSS הקיים */

/* התוספת החדשה לתוכן העניינים */
#toc {
    position: fixed !important;
    top: 220px !important;
    right: 0 !important;
    width: 200px !important;
    max-height: calc(100vh - 240px) !important;
    overflow-y: auto !important;
    transition: top 0.3s ease !important;
}

.toc-highlight {
    font-weight: bold !important;
    color: #0366d6 !important;
}

#p-logo {
    position: absolute;
    top: 10px; /* או התאמה ידנית */
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}