MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| (16 intermediate revisions by the same user not shown) | |||
| Line 11: | Line 11: | ||
font-size: 1.15rem; /* try 1.125–1.2 if you want finer control */ | font-size: 1.15rem; /* try 1.125–1.2 if you want finer control */ | ||
line-height: 1.75; | line-height: 1.75; | ||
} | |||
/* --- Responsive correction for mobile/tablet devices --- */ | |||
@media (max-width: 1024px) { | |||
.mw-parser-output sup, | |||
.mw-parser-output sup.reference, | |||
sup.reference a { | |||
font-size: 0.62rem !important; /* slightly smaller for iPad & phones */ | |||
top: -0.20em !important; /* tiny lift to keep alignment */ | |||
} | |||
} | |||
/* Short Desc Styling */ | |||
#mw-content-subtitle { | |||
font-family: "Alegreya", Georgia, serif; | |||
font-style: italic; | |||
font-size: 1.3rem; | |||
color: #555; | |||
text-align: left; | |||
margin-top: 0.25em; | |||
margin-bottom: 1.25em; | |||
letter-spacing: 0.3px; | |||
padding-left: 0.15em; /* small offset aligns with body text */ | |||
} | |||
/* --- Tablet text tuning for poems --- */ | |||
@media (max-width: 1024px) and (min-width: 600px) { | |||
.mw-parser-output poem, | |||
.mw-parser-output .poem { | |||
font-size: 1.05rem !important; /* roughly +5–7% for tablets */ | |||
line-height: 1.55 !important; /* gives air between lines */ | |||
} | |||
} | } | ||
| Line 41: | Line 73: | ||
font-weight: 500; | font-weight: 500; | ||
} | } | ||
/* CompFAQ Nav */ | |||
.compfaq-nav { | |||
font-family: "Inter", "Noto Sans", "Helvetica Neue", Arial, sans-serif; | |||
font-size: 0.9rem; | |||
font-weight: 400; | |||
color: #333; | |||
background: transparent; | |||
border: none; | |||
border-top: 1px solid #ddd; | |||
border-bottom: 1px solid #ddd; | |||
padding: 0.4em 0; | |||
margin-bottom: 1em; | |||
text-align: center; | |||
} | |||
.compfaq-nav a { | |||
color: #336699; | |||
text-decoration: none; | |||
margin: 0 0.3em; | |||
} | |||
.compfaq-nav a:hover { | |||
text-decoration: underline; | |||
color: #003d66; | |||
} | |||
/* ===== CompFAQ Search Styling ===== */ | |||
.faq-search { | |||
display: flex; | |||
flex-wrap: wrap; | |||
align-items: center; | |||
gap: 0.5em; | |||
margin: 1em 0 1.5em; | |||
font-family: var(--font-head, "Alegreya Sans SC", system-ui, sans-serif); | |||
} | |||
.faq-search input[type="text"] { | |||
flex: 1 1 300px; | |||
min-width: 220px; | |||
padding: 0.5em 0.7em; | |||
font-size: 1rem; | |||
border: 1px solid #ccc; | |||
border-radius: 6px; | |||
background-color: #fff; | |||
color: #222; | |||
box-shadow: 0 1px 2px rgba(0,0,0,0.05); | |||
} | |||
.faq-search input[type="text"]:focus { | |||
border-color: #006699; | |||
outline: none; | |||
box-shadow: 0 0 4px rgba(0,102,153,0.3); | |||
} | |||
.faq-search input[type="submit"] { | |||
padding: 0.5em 1em; | |||
font-size: 1rem; | |||
font-weight: 600; | |||
border: none; | |||
border-radius: 6px; | |||
color: #fff; | |||
background-color: #006699; | |||
cursor: pointer; | |||
transition: background 0.2s ease-in-out; | |||
} | |||
.faq-search input[type="submit"]:hover { | |||
background-color: #004d73; | |||
} | |||
.faq-search-container { | |||
text-align: center; | |||
} | |||
.compfaq-foot { | |||
font-family: "Alegreya", Georgia, serif; | |||
font-size: 0.95rem; | |||
color: #555; | |||
border-top: 1px solid #ddd; | |||
margin-top: 2.5em; | |||
padding-top: 1em; | |||
line-height: 1.4; | |||
} | |||
.compfaq-foot a { | |||
color: #336699; | |||
text-decoration: none; | |||
} | |||
.compfaq-foot a:hover { | |||
text-decoration: underline; | |||
} | |||
/* --- ADJUST CATEGORY BOXES --- */ | /* --- ADJUST CATEGORY BOXES --- */ | ||
| Line 142: | Line 268: | ||
vertical-align: super !important; | vertical-align: super !important; | ||
position: relative !important; | position: relative !important; | ||
top: -0. | top: -0.12em !important; /* lowered slightly from -0.25em */ | ||
font-weight: 400 !important; | font-weight: 400 !important; | ||
letter-spacing: 0 !important; | letter-spacing: 0 !important; | ||