מדיה ויקי:Common.css: הבדלים בין גרסאות בדף
קפיצה לניווט
קפיצה לחיפוש
אין תקציר עריכה |
אין תקציר עריכה |
||
| שורה 110: | שורה 110: | ||
height: 120px; | height: 120px; | ||
margin: 15px auto; | margin: 15px auto; | ||
display: block; | |||
} | |||
#p-logo { | |||
padding: 10px; | |||
background: transparent; | |||
} | } | ||
גרסה מ־22:07, 1 בנובמבר 2025
@import url('https://fonts.googleapis.com/css2?family=David+Libre:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Frank+Ruhl+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;
}
#toc {
position: fixed !important;
width: 200px !important;
right: 0 !important;
overflow-y: auto !important;
max-height: 90vh !important;
transition: top 0.3s ease !important;
}
#p-logo a {
background-size: contain;
background-repeat: no-repeat;
background-position: center;
width: 170px;
height: 120px;
margin: 15px auto;
display: block;
}
#p-logo {
padding: 10px;
background: transparent;
}
/* ========== כפתור הצגה/הסתרה של תפריט המראה ========== */
#appearance-toggle {
position: fixed;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 35px;
height: 35px;
background-color: #0645ad;
color: white;
border-radius: 0 8px 8px 0;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-size: 20px;
box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
z-index: 1001;
transition: all 0.3s ease;
}
#appearance-toggle:hover {
background-color: #0757c9;
width: 40px;
}
#appearance-toggle.panel-hidden {
left: 0;
}
/* ========== תפריט מראה ========== */
#appearance-panel {
position: fixed;
left: 0;
top: 220px;
width: 180px;
padding: 15px;
background-color: #f8f9fa;
border: 1px solid #c8ccd1;
border-left: none;
border-radius: 0 8px 8px 0;
box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
font-size: 0.9em;
max-height: calc(100vh - 240px);
overflow-y: auto;
z-index: 999;
direction: rtl;
transition: transform 0.3s ease;
}
#appearance-panel.hidden {
transform: translateX(-100%);
}
.appearance-heading {
background-color: #eaecf0;
padding: 0.5em;
margin: -15px -15px 10px -15px;
font-weight: bold;
font-size: 1.1em;
border-bottom: 2px solid #c8ccd1;
text-align: center;
border-radius: 0 8px 0 0;
}
.appearance-content {
padding: 5px;
}
.appearance-section {
font-weight: bold;
padding: 0.5em 0.5em 0.3em 0.5em;
color: #54595d;
font-size: 0.95em;
margin-top: 0.5em;
border-bottom: 1px solid #e8e8e8;
}
.appearance-option {
cursor: pointer;
padding: 0.5em 1.8em 0.5em 0.5em;
transition: all 0.2s;
border-radius: 4px;
margin: 2px 0;
position: relative;
}
.appearance-option:hover {
background-color: #eaf3ff;
}
.appearance-option.active {
background-color: #d4e8ff;
font-weight: bold;
color: #0645ad;
}
.appearance-option.active::before {
content: '✓ ';
position: absolute;
right: 8px;
font-weight: bold;
color: #0645ad;
}
.appearance-divider {
height: 1px;
background-color: #c8ccd1;
margin: 10px 0;
}
/* התאמה למסכים קטנים */
@media screen and (max-width: 768px) {
#appearance-panel,
#appearance-toggle {
display: none;
}
}
/* ========== גדלי טקסט ========== */
#content.text-small,
.mw-parser-output.text-small {
font-size: 16px !important;
}
#content.text-medium,
.mw-parser-output.text-medium {
font-size: 19px !important;
}
#content.text-large,
.mw-parser-output.text-large {
font-size: 22px !important;
}
#content.text-xlarge,
.mw-parser-output.text-xlarge {
font-size: 26px !important;
}
/* ========== רוחב תוכן ========== */
/* רגיל - ברירת מחדל */
#content.width-normal,
.mw-body.width-normal {
max-width: none;
}
#content.width-normal {
margin-left: 10%;
margin-right: 220px;
}
/* רחב */
#content.width-wide,
.mw-body.width-wide {
max-width: none;
}
#content.width-wide {
margin-left: 5%;
margin-right: 5%;
}
.mw-body.width-wide #toc {
display: none;
}
/* ========== גופנים ========== */
#content.font-david,
.mw-parser-output.font-david {
font-family: 'David Libre', serif !important;
}
#content.font-frank,
.mw-parser-output.font-frank {
font-family: 'Frank Ruhl Libre', serif !important;
}
#content.font-arial,
.mw-parser-output.font-arial {
font-family: Arial, sans-serif !important;
}