מדיה ויקי:Common.css: הבדלים בין גרסאות בדף
קפיצה לניווט
קפיצה לחיפוש
אין תקציר עריכה |
אין תקציר עריכה |
||
| שורה 158: | שורה 158: | ||
.appearance-option { | .appearance-option { | ||
cursor: pointer; | cursor: pointer; | ||
padding: 0.5em 0.5em 0 | padding: 0.5em 1.8em 0.5em 0.5em; | ||
transition: all 0.2s; | transition: all 0.2s; | ||
border-radius: 4px; | border-radius: 4px; | ||
| שורה 176: | שורה 176: | ||
.appearance-option.active::before { | .appearance-option.active::before { | ||
content: '✓'; | content: '✓ '; | ||
position: absolute; | position: absolute; | ||
right: | right: 8px; | ||
font-weight: bold; | font-weight: bold; | ||
color: #0645ad; | color: #0645ad; | ||
גרסה מ־21:50, 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;
}
/* ========== בקרי מראה (Appearance Controls) - בצד שמאל ========== */
#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;
}
.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 {
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.theme-light,
.mw-parser-output.theme-light,
.mw-body.theme-light {
background-color: #ffffff;
color: #202122;
}
#content.theme-light a,
.mw-parser-output.theme-light a {
color: #0645ad;
}
#content.theme-light a:visited,
.mw-parser-output.theme-light a:visited {
color: #0b0080;
}
/* כהה */
#content.theme-dark,
.mw-parser-output.theme-dark,
.mw-body.theme-dark {
background-color: #1a1a1a;
color: #e8e8e8;
border-color: #404040;
}
#content.theme-dark a,
.mw-parser-output.theme-dark a {
color: #6bb1ff;
}
#content.theme-dark a:visited,
.mw-parser-output.theme-dark a:visited {
color: #b497ff;
}
.mw-body.theme-dark #toc {
background-color: #252525;
color: #e8e8e8;
}
#content.theme-dark h1,
#content.theme-dark h2,
#content.theme-dark h3,
#content.theme-dark h4,
.mw-parser-output.theme-dark h1,
.mw-parser-output.theme-dark h2,
.mw-parser-output.theme-dark h3,
.mw-parser-output.theme-dark h4 {
color: #e8e8e8;
border-color: #404040;
}
/* ספיה */
#content.theme-sepia,
.mw-parser-output.theme-sepia,
.mw-body.theme-sepia {
background-color: #f4ecd8;
color: #5b4636;
border-color: #d4c4a8;
}
#content.theme-sepia a,
.mw-parser-output.theme-sepia a {
color: #704214;
}
#content.theme-sepia a:visited,
.mw-parser-output.theme-sepia a:visited {
color: #5c2e0f;
}
.mw-body.theme-sepia #toc {
background-color: #ebe1ca;
color: #5b4636;
}
/* ========== גופנים - חלים רק על אזור התוכן ========== */
#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;
}