MediaWiki:Common.css: Difference between revisions
From Encyclopedium Universum
No edit summary |
Style Torah citation links and verse modal |
||
| Line 31: | Line 31: | ||
font-size: 110%; | font-size: 110%; | ||
letter-spacing: 0.05em; | letter-spacing: 0.05em; | ||
} | |||
/* UKOY Torah citation links and Pealim-backed verse modal. */ | |||
#mw-content-text .mw-parser-output .ukoy-cite { | |||
display: inline-block; | |||
cursor: pointer; | |||
color: #8a6418; | |||
border-bottom: 1px dotted #8a6418; | |||
font-size: 0.92em; | |||
white-space: nowrap; | |||
margin: 0 0.08em; | |||
} | |||
#mw-content-text .mw-parser-output .ukoy-cite::before { content: "["; } | |||
#mw-content-text .mw-parser-output .ukoy-cite::after { content: "]"; } | |||
.ukoy-verse-modal { | |||
display: none; | |||
position: fixed; | |||
inset: 0; | |||
z-index: 99999; | |||
background: rgba(0,0,0,.58); | |||
padding: 3vh 2vw; | |||
} | |||
.ukoy-verse-modal.is-open { display: block; } | |||
.ukoy-verse-modal-card { | |||
position: relative; | |||
max-width: 980px; | |||
max-height: 90vh; | |||
overflow: auto; | |||
margin: 0 auto; | |||
background: #fff; | |||
color: #111; | |||
border: 1px solid #9c7a2a; | |||
box-shadow: 0 24px 70px rgba(0,0,0,.45); | |||
padding: 1.2rem; | |||
} | |||
.ukoy-verse-modal-close { | |||
position: sticky; | |||
top: 0; | |||
float: right; | |||
z-index: 2; | |||
border: 1px solid #888; | |||
background: #fff; | |||
font-size: 1.4rem; | |||
line-height: 1; | |||
cursor: pointer; | |||
} | |||
.ukoy-verse-heading { | |||
font-weight: 700; | |||
font-size: 1.35rem; | |||
color: #8a6418; | |||
margin: 0 0 1rem; | |||
} | |||
.ukoy-verse-entry { border-top: 1px solid #ddd; padding: 1rem 0; } | |||
.ukoy-verse-ref { font-weight: 700; margin-bottom: .6rem; } | |||
.ukoy-verse-label { | |||
font-size: .78rem; | |||
text-transform: uppercase; | |||
letter-spacing: .08em; | |||
color: #666; | |||
margin: .7rem 0 .35rem; | |||
} | |||
.ukoy-tanakh-interlinear { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: .55rem .8rem; | |||
align-items: flex-start; | |||
justify-content: flex-start; | |||
background: #111; | |||
color: #fff; | |||
padding: .75rem; | |||
border-radius: .25rem; | |||
} | |||
.ukoy-vtok { display: inline-flex; flex-direction: column; align-items: center; min-width: 2.2rem; } | |||
.ukoy-vtok-surface { font-family: "yisraeleet400" !important; font-size: 1.55rem; line-height: 1.2; } | |||
.ukoy-vtok-strong { color: #6fb6ff; font-size: .72rem; line-height: 1.1; } | |||
.ukoy-vtok-morph { color: #21d18a; font-size: .72rem; line-height: 1.1; } | |||
.ukoy-kjv-text { font-family: Georgia, serif; font-size: 1.05rem; line-height: 1.55; } | |||
.ukoy-loading, .ukoy-verse-error, .ukoy-missing { padding: .75rem; color: #555; } | |||
@media (max-width: 700px) { | |||
.ukoy-verse-modal { padding: 0; } | |||
.ukoy-verse-modal-card { max-height: 100vh; min-height: 100vh; border: 0; } | |||
.ukoy-vtok-surface { font-size: 1.35rem; } | |||
} | } | ||
Revision as of 06:51, 24 May 2026
@font-face {
font-family: "yisraeleet400";
src: url("/fonts/yisraeleet.eot");
src: url("/fonts/yisraeleet.eot?#iefix") format("embedded-opentype"),
url("/fonts/yisraeleet.woff2") format("woff2"),
url("/fonts/yisraeleet.woff") format("woff"),
url("/fonts/yisraeleet.ttf") format("truetype"),
url("/fonts/yisraeleet.svg#yisraeleeth") format("svg");
font-weight: 400; /* IMPORTANT: match the real font weight */
font-style: normal;
font-display: block; /* no fallback swap */
}
/* Apply YOUR script to content only (not the whole MediaWiki UI) */
#mw-content-text .mw-parser-output,
#mw-content-text .mw-parser-output *:not(.ashuri):not(.ashuri *) {
font-family: "yisraeleet400" !important; /* no fallback stack */
}
/* Size controls (content only) */
#mw-content-text .mw-parser-output p,
#mw-content-text .mw-parser-output td,
#mw-content-text .mw-parser-output th {
font-size: 20px !important;
}
/* Ashuri comparison font: ONLY where you explicitly add class="ashuri" */
#mw-content-text .mw-parser-output .ashuri,
#mw-content-text .mw-parser-output .ashuri * {
font-family: "David Libre" !important; /* Ashuri-only override */
font-size: 110%;
letter-spacing: 0.05em;
}
/* UKOY Torah citation links and Pealim-backed verse modal. */
#mw-content-text .mw-parser-output .ukoy-cite {
display: inline-block;
cursor: pointer;
color: #8a6418;
border-bottom: 1px dotted #8a6418;
font-size: 0.92em;
white-space: nowrap;
margin: 0 0.08em;
}
#mw-content-text .mw-parser-output .ukoy-cite::before { content: "["; }
#mw-content-text .mw-parser-output .ukoy-cite::after { content: "]"; }
.ukoy-verse-modal {
display: none;
position: fixed;
inset: 0;
z-index: 99999;
background: rgba(0,0,0,.58);
padding: 3vh 2vw;
}
.ukoy-verse-modal.is-open { display: block; }
.ukoy-verse-modal-card {
position: relative;
max-width: 980px;
max-height: 90vh;
overflow: auto;
margin: 0 auto;
background: #fff;
color: #111;
border: 1px solid #9c7a2a;
box-shadow: 0 24px 70px rgba(0,0,0,.45);
padding: 1.2rem;
}
.ukoy-verse-modal-close {
position: sticky;
top: 0;
float: right;
z-index: 2;
border: 1px solid #888;
background: #fff;
font-size: 1.4rem;
line-height: 1;
cursor: pointer;
}
.ukoy-verse-heading {
font-weight: 700;
font-size: 1.35rem;
color: #8a6418;
margin: 0 0 1rem;
}
.ukoy-verse-entry { border-top: 1px solid #ddd; padding: 1rem 0; }
.ukoy-verse-ref { font-weight: 700; margin-bottom: .6rem; }
.ukoy-verse-label {
font-size: .78rem;
text-transform: uppercase;
letter-spacing: .08em;
color: #666;
margin: .7rem 0 .35rem;
}
.ukoy-tanakh-interlinear {
display: flex;
flex-wrap: wrap;
gap: .55rem .8rem;
align-items: flex-start;
justify-content: flex-start;
background: #111;
color: #fff;
padding: .75rem;
border-radius: .25rem;
}
.ukoy-vtok { display: inline-flex; flex-direction: column; align-items: center; min-width: 2.2rem; }
.ukoy-vtok-surface { font-family: "yisraeleet400" !important; font-size: 1.55rem; line-height: 1.2; }
.ukoy-vtok-strong { color: #6fb6ff; font-size: .72rem; line-height: 1.1; }
.ukoy-vtok-morph { color: #21d18a; font-size: .72rem; line-height: 1.1; }
.ukoy-kjv-text { font-family: Georgia, serif; font-size: 1.05rem; line-height: 1.55; }
.ukoy-loading, .ukoy-verse-error, .ukoy-missing { padding: .75rem; color: #555; }
@media (max-width: 700px) {
.ukoy-verse-modal { padding: 0; }
.ukoy-verse-modal-card { max-height: 100vh; min-height: 100vh; border: 0; }
.ukoy-vtok-surface { font-size: 1.35rem; }
}
