MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary Tags: Reverted Mobile edit Mobile web edit Advanced mobile edit |
Add CSS for Strict Article Creator Β |
||
| (9 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* ZelocoreCMS Wiki | /* ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | ||
Β ZelocoreCMS Wiki β MediaWiki:Common.cssΒ v4.0 | |||
Β Wikipedia-style layout with modern card polish | |||
Β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |||
/* | /* ββ GLOBAL: Hide Main Page title ββββββββββββββββββββββββββββββββββββ */ | ||
# | body.page-Main_Page h1#firstHeading, | ||
body.page-Main_Page .firstHeading, | |||
body.page-Main_Page .mw-page-title-main { display: none !important; } | |||
Β | |||
Β Β Β padding: | /* ββ GLOBAL: Better wikitable ββββββββββββββββββββββββββββββββββββββββ */ | ||
table.wikitable { | |||
Β border-radius: 8px; | |||
Β overflow: hidden; | |||
Β border-collapse: separate; | |||
Β border-spacing: 0; | |||
Β border: 1px solid #e2e8f0; | |||
Β box-shadow: 0 2px 8px rgba(37,99,235,.06); | |||
Β width: 100%; | |||
} | |||
table.wikitable th { | |||
Β background: linear-gradient(90deg, #1e1b4b, #2563eb) !important; | |||
Β color: #ffffff !important; | |||
Β font-weight: 700; | |||
Β border: none !important; | |||
Β padding: 10px 12px !important; | |||
} | |||
table.wikitable td { | |||
Β border: none !important; | |||
Β border-bottom: 1px solid #f1f5f9 !important; | |||
Β padding: 8px 12px !important; | |||
Β vertical-align: middle !important; | |||
} | |||
table.wikitable tr:hover td { background: #eff6ff !important; } | |||
table.wikitable tr:last-child td { border-bottom: none !important; } | |||
Β | |||
/* ββ GLOBAL: Code blocks βββββββββββββββββββββββββββββββββββββββββββββ */ | |||
code, tt, kbd { | |||
Β background: #f1f5f9; | |||
Β border: 1px solid #e2e8f0; | |||
Β border-radius: 4px; | |||
Β padding: 1px 6px; | |||
Β font-size: .88em; | |||
Β color: #7c3aed; | |||
} | |||
pre { | |||
Β background: #0f172a; | |||
Β color: #e2e8f0; | |||
Β border: 1px solid #334155; | |||
Β border-radius: 8px; | |||
Β padding: 16px 18px; | |||
Β font-size: .875em; | |||
Β line-height: 1.6; | |||
Β overflow-x: auto; | |||
Β position: relative; | |||
} | |||
Β | |||
/* ββ GLOBAL: Heading styles ββββββββββββββββββββββββββββββββββββββββββ */ | |||
#mw-content-text h2 { | |||
Β border-bottom: 2px solid #2563eb; | |||
Β padding-bottom: 4px; | |||
Β margin-top: 1.5em; | |||
Β color: #1e1b4b; | |||
} | |||
#mw-content-text h3 { color: #2563eb; } | |||
Β | |||
/* ββ GLOBAL: Template callout boxes ββββββββββββββββββββββββββββββββββ */ | |||
.cms-noteΒ Β { background: #eff6ff; border-left: 4px solid #2563eb; border-radius: 8px; padding: 12px 16px; margin: 14px 0; color: #1e3a5f; font-size: .92em; } | |||
.cms-warning { background: #fff7ed; border-left: 4px solid #f59e0b; border-radius: 8px; padding: 12px 16px; margin: 14px 0; color: #7c2d12; font-size: .92em; } | |||
.cms-tip Β Β { background: #f0fdf4; border-left: 4px solid #059669; border-radius: 8px; padding: 12px 16px; margin: 14px 0; color: #064e3b; font-size: .92em; } | |||
.cms-stubΒ Β { background: #fefce8; border: 1px solid #fde047; border-radius: 8px; padding: 10px 14px; margin: 16px 0; color: #713f12; font-size: .88em; } | |||
Β | |||
/* ββ GLOBAL: Fixed utility buttons βββββββββββββββββββββββββββββββββββ */ | |||
#cms-dark-toggle { | |||
Β position: fixed; bottom: 80px; right: 18px; | |||
Β width: 42px; height: 42px; | |||
Β background: #1e1b4b; color: #fff; | |||
Β border: none; border-radius: 50%; | |||
Β font-size: 1.2em; cursor: pointer; | |||
Β box-shadow: 0 4px 16px rgba(0,0,0,.3); | |||
Β z-index: 9999; | |||
} | |||
#cms-back-top { | |||
Β position: fixed; bottom: 24px; right: 18px; | |||
Β width: 42px; height: 42px; | |||
Β background: #2563eb; color: #fff; | |||
Β border: none; border-radius: 50%; | |||
Β font-size: 1.2em; cursor: pointer; | |||
Β box-shadow: 0 4px 16px rgba(37,99,235,.4); | |||
Β z-index: 9999; opacity: 0; pointer-events: none; | |||
} | |||
#cms-back-top.visible { opacity: 1; pointer-events: all; } | |||
#cms-progress { | |||
Β position: fixed; top: 0; left: 0; | |||
Β height: 3px; width: 0%; | |||
Β background: linear-gradient(90deg, #2563eb, #7c3aed); | |||
Β z-index: 99999; | |||
} | |||
#cms-helpful { | |||
Β background: #f8fafc; border: 1px solid #e2e8f0; | |||
Β border-radius: 10px; padding: 14px 18px; | |||
Β margin: 24px 0 8px; font-size: .9em; color: #334155; | |||
} | |||
.cms-helpful-btn { | |||
Β background: #fff; border: 1.5px solid #e2e8f0; | |||
Β border-radius: 20px; padding: 5px 16px; | |||
Β cursor: pointer; font-size: .88em; font-weight: 600; margin: 0 4px; | |||
} | } | ||
/* | /* ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | ||
#mp- | Β MAIN PAGE β Wikipedia-style layout (scoped to body.page-Main_Page) | ||
Β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | |||
Β | |||
/* ββ Top welcome banner ββββββββββββββββββββββββββββββββββββββββββββββ */ | |||
body.page-Main_Page #mp-topbanner { | |||
Β background: #cee0f2; | |||
Β border: 1px solid #a2a9b1; | |||
Β border-radius: 0; | |||
Β padding: 8px 16px; | |||
Β margin-bottom: 14px; | |||
Β text-align: center; | |||
Β font-size: 1em; | |||
Β color: #202122; | |||
Β line-height: 1.5; | |||
} | } | ||
body.page-Main_Page #mp-topbanner a { color: #3366cc; } | |||
#mp- | /* ββ Two-column layout β Wikipedia proportions βββββββββββββββββββββββ */ | ||
body.page-Main_Page #mp-upper { | |||
Β display: flex; | |||
Β flex-wrap: wrap; | |||
Β gap: 14px; | |||
Β margin-bottom: 14px; | |||
Β align-items: flex-start; | |||
} | } | ||
body.page-Main_Page #mp-leftΒ { flex: 1 1 58%; min-width: 300px; } | |||
body.page-Main_Page #mp-right { flex: 1 1 35%; min-width: 260px; } | |||
#mp- | /* ββ Content cards β Wikipedia-box style βββββββββββββββββββββββββββββ */ | ||
body.page-Main_Page .mp-card { | |||
Β background: #ffffff; | |||
Β border: 1px solid #a2a9b1; | |||
Β border-radius: 4px; | |||
Β margin-bottom: 14px; | |||
Β overflow: hidden; | |||
} | |||
body.page-Main_Page .mp-card-header { | |||
Β padding: 6px 12px; | |||
Β font-weight: bold; | |||
Β font-size: .95em; | |||
Β border-bottom: 1px solid #a2a9b1; | |||
} | } | ||
body.page-Main_Page .mp-card-header-blueΒ { background: #cee0f2; color: #202122; } | |||
body.page-Main_Page .mp-card-header-yellow { background: #fef6e7; color: #202122; } | |||
body.page-Main_Page .mp-card-header-greenΒ { background: #d5f5e3; color: #202122; } | |||
body.page-Main_Page .mp-card-header-purple { background: #e8d5f5; color: #202122; } | |||
body.page-Main_Page .mp-card-header-grayΒ { background: #eaecf0; color: #202122; } | |||
body.page-Main_Page .mp-card-body { padding: 10px 12px; font-size: .9em; line-height: 1.65; color: #202122; } | |||
body.page-Main_Page .mp-card-body ul { margin: 0; padding-left: 1.4em; } | |||
body.page-Main_Page .mp-card-body li { margin-bottom: 4px; } | |||
/* | /* ββ Category cards inside Browse box ββββββββββββββββββββββββββββββββ */ | ||
.mp- | body.page-Main_Page .mp-cat-grid { | ||
Β display: flex; | |||
Β flex-wrap: wrap; | |||
Β gap: 8px; | |||
Β margin-top: 4px; | |||
} | |||
body.page-Main_Page .mp-cat-card { | |||
Β flex: 1 1 120px; | |||
Β border-radius: 6px; | |||
Β padding: 10px 8px; | |||
Β text-align: center; | |||
Β border: 1px solid #c8ccd1; | |||
Β transition: transform .18s, box-shadow .18s; | |||
} | |||
body.page-Main_Page .mp-cat-card:hover { | |||
Β transform: translateY(-3px); | |||
Β box-shadow: 0 4px 12px rgba(0,0,0,.12); | |||
} | |||
body.page-Main_Page .mp-cat-card a { | |||
Β display: flex; | |||
Β flex-direction: column; | |||
Β align-items: center; | |||
Β gap: 3px; | |||
Β text-decoration: none !important; | |||
Β color: inherit !important; | |||
} | } | ||
body.page-Main_Page .mp-cat-icon { font-size: 1.8em; line-height: 1; display: block; } | |||
body.page-Main_Page .mp-cat-name { font-size: .82em; font-weight: bold; display: block; margin-top: 3px; color: #202122; } | |||
body.page-Main_Page .mp-cat-desc { font-size: .7em; color: #54595d; display: block; line-height: 1.2; } | |||
.mp- | /* Card colour themes */ | ||
.mp- | body.page-Main_Page .mp-cat-bloggingΒ { background: linear-gradient(135deg,#fef3c7,#fde68a); border-color: #c8a000; } | ||
.mp- | body.page-Main_Page .mp-cat-headlessΒ { background: linear-gradient(135deg,#ede9fe,#ddd6fe); border-color: #6d28d9; } | ||
body.page-Main_Page .mp-cat-ecommerceΒ { background: linear-gradient(135deg,#dcfce7,#bbf7d0); border-color: #059669; } | |||
body.page-Main_Page .mp-cat-enterprise { background: linear-gradient(135deg,#dbeafe,#bfdbfe); border-color: #2563eb; } | |||
body.page-Main_Page .mp-cat-opensource { background: linear-gradient(135deg,#fee2e2,#fecaca); border-color: #dc2626; } | |||
body.page-Main_Page .mp-cat-saasΒ Β Β { background: linear-gradient(135deg,#e0f2fe,#bae6fd); border-color: #0891b2; } | |||
body.page-Main_Page .mp-cat-wikiΒ Β Β { background: linear-gradient(135deg,#f0fdf4,#dcfce7); border-color: #16a34a; } | |||
body.page-Main_Page .mp-cat-allΒ Β Β Β { background: linear-gradient(135deg,#f1f5f9,#e2e8f0); border-color: #64748b; } | |||
/* | /* ββ Portal grid β "Other areas" section βββββββββββββββββββββββββββββ */ | ||
.mp- | body.page-Main_Page #mp-portals { | ||
Β background: #ffffff; | |||
Β border: 1px solid #a2a9b1; | |||
Β border-radius: 4px; | |||
Β margin-top: 14px; | |||
Β overflow: hidden; | |||
} | |||
body.page-Main_Page #mp-portals-header { | |||
Β background: #cee0f2; | |||
Β border-bottom: 1px solid #a2a9b1; | |||
Β padding: 6px 12px; | |||
Β font-weight: bold; | |||
Β font-size: .95em; | |||
Β color: #202122; | |||
} | |||
body.page-Main_Page .mp-portal-grid { | |||
Β display: flex; | |||
Β flex-wrap: wrap; | |||
Β background: #ffffff; | |||
} | |||
body.page-Main_Page .mp-portal-cell { | |||
Β flex: 1 1 140px; | |||
Β border-right: 1px solid #eaecf0; | |||
Β border-bottom: 1px solid #eaecf0; | |||
Β padding: 12px 8px; | |||
Β text-align: center; | |||
Β font-size: .85em; | |||
Β transition: background .15s; | |||
} | } | ||
body.page-Main_Page .mp-portal-cell:hover { background: #eaf3fb; } | |||
body.page-Main_Page .mp-portal-cell a { color: #3366cc !important; font-weight: bold; display: block; text-decoration: none; } | |||
body.page-Main_Page .mp-portal-icon { font-size: 1.8em; display: block; margin-bottom: 4px; } | |||
body.page-Main_Page .mp-portal-desc { display: block; color: #54595d; font-size: .8em; margin-top: 2px; font-weight: normal; } | |||
/* | /* ββ Contribute CTA ββββββββββββββββββββββββββββββββββββββββββββββββββ */ | ||
#mp- | body.page-Main_Page #mp-contribute { | ||
Β background: linear-gradient(135deg, #059669, #065f46); | |||
Β border-radius: 4px; | |||
Β padding: 20px 20px; | |||
Β text-align: center; | |||
Β margin-top: 14px; | |||
Β color: #ffffff; | |||
} | |||
body.page-Main_Page #mp-contribute-title { font-size: 1.15em; font-weight: bold; color: #ffffff; margin-bottom: 8px; } | |||
body.page-Main_Page #mp-contribute-descΒ { color: rgba(255,255,255,.9); margin-bottom: 14px; font-size: .92em; line-height: 1.55; } | |||
body.page-Main_Page #mp-contribute a { | |||
Β display: inline-block; | |||
Β background: #ffffff; | |||
Β color: #065f46 !important; | |||
Β border-radius: 20px; | |||
Β padding: 7px 18px; | |||
Β font-weight: bold; | |||
Β font-size: .9em; | |||
Β text-decoration: none; | |||
Β margin: 3px; | |||
} | } | ||
#mp- | /* ββ Responsive ββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ | ||
@media screen and (max-width: 768px) { | |||
Β body.page-Main_Page #mp-upper { display: block; } | |||
Β body.page-Main_Page #mp-left, body.page-Main_Page #mp-right { width: 100%; min-width: 0; } | |||
Β body.page-Main_Page .mp-cat-card { flex: 1 1 calc(50% - 8px); } | |||
Β body.page-Main_Page .mp-portal-cell { flex: 1 1 calc(50% - 0px); } | |||
} | } | ||
/* Advanced Create Article Widget */ | |||
#advanced-create-widget { | |||
Β Β Β display: flex; | Β Β Β display: flex; | ||
Β Β Β flex- | Β Β Β flex-direction: column; | ||
Β Β Β | Β Β Β gap: 8px; | ||
Β Β Β | } | ||
#create-article-title { | |||
Β Β padding: 8px 12px; | |||
Β Β border: 1px solid #c8ccd1; | |||
Β Β border-radius: 4px; | |||
Β Β font-size: 14px; | |||
Β Β outline: none; | |||
Β Β transition: border-color 0.2s, box-shadow 0.2s; | |||
} | |||
#create-article-title:focus { | |||
Β Β border-color: #3366cc; | |||
Β Β box-shadow: 0 0 0 2px rgba(51,102,204,0.2); | |||
} | |||
#create-article-title.is-invalid { | |||
Β Β border-color: #d33; | |||
Β Β Β box-shadow: 0 0 0 2px rgba(221,51,51,0.2); | |||
} | |||
#create-article-title.is-valid { | |||
Β Β border-color: #00af89; | |||
Β Β box-shadow: 0 0 0 2px rgba(0,175,137,0.2); | |||
} | |||
#create-article-status { | |||
Β Β font-size: 12px; | |||
Β Β min-height: 16px; | |||
Β Β font-weight: 500; | |||
} | } | ||
.status-checking { color: #72777d; } | |||
.status-error { color: #d33; } | |||
.status-success { color: #00af89; } | |||
. | #create-article-btn { | ||
Β Β Β | Β Β background-color: #3366cc; | ||
Β Β Β | Β Β color: white; | ||
Β Β border: none; | |||
Β Β border-radius: 4px; | |||
Β Β padding: 8px 16px; | |||
Β Β font-size: 14px; | |||
Β Β font-weight: bold; | |||
Β Β cursor: pointer; | |||
Β Β transition: background-color 0.2s, transform 0.1s; | |||
} | |||
#create-article-btn:hover:not(:disabled) { | |||
Β Β background-color: #2a4b8d; | |||
} | |||
#create-article-btn:active:not(:disabled) { | |||
Β Β transform: translateY(1px); | |||
} | |||
#create-article-btn:disabled { | |||
Β Β Β background-color: #c8ccd1; | |||
Β Β Β cursor: not-allowed; | |||
} | |||
.create-article-links { | |||
Β Β font-size: 12px; | |||
Β Β Β text-align: center; | Β Β Β text-align: center; | ||
Β Β Β | Β Β Β margin-top: 4px; | ||
} | } | ||
. | /* Strict Article Creator */ | ||
.strict-creator { | |||
Β Β background: #f8fafc; | |||
Β Β border: 1px solid #e2e8f0; | |||
Β Β border-radius: 8px; | |||
Β Β padding: 14px; | |||
} | |||
.strict-creator label.sc-main-label { | |||
Β Β font-weight: bold; | |||
Β Β Β display: block; | Β Β Β display: block; | ||
Β Β Β font-size: | Β Β margin-bottom: 6px; | ||
Β Β Β | Β Β Β font-size: 0.9em; | ||
Β Β Β color: #334155; | |||
} | } | ||
Β | #sc-title { | ||
. | Β Β width: 100%; | ||
Β Β Β display: | Β Β padding: 8px 12px; | ||
Β Β border: 1px solid #cbd5e1; | |||
Β Β border-radius: 4px; | |||
Β Β font-size: 14px; | |||
Β Β box-sizing: border-box; | |||
Β Β transition: all 0.2s; | |||
} | |||
#sc-title:focus { | |||
Β Β border-color: #3b82f6; | |||
Β Β box-shadow: 0 0 0 2px rgba(59,130,246,0.2); | |||
Β Β outline: none; | |||
} | |||
#sc-status { | |||
Β Β font-size: 12px; | |||
Β Β min-height: 18px; | |||
Β Β margin-top: 4px; | |||
Β Β margin-bottom: 12px; | |||
Β Β font-weight: bold; | |||
} | |||
#sc-cats { | |||
Β Β Β display: flex; | |||
Β Β flex-wrap: wrap; | |||
Β Β gap: 6px; | |||
Β Β margin-bottom: 14px; | |||
} | |||
.sc-cat-label { | |||
Β Β background: #ffffff; | |||
Β Β border: 1px solid #cbd5e1; | |||
Β Β border-radius: 16px; | |||
Β Β padding: 4px 10px; | |||
Β Β Β font-size: 0.85em; | Β Β Β font-size: 0.85em; | ||
Β Β Β color: # | Β Β cursor: pointer; | ||
Β Β Β margin | Β Β user-select: none; | ||
Β Β transition: all 0.2s; | |||
Β Β Β color: #475569; | |||
Β Β Β margin: 0 !important; | |||
} | } | ||
Β | .sc-cat-label.is-checked { | ||
Β Β background: #eff6ff; | |||
Β Β border-color: #3b82f6; | |||
Β Β color: #1d4ed8; | |||
Β Β font-weight: 500; | |||
} | |||
.sc-cat-label.is-disabled { | |||
Β Β opacity: 0.5; | |||
Β Β cursor: not-allowed; | |||
} | |||
.sc-cat-label input { | |||
Β Β Β display: none; | Β Β Β display: none; | ||
} | } | ||
Β | #sc-btn { | ||
Β Β Β width: 100%; | |||
Β Β Β background-color: #00af89; | |||
Β Β Β color: white; | |||
Β | Β Β Β border: none; | ||
Β Β Β border-radius: 4px; | |||
Β Β padding: 10px; | |||
Β Β Β | Β Β Β font-size: 14px; | ||
Β Β Β | Β Β Β font-weight: bold; | ||
Β Β Β cursor: pointer; | |||
Β Β Β | Β Β transition: background-color 0.2s; | ||
Β Β Β Β | } | ||
Β Β Β | #sc-btn:hover:not(:disabled) { | ||
Β Β Β background-color: #008a6d; | |||
Β Β Β | |||
Β Β Β Β | |||
Β Β Β | |||
Β | |||
Β Β Β | |||
} | } | ||
Β | #sc-btn:disabled { | ||
Β Β Β background-color: #cbd5e1; | |||
Β Β Β cursor: not-allowed; | |||
Β | |||
Β Β Β Β | |||
Β Β Β | |||
Β | |||
} | } | ||
Latest revision as of 22:42, 29 July 2026
/* ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ZelocoreCMS Wiki β MediaWiki:Common.css v4.0
Wikipedia-style layout with modern card polish
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
/* ββ GLOBAL: Hide Main Page title ββββββββββββββββββββββββββββββββββββ */
body.page-Main_Page h1#firstHeading,
body.page-Main_Page .firstHeading,
body.page-Main_Page .mw-page-title-main { display: none !important; }
/* ββ GLOBAL: Better wikitable ββββββββββββββββββββββββββββββββββββββββ */
table.wikitable {
border-radius: 8px;
overflow: hidden;
border-collapse: separate;
border-spacing: 0;
border: 1px solid #e2e8f0;
box-shadow: 0 2px 8px rgba(37,99,235,.06);
width: 100%;
}
table.wikitable th {
background: linear-gradient(90deg, #1e1b4b, #2563eb) !important;
color: #ffffff !important;
font-weight: 700;
border: none !important;
padding: 10px 12px !important;
}
table.wikitable td {
border: none !important;
border-bottom: 1px solid #f1f5f9 !important;
padding: 8px 12px !important;
vertical-align: middle !important;
}
table.wikitable tr:hover td { background: #eff6ff !important; }
table.wikitable tr:last-child td { border-bottom: none !important; }
/* ββ GLOBAL: Code blocks βββββββββββββββββββββββββββββββββββββββββββββ */
code, tt, kbd {
background: #f1f5f9;
border: 1px solid #e2e8f0;
border-radius: 4px;
padding: 1px 6px;
font-size: .88em;
color: #7c3aed;
}
pre {
background: #0f172a;
color: #e2e8f0;
border: 1px solid #334155;
border-radius: 8px;
padding: 16px 18px;
font-size: .875em;
line-height: 1.6;
overflow-x: auto;
position: relative;
}
/* ββ GLOBAL: Heading styles ββββββββββββββββββββββββββββββββββββββββββ */
#mw-content-text h2 {
border-bottom: 2px solid #2563eb;
padding-bottom: 4px;
margin-top: 1.5em;
color: #1e1b4b;
}
#mw-content-text h3 { color: #2563eb; }
/* ββ GLOBAL: Template callout boxes ββββββββββββββββββββββββββββββββββ */
.cms-note { background: #eff6ff; border-left: 4px solid #2563eb; border-radius: 8px; padding: 12px 16px; margin: 14px 0; color: #1e3a5f; font-size: .92em; }
.cms-warning { background: #fff7ed; border-left: 4px solid #f59e0b; border-radius: 8px; padding: 12px 16px; margin: 14px 0; color: #7c2d12; font-size: .92em; }
.cms-tip { background: #f0fdf4; border-left: 4px solid #059669; border-radius: 8px; padding: 12px 16px; margin: 14px 0; color: #064e3b; font-size: .92em; }
.cms-stub { background: #fefce8; border: 1px solid #fde047; border-radius: 8px; padding: 10px 14px; margin: 16px 0; color: #713f12; font-size: .88em; }
/* ββ GLOBAL: Fixed utility buttons βββββββββββββββββββββββββββββββββββ */
#cms-dark-toggle {
position: fixed; bottom: 80px; right: 18px;
width: 42px; height: 42px;
background: #1e1b4b; color: #fff;
border: none; border-radius: 50%;
font-size: 1.2em; cursor: pointer;
box-shadow: 0 4px 16px rgba(0,0,0,.3);
z-index: 9999;
}
#cms-back-top {
position: fixed; bottom: 24px; right: 18px;
width: 42px; height: 42px;
background: #2563eb; color: #fff;
border: none; border-radius: 50%;
font-size: 1.2em; cursor: pointer;
box-shadow: 0 4px 16px rgba(37,99,235,.4);
z-index: 9999; opacity: 0; pointer-events: none;
}
#cms-back-top.visible { opacity: 1; pointer-events: all; }
#cms-progress {
position: fixed; top: 0; left: 0;
height: 3px; width: 0%;
background: linear-gradient(90deg, #2563eb, #7c3aed);
z-index: 99999;
}
#cms-helpful {
background: #f8fafc; border: 1px solid #e2e8f0;
border-radius: 10px; padding: 14px 18px;
margin: 24px 0 8px; font-size: .9em; color: #334155;
}
.cms-helpful-btn {
background: #fff; border: 1.5px solid #e2e8f0;
border-radius: 20px; padding: 5px 16px;
cursor: pointer; font-size: .88em; font-weight: 600; margin: 0 4px;
}
/* ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
MAIN PAGE β Wikipedia-style layout (scoped to body.page-Main_Page)
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
/* ββ Top welcome banner ββββββββββββββββββββββββββββββββββββββββββββββ */
body.page-Main_Page #mp-topbanner {
background: #cee0f2;
border: 1px solid #a2a9b1;
border-radius: 0;
padding: 8px 16px;
margin-bottom: 14px;
text-align: center;
font-size: 1em;
color: #202122;
line-height: 1.5;
}
body.page-Main_Page #mp-topbanner a { color: #3366cc; }
/* ββ Two-column layout β Wikipedia proportions βββββββββββββββββββββββ */
body.page-Main_Page #mp-upper {
display: flex;
flex-wrap: wrap;
gap: 14px;
margin-bottom: 14px;
align-items: flex-start;
}
body.page-Main_Page #mp-left { flex: 1 1 58%; min-width: 300px; }
body.page-Main_Page #mp-right { flex: 1 1 35%; min-width: 260px; }
/* ββ Content cards β Wikipedia-box style βββββββββββββββββββββββββββββ */
body.page-Main_Page .mp-card {
background: #ffffff;
border: 1px solid #a2a9b1;
border-radius: 4px;
margin-bottom: 14px;
overflow: hidden;
}
body.page-Main_Page .mp-card-header {
padding: 6px 12px;
font-weight: bold;
font-size: .95em;
border-bottom: 1px solid #a2a9b1;
}
body.page-Main_Page .mp-card-header-blue { background: #cee0f2; color: #202122; }
body.page-Main_Page .mp-card-header-yellow { background: #fef6e7; color: #202122; }
body.page-Main_Page .mp-card-header-green { background: #d5f5e3; color: #202122; }
body.page-Main_Page .mp-card-header-purple { background: #e8d5f5; color: #202122; }
body.page-Main_Page .mp-card-header-gray { background: #eaecf0; color: #202122; }
body.page-Main_Page .mp-card-body { padding: 10px 12px; font-size: .9em; line-height: 1.65; color: #202122; }
body.page-Main_Page .mp-card-body ul { margin: 0; padding-left: 1.4em; }
body.page-Main_Page .mp-card-body li { margin-bottom: 4px; }
/* ββ Category cards inside Browse box ββββββββββββββββββββββββββββββββ */
body.page-Main_Page .mp-cat-grid {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 4px;
}
body.page-Main_Page .mp-cat-card {
flex: 1 1 120px;
border-radius: 6px;
padding: 10px 8px;
text-align: center;
border: 1px solid #c8ccd1;
transition: transform .18s, box-shadow .18s;
}
body.page-Main_Page .mp-cat-card:hover {
transform: translateY(-3px);
box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
body.page-Main_Page .mp-cat-card a {
display: flex;
flex-direction: column;
align-items: center;
gap: 3px;
text-decoration: none !important;
color: inherit !important;
}
body.page-Main_Page .mp-cat-icon { font-size: 1.8em; line-height: 1; display: block; }
body.page-Main_Page .mp-cat-name { font-size: .82em; font-weight: bold; display: block; margin-top: 3px; color: #202122; }
body.page-Main_Page .mp-cat-desc { font-size: .7em; color: #54595d; display: block; line-height: 1.2; }
/* Card colour themes */
body.page-Main_Page .mp-cat-blogging { background: linear-gradient(135deg,#fef3c7,#fde68a); border-color: #c8a000; }
body.page-Main_Page .mp-cat-headless { background: linear-gradient(135deg,#ede9fe,#ddd6fe); border-color: #6d28d9; }
body.page-Main_Page .mp-cat-ecommerce { background: linear-gradient(135deg,#dcfce7,#bbf7d0); border-color: #059669; }
body.page-Main_Page .mp-cat-enterprise { background: linear-gradient(135deg,#dbeafe,#bfdbfe); border-color: #2563eb; }
body.page-Main_Page .mp-cat-opensource { background: linear-gradient(135deg,#fee2e2,#fecaca); border-color: #dc2626; }
body.page-Main_Page .mp-cat-saas { background: linear-gradient(135deg,#e0f2fe,#bae6fd); border-color: #0891b2; }
body.page-Main_Page .mp-cat-wiki { background: linear-gradient(135deg,#f0fdf4,#dcfce7); border-color: #16a34a; }
body.page-Main_Page .mp-cat-all { background: linear-gradient(135deg,#f1f5f9,#e2e8f0); border-color: #64748b; }
/* ββ Portal grid β "Other areas" section βββββββββββββββββββββββββββββ */
body.page-Main_Page #mp-portals {
background: #ffffff;
border: 1px solid #a2a9b1;
border-radius: 4px;
margin-top: 14px;
overflow: hidden;
}
body.page-Main_Page #mp-portals-header {
background: #cee0f2;
border-bottom: 1px solid #a2a9b1;
padding: 6px 12px;
font-weight: bold;
font-size: .95em;
color: #202122;
}
body.page-Main_Page .mp-portal-grid {
display: flex;
flex-wrap: wrap;
background: #ffffff;
}
body.page-Main_Page .mp-portal-cell {
flex: 1 1 140px;
border-right: 1px solid #eaecf0;
border-bottom: 1px solid #eaecf0;
padding: 12px 8px;
text-align: center;
font-size: .85em;
transition: background .15s;
}
body.page-Main_Page .mp-portal-cell:hover { background: #eaf3fb; }
body.page-Main_Page .mp-portal-cell a { color: #3366cc !important; font-weight: bold; display: block; text-decoration: none; }
body.page-Main_Page .mp-portal-icon { font-size: 1.8em; display: block; margin-bottom: 4px; }
body.page-Main_Page .mp-portal-desc { display: block; color: #54595d; font-size: .8em; margin-top: 2px; font-weight: normal; }
/* ββ Contribute CTA ββββββββββββββββββββββββββββββββββββββββββββββββββ */
body.page-Main_Page #mp-contribute {
background: linear-gradient(135deg, #059669, #065f46);
border-radius: 4px;
padding: 20px 20px;
text-align: center;
margin-top: 14px;
color: #ffffff;
}
body.page-Main_Page #mp-contribute-title { font-size: 1.15em; font-weight: bold; color: #ffffff; margin-bottom: 8px; }
body.page-Main_Page #mp-contribute-desc { color: rgba(255,255,255,.9); margin-bottom: 14px; font-size: .92em; line-height: 1.55; }
body.page-Main_Page #mp-contribute a {
display: inline-block;
background: #ffffff;
color: #065f46 !important;
border-radius: 20px;
padding: 7px 18px;
font-weight: bold;
font-size: .9em;
text-decoration: none;
margin: 3px;
}
/* ββ Responsive ββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
@media screen and (max-width: 768px) {
body.page-Main_Page #mp-upper { display: block; }
body.page-Main_Page #mp-left, body.page-Main_Page #mp-right { width: 100%; min-width: 0; }
body.page-Main_Page .mp-cat-card { flex: 1 1 calc(50% - 8px); }
body.page-Main_Page .mp-portal-cell { flex: 1 1 calc(50% - 0px); }
}
/* Advanced Create Article Widget */
#advanced-create-widget {
display: flex;
flex-direction: column;
gap: 8px;
}
#create-article-title {
padding: 8px 12px;
border: 1px solid #c8ccd1;
border-radius: 4px;
font-size: 14px;
outline: none;
transition: border-color 0.2s, box-shadow 0.2s;
}
#create-article-title:focus {
border-color: #3366cc;
box-shadow: 0 0 0 2px rgba(51,102,204,0.2);
}
#create-article-title.is-invalid {
border-color: #d33;
box-shadow: 0 0 0 2px rgba(221,51,51,0.2);
}
#create-article-title.is-valid {
border-color: #00af89;
box-shadow: 0 0 0 2px rgba(0,175,137,0.2);
}
#create-article-status {
font-size: 12px;
min-height: 16px;
font-weight: 500;
}
.status-checking { color: #72777d; }
.status-error { color: #d33; }
.status-success { color: #00af89; }
#create-article-btn {
background-color: #3366cc;
color: white;
border: none;
border-radius: 4px;
padding: 8px 16px;
font-size: 14px;
font-weight: bold;
cursor: pointer;
transition: background-color 0.2s, transform 0.1s;
}
#create-article-btn:hover:not(:disabled) {
background-color: #2a4b8d;
}
#create-article-btn:active:not(:disabled) {
transform: translateY(1px);
}
#create-article-btn:disabled {
background-color: #c8ccd1;
cursor: not-allowed;
}
.create-article-links {
font-size: 12px;
text-align: center;
margin-top: 4px;
}
/* Strict Article Creator */
.strict-creator {
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 8px;
padding: 14px;
}
.strict-creator label.sc-main-label {
font-weight: bold;
display: block;
margin-bottom: 6px;
font-size: 0.9em;
color: #334155;
}
#sc-title {
width: 100%;
padding: 8px 12px;
border: 1px solid #cbd5e1;
border-radius: 4px;
font-size: 14px;
box-sizing: border-box;
transition: all 0.2s;
}
#sc-title:focus {
border-color: #3b82f6;
box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
outline: none;
}
#sc-status {
font-size: 12px;
min-height: 18px;
margin-top: 4px;
margin-bottom: 12px;
font-weight: bold;
}
#sc-cats {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 14px;
}
.sc-cat-label {
background: #ffffff;
border: 1px solid #cbd5e1;
border-radius: 16px;
padding: 4px 10px;
font-size: 0.85em;
cursor: pointer;
user-select: none;
transition: all 0.2s;
color: #475569;
margin: 0 !important;
}
.sc-cat-label.is-checked {
background: #eff6ff;
border-color: #3b82f6;
color: #1d4ed8;
font-weight: 500;
}
.sc-cat-label.is-disabled {
opacity: 0.5;
cursor: not-allowed;
}
.sc-cat-label input {
display: none;
}
#sc-btn {
width: 100%;
background-color: #00af89;
color: white;
border: none;
border-radius: 4px;
padding: 10px;
font-size: 14px;
font-weight: bold;
cursor: pointer;
transition: background-color 0.2s;
}
#sc-btn:hover:not(:disabled) {
background-color: #008a6d;
}
#sc-btn:disabled {
background-color: #cbd5e1;
cursor: not-allowed;
}