MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* ===== KINTARA WIKI — | /* ============================================================ | ||
KINTARA WIKI — App-style theme | |||
Skin: Vector legacy (same as OSRS). Brand: #ff9c48 | |||
============================================================ */ | |||
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Cinzel:wght@600;700&display=swap'); | |||
:root { | |||
--kin-orange: #ff9c48; | |||
--kin-orange-dark: #e07e2a; | |||
--kin-ink: #2a2118; | |||
--kin-cream: #fdf9f5; | |||
--kin-line: #ecd9c4; | |||
--kin-panel: #fffaf4; | |||
} | } | ||
/* | /* ---- Base + typography ---- */ | ||
body { | |||
font-family: 'Inter', -apple-system, system-ui, sans-serif !important; | |||
background: #f4ece2 !important; | |||
color: var(--kin-ink); | |||
} | } | ||
#firstHeading { | |||
font-weight: 700; | |||
border-bottom: 3px solid var(--kin-orange); | |||
padding-bottom: 6px; | |||
} | } | ||
. | #mw-content-text h2 { border-bottom: 1px solid var(--kin-line); padding-bottom: 3px; } | ||
/* Brand-colored links, red links stay red */ | |||
#mw-content-text a:not(.image):not(.new), | |||
#mw-content-text a:visited:not(.image):not(.new) { color: var(--kin-orange-dark); } | |||
#mw-content-text a.new { color: #c0392b; } | |||
/* ---- Top header bar ---- */ | |||
#mw-head { background: #ffffff; box-shadow: 0 2px 8px rgba(0,0,0,0.08); } | |||
#p-search #searchInput, | |||
#p-search input[type="search"] { | |||
border: 1px solid var(--kin-line) !important; | |||
border-radius: 20px !important; | |||
padding: 3px 12px !important; | |||
background: var(--kin-cream); | |||
} | } | ||
. | .vector-menu-tabs li.selected a { color: var(--kin-orange-dark) !important; font-weight: 600; } | ||
/* ---- Left sidebar ---- */ | |||
#mw-panel .vector-menu-heading { | |||
color: var(--kin-orange-dark); | |||
font-weight: 700; | |||
text-transform: uppercase; | |||
font-size: 0.72em; | |||
letter-spacing: 0.05em; | |||
} | } | ||
#mw-panel a { color: #5a4a38; } | |||
#mw-panel a:hover { color: var(--kin-orange-dark); } | |||
/* ---- Content area as a card ---- */ | |||
#content { | |||
border: 1px solid var(--kin-line) !important; | |||
border-radius: 8px !important; | |||
box-shadow: 0 2px 14px rgba(0,0,0,0.06); | |||
background: #ffffff !important; | |||
} | } | ||
#footer { color: #8a7a68; } | |||
/* | /* ============ INFOBOXES (orange, white title) ============ */ | ||
.infobox-monster .infobox-title { background: #c0562a; } | .infobox { | ||
.infobox-location .infobox-title { background: #4a8c4a; } | float:right; clear:right; margin:0 0 1em 1.5em; | ||
.infobox-npc .infobox-title { background: #8a5fc0; } | border:1px solid var(--kin-line); background:var(--kin-panel); | ||
.infobox-skill .infobox-title { background: #d98030; } | font-size:0.88em; width:270px; border-collapse:collapse; | ||
.infobox-mount .infobox-title { background: #b07820; } | border-radius:6px; overflow:hidden; box-shadow:0 1px 6px rgba(0,0,0,0.05); | ||
} | |||
.infobox-title, .infobox-title a, .infobox-title a:visited { | |||
background:var(--kin-orange); color:#fff !important; font-weight:700; | |||
font-size:1.05em; text-align:center; padding:8px 10px; | |||
text-shadow:0 1px 1px rgba(0,0,0,0.2); | |||
} | |||
.infobox-image { background:#fff4e8; text-align:center; padding:12px; border-bottom:1px solid var(--kin-line); } | |||
.infobox-image img { max-width:150px; image-rendering:pixelated; image-rendering:crisp-edges; } | |||
.infobox th { background:#fbe6d2; color:#7a4a1a; padding:5px 9px; width:40%; font-weight:600; vertical-align:top; border-top:1px solid var(--kin-line); font-size:0.85em; } | |||
.infobox td { background:var(--kin-panel); color:#222; padding:5px 9px; vertical-align:top; border-top:1px solid var(--kin-line); } | |||
.infobox-monster .infobox-title { background:#c0562a; } | |||
.infobox-location .infobox-title { background:#4a8c4a; } | |||
.infobox-npc .infobox-title { background:#8a5fc0; } | |||
.infobox-skill .infobox-title { background:#d98030; } | |||
.infobox-mount .infobox-title { background:#b07820; } | |||
.zone-safe{color:#1a7a1a;font-weight:bold}.zone-pvp{color:#aa2222;font-weight:bold}.zone-calm{color:#1a5a9a;font-weight:bold} | |||
. | /* ============ TABLES ============ */ | ||
. | .wikitable { border-collapse:collapse; background:#fff; margin:1em 0; font-size:0.9em; border-radius:6px; overflow:hidden; } | ||
. | .wikitable th { background:var(--kin-orange); color:#fff; border:1px solid var(--kin-orange-dark); padding:6px 10px; } | ||
.wikitable td { border:1px solid var(--kin-line); padding:5px 9px; } | |||
.wikitable tr:nth-child(even) td { background:#fdf3ea; } | |||
. | /* ============ MAIN PAGE ============ */ | ||
. | .kin-hero { | ||
. | background: linear-gradient(135deg,#6cae4f 0%,#4f9c8f 55%,#3a7ca5 100%); | ||
. | border-radius:12px; padding:34px 24px; text-align:center; color:#fff; | ||
margin:0 0 18px; box-shadow:0 4px 18px rgba(0,0,0,0.14); | |||
} | |||
.kin-hero h1 { font-family:'Cinzel',serif; font-size:2.6em; letter-spacing:4px; margin:0; color:#fff; border:0; } | |||
.kin-hero p { font-size:1.05em; opacity:0.95; margin:8px 0 0; } | |||
.kin-social { display:flex; gap:10px; justify-content:center; margin:16px 0 0; flex-wrap:wrap; } | |||
.kin-social a { | |||
display:inline-flex; align-items:center; gap:6px; | |||
background:rgba(255,255,255,0.18); border:1px solid rgba(255,255,255,0.45); | |||
color:#fff !important; padding:8px 18px; border-radius:22px; | |||
font-weight:600; text-decoration:none; font-size:0.92em; transition:.15s; | |||
} | |||
.kin-social a:hover { background:#fff; color:var(--kin-orange-dark) !important; } | |||
.kin-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; margin:1em 0; } | |||
.kin-card { | |||
border:1px solid var(--kin-line); background:var(--kin-panel); | |||
border-radius:10px; padding:16px 10px; text-align:center; transition:.15s; | |||
} | |||
.kin-card:hover { border-color:var(--kin-orange); box-shadow:0 4px 12px rgba(255,156,72,0.2); transform:translateY(-2px); } | |||
.kin-card a { color:var(--kin-orange-dark) !important; font-weight:700; text-decoration:none; font-size:1.05em; } | |||
.kin-card .kc-sub { display:block; color:#8a7a68; font-size:0.8em; font-weight:400; margin-top:3px; } | |||
/* ---- Mobile ---- */ | |||
@media(max-width:720px){ | |||
.kin-hero h1{font-size:1.9em} | |||
.infobox{float:none;width:auto;margin:0 0 1em} | |||
} | } | ||
Revision as of 13:09, 18 June 2026
/* ============================================================
KINTARA WIKI — App-style theme
Skin: Vector legacy (same as OSRS). Brand: #ff9c48
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Cinzel:wght@600;700&display=swap');
:root {
--kin-orange: #ff9c48;
--kin-orange-dark: #e07e2a;
--kin-ink: #2a2118;
--kin-cream: #fdf9f5;
--kin-line: #ecd9c4;
--kin-panel: #fffaf4;
}
/* ---- Base + typography ---- */
body {
font-family: 'Inter', -apple-system, system-ui, sans-serif !important;
background: #f4ece2 !important;
color: var(--kin-ink);
}
#firstHeading {
font-weight: 700;
border-bottom: 3px solid var(--kin-orange);
padding-bottom: 6px;
}
#mw-content-text h2 { border-bottom: 1px solid var(--kin-line); padding-bottom: 3px; }
/* Brand-colored links, red links stay red */
#mw-content-text a:not(.image):not(.new),
#mw-content-text a:visited:not(.image):not(.new) { color: var(--kin-orange-dark); }
#mw-content-text a.new { color: #c0392b; }
/* ---- Top header bar ---- */
#mw-head { background: #ffffff; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
#p-search #searchInput,
#p-search input[type="search"] {
border: 1px solid var(--kin-line) !important;
border-radius: 20px !important;
padding: 3px 12px !important;
background: var(--kin-cream);
}
.vector-menu-tabs li.selected a { color: var(--kin-orange-dark) !important; font-weight: 600; }
/* ---- Left sidebar ---- */
#mw-panel .vector-menu-heading {
color: var(--kin-orange-dark);
font-weight: 700;
text-transform: uppercase;
font-size: 0.72em;
letter-spacing: 0.05em;
}
#mw-panel a { color: #5a4a38; }
#mw-panel a:hover { color: var(--kin-orange-dark); }
/* ---- Content area as a card ---- */
#content {
border: 1px solid var(--kin-line) !important;
border-radius: 8px !important;
box-shadow: 0 2px 14px rgba(0,0,0,0.06);
background: #ffffff !important;
}
#footer { color: #8a7a68; }
/* ============ INFOBOXES (orange, white title) ============ */
.infobox {
float:right; clear:right; margin:0 0 1em 1.5em;
border:1px solid var(--kin-line); background:var(--kin-panel);
font-size:0.88em; width:270px; border-collapse:collapse;
border-radius:6px; overflow:hidden; box-shadow:0 1px 6px rgba(0,0,0,0.05);
}
.infobox-title, .infobox-title a, .infobox-title a:visited {
background:var(--kin-orange); color:#fff !important; font-weight:700;
font-size:1.05em; text-align:center; padding:8px 10px;
text-shadow:0 1px 1px rgba(0,0,0,0.2);
}
.infobox-image { background:#fff4e8; text-align:center; padding:12px; border-bottom:1px solid var(--kin-line); }
.infobox-image img { max-width:150px; image-rendering:pixelated; image-rendering:crisp-edges; }
.infobox th { background:#fbe6d2; color:#7a4a1a; padding:5px 9px; width:40%; font-weight:600; vertical-align:top; border-top:1px solid var(--kin-line); font-size:0.85em; }
.infobox td { background:var(--kin-panel); color:#222; padding:5px 9px; vertical-align:top; border-top:1px solid var(--kin-line); }
.infobox-monster .infobox-title { background:#c0562a; }
.infobox-location .infobox-title { background:#4a8c4a; }
.infobox-npc .infobox-title { background:#8a5fc0; }
.infobox-skill .infobox-title { background:#d98030; }
.infobox-mount .infobox-title { background:#b07820; }
.zone-safe{color:#1a7a1a;font-weight:bold}.zone-pvp{color:#aa2222;font-weight:bold}.zone-calm{color:#1a5a9a;font-weight:bold}
/* ============ TABLES ============ */
.wikitable { border-collapse:collapse; background:#fff; margin:1em 0; font-size:0.9em; border-radius:6px; overflow:hidden; }
.wikitable th { background:var(--kin-orange); color:#fff; border:1px solid var(--kin-orange-dark); padding:6px 10px; }
.wikitable td { border:1px solid var(--kin-line); padding:5px 9px; }
.wikitable tr:nth-child(even) td { background:#fdf3ea; }
/* ============ MAIN PAGE ============ */
.kin-hero {
background: linear-gradient(135deg,#6cae4f 0%,#4f9c8f 55%,#3a7ca5 100%);
border-radius:12px; padding:34px 24px; text-align:center; color:#fff;
margin:0 0 18px; box-shadow:0 4px 18px rgba(0,0,0,0.14);
}
.kin-hero h1 { font-family:'Cinzel',serif; font-size:2.6em; letter-spacing:4px; margin:0; color:#fff; border:0; }
.kin-hero p { font-size:1.05em; opacity:0.95; margin:8px 0 0; }
.kin-social { display:flex; gap:10px; justify-content:center; margin:16px 0 0; flex-wrap:wrap; }
.kin-social a {
display:inline-flex; align-items:center; gap:6px;
background:rgba(255,255,255,0.18); border:1px solid rgba(255,255,255,0.45);
color:#fff !important; padding:8px 18px; border-radius:22px;
font-weight:600; text-decoration:none; font-size:0.92em; transition:.15s;
}
.kin-social a:hover { background:#fff; color:var(--kin-orange-dark) !important; }
.kin-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; margin:1em 0; }
.kin-card {
border:1px solid var(--kin-line); background:var(--kin-panel);
border-radius:10px; padding:16px 10px; text-align:center; transition:.15s;
}
.kin-card:hover { border-color:var(--kin-orange); box-shadow:0 4px 12px rgba(255,156,72,0.2); transform:translateY(-2px); }
.kin-card a { color:var(--kin-orange-dark) !important; font-weight:700; text-decoration:none; font-size:1.05em; }
.kin-card .kc-sub { display:block; color:#8a7a68; font-size:0.8em; font-weight:400; margin-top:3px; }
/* ---- Mobile ---- */
@media(max-width:720px){
.kin-hero h1{font-size:1.9em}
.infobox{float:none;width:auto;margin:0 0 1em}
}