Template:Theme-HJ: Difference between revisions
From HUIJIA FUN
PlurimodSU (talk | contribs) m Beautification |
PlurimodSU (talk | contribs) Beautification |
||
| Line 2: | Line 2: | ||
<html> | <html> | ||
<style> | <style> | ||
/** | |||
* HUIJIA FUN - TIMELESS CONSOLIDATED THEME (v3.0) | |||
* Integrated Design: Forest Green / Academic Serif / Engineering Grid | |||
* Developed for: Etersen Bayara (English Version) | |||
*/ | |||
/* --- 1. Imports & Root Variables --- */ | |||
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Lora:ital,wght@0,400;0,700;1,400&family=Montserrat:wght@600;800&display=swap'); | |||
:root { | |||
--mw-primary: #025F32; | |||
--mw-accent: #227F52; | |||
--mw-link: #008000; | |||
--mw-bg-page: #E0EBE0; | |||
--mw-bg-card: #FFFFFF; | |||
--mw-bg-sidebar: #C8D8C8; | |||
--mw-border: #A3B1A8; | |||
--mw-radius: 12px; | |||
--font-heading: 'Montserrat', sans-serif; | |||
--font-body: 'Lora', serif; | |||
--font-code: 'JetBrains Mono', monospace; | |||
--shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.04); | |||
} | |||
/* --- 2. Global Typography & Layout --- */ | |||
body { | body { | ||
background-color: | background-color: var(--mw-bg-page); | ||
color: # | color: #2c3e50; | ||
font-family: | font-family: var(--font-body); | ||
line-height: 1.75; | |||
} | } | ||
#mw-content-wrapper { | #mw-content-wrapper { | ||
background: | background: transparent; | ||
padding-top: 0px; | |||
} | } | ||
#mw-content { | #mw-content { | ||
background-color: # | background-color: var(--mw-bg-card); | ||
padding: 20px; | padding: 30px 30px; | ||
border-radius: var(--mw-radius); | |||
border: 1px solid var(--mw-border); | |||
box-shadow: var(--shadow-subtle); | |||
/* Refined Engineering Grid Background */ | |||
background-image: radial-gradient(var(--mw-border) 0.6px, transparent 0.6px); | |||
background-size: 28px 28px; | |||
} | |||
/* --- 3. Avatar & Logo Symmetry Debug --- */ | |||
/* Centers the pixel-art avatar vertically and horizontally within the sidebar area */ | |||
#p-logo, .mw-portlet-logo { | |||
display: flex !important; | |||
justify-content: center; | |||
align-items: center; | |||
padding: 20px 0 !important; | |||
margin-bottom: 10px; | |||
} | |||
#p-logo img { | |||
border: 1px solid var(--mw-border); | |||
border-radius: 8px; | border-radius: 8px; | ||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0. | background: #fff; | ||
padding: 2px; | |||
box-shadow: 0 4px 12px rgba(0,0,0,0.06); | |||
transition: transform 0.2s ease; | |||
} | |||
#p-logo img:hover { | |||
transform: translateY(-2px); | |||
} | |||
/* --- 4. Modern Pill Search Bar --- */ | |||
#p-search { | |||
margin-right: 25px !important; | |||
} | } | ||
#searchform { | |||
display: flex; | |||
align-items: center; | |||
background: white; | |||
border-radius: | border: 1px solid var(--mw-border); | ||
border-radius: 20px; /* Pill Shape */ | |||
box-shadow | padding: 2px 2px 2px 12px; | ||
transition: border-color 0.3s ease, box-shadow 0.3s ease; | |||
} | } | ||
#searchform:focus-within { | |||
color: | border-color: var(--mw-primary); | ||
box-shadow: 0 0 0 4px rgba(2, 95, 50, 0.1); | |||
} | } | ||
#searchInput { | |||
background: transparent !important; | |||
border- | border: none !important; | ||
box-shadow: none !important; | |||
font-family: var(--font-body); | |||
font-size: 0.9em !important; | |||
width: 180px !important; | |||
padding: 5px 0 !important; | |||
} | } | ||
#searchButton, .searchButton { | |||
color: | background-color: var(--mw-primary) !important; | ||
border: none !important; | |||
border-radius: 20px !important; | |||
color: white !important; | |||
padding: 4px 15px !important; | |||
cursor: pointer; | |||
font-family: var(--font-heading); | |||
font-size: 0.8em; | |||
transition: background 0.2s ease; | |||
} | } | ||
#searchButton:hover { | |||
color: | background-color: var(--mw-accent) !important; | ||
} | } | ||
/* --- 5. Headings with "◈" Decoration --- */ | |||
h1, h2, h3, h4, h5, h6 { | |||
font-family: var(--font-heading); | |||
font-weight: 800; | |||
letter-spacing: -0.01em; | |||
} | } | ||
h1.firstHeading { | |||
font-family: var(--font-heading); | |||
border: | color: var(--mw-primary) !important; | ||
font-size: 2em; | |||
margin: 1em | border-bottom: 4px solid var(--mw-bg-sidebar); | ||
padding-bottom: 8px; | |||
margin-bottom: 1em; | |||
} | } | ||
/* The Diamond Prefix */ | |||
h1.firstHeading::before { | |||
content: "◈"; | |||
color: var(--mw-accent); | |||
margin-right: 10px; | |||
font-size: 0.8em; | |||
vertical-align: middle; | |||
} | } | ||
h2 { | |||
color: var(--mw-primary) !important; | |||
border-bottom: 1px solid var(--mw-border); | |||
padding-bottom: 5px; | |||
margin-top: 2em; | |||
} | } | ||
. | /* --- 6. Source Code Beautification --- */ | ||
background-color: # | code { | ||
background-color: #f1f4f1; | |||
color: #b33939; /* Deep red contrast for readability */ | |||
border-radius: | padding: 3px 7px; | ||
border-radius: 6px; | |||
font-family: var(--font-code); | |||
font-size: 0.9em; | font-size: 0.9em; | ||
} | } | ||
pre { | |||
background-color: #f9fbf9 !important; | |||
border: 1px solid var(--mw-border) !important; | |||
border-left: 6px solid var(--mw-primary) !important; /* Signature left-border */ | |||
padding: 20px !important; | |||
border-radius: | border-radius: var(--mw-radius); | ||
font- | font-family: var(--font-code) !important; | ||
line-height: 1.6; | |||
overflow-x: auto; | |||
color: #333; | |||
} | } | ||
/* --- 7. Sidebar Elements --- */ | |||
.sidebar-chunk { | |||
background-color: var(--mw-bg-sidebar); | |||
margin: | border-radius: var(--mw-radius); | ||
border: 1px solid rgba(0,0,0,0.05); | |||
margin-bottom: 20px; | |||
padding: 15px; | |||
} | } | ||
.sidebar-chunk h2 { | |||
font-size: 0.85em; | |||
text-transform: uppercase; | |||
letter-spacing: 1.2px; | |||
border: none; | |||
margin-bottom: 12px; | |||
} | } | ||
/* --- 8. Wikitables & Interactive Elements --- */ | |||
table.wikitable { | |||
border-radius: var(--mw-radius); | |||
overflow: hidden; /* Clips corners */ | |||
border: 1px solid var(--mw-border); | |||
border-collapse: separate; | |||
border-spacing: 0; | |||
} | } | ||
table.wikitable th { | |||
background-color: var(--mw-bg-sidebar); | |||
color: var(--mw-primary); | |||
font-family: var(--font-heading); | |||
padding: 12px; | |||
} | } | ||
table.wikitable td { | |||
padding: 10px; | padding: 10px; | ||
border- | border-top: 1px solid #f0f0f0; | ||
} | } | ||
a { | |||
color: var(--mw-link); | |||
color: | |||
text-decoration: none; | text-decoration: none; | ||
transition: background-color | transition: all 0.2s ease; | ||
} | |||
a:hover { | |||
color: var(--mw-primary); | |||
text-decoration: underline dotted; | |||
} | |||
/* --- 9. Categorization & Footer --- */ | |||
#catlinks { | |||
background-color: #f4f8f4; | |||
border: 1px solid var(--mw-border); | |||
border-radius: var(--mw-radius); | |||
padding: 15px; | |||
} | } | ||
.mw-footer { | |||
background-color: var(--mw-bg-sidebar); | |||
padding: 30px; | |||
.mw- | border-radius: var(--mw-radius) var(--mw-radius) 0 0; | ||
background-color: | margin-top: 40px; | ||
border- | border-top: 4px solid var(--mw-primary); | ||
} | } | ||
</style> | </style> | ||
Revision as of 00:06, 31 March 2026
Description
Origin
Author: PlurimodSU
Note
To use this theme on a page, simply add the following code directly to the page's source code:
{{Theme-HJ}}
