📌 Current mission: start filling the wiki — create pages, upload images, and join the Discord!
MediaWiki:Common.css: Difference between revisions
From Asylum Wiki
Jump to navigationJump to search
Refine layout CSS with real measurements |
Full design polish: sitewide chrome + window boxes |
||
| Line 1: | Line 1: | ||
/* | /* Asylum Wiki — sitewide styles (MonoBook base, classic-wiki look with modern polish). | ||
Edit live at https://4sylum.com/wiki/MediaWiki:Common.css (sysop only). */ | Edit live at https://4sylum.com/wiki/MediaWiki:Common.css (sysop only). */ | ||
/* | /* ===== page chrome ===== */ | ||
body { | |||
background-color: #f9f9f9; | |||
background-image: linear-gradient(rgba(115, 124, 190, 0.35), rgba(115, 124, 190, 0.10) 220px, rgba(0, 0, 0, 0) 480px); | |||
background-repeat: no-repeat; | |||
} | } | ||
a { | a { color: #002bb8; } | ||
a:visited { color: #5a3696; } | |||
a.new, #p-cactions a.new { color: #cc2200; } | |||
/* content pane */ | |||
#content { | |||
border: 1px solid #8888cc; | |||
border-radius: 8px; | |||
box-shadow: 0 1px 4px rgba(60, 60, 120, 0.15); | |||
} | } | ||
a | /* page tabs (main page / discussion / edit / history) */ | ||
#p-cactions li { | |||
border: 1px solid #8888cc; | |||
border-bottom: none; | |||
border-radius: 6px 6px 0 0; | |||
} | |||
#p-cactions li a { | |||
border-radius: 6px 6px 0 0; | |||
} | } | ||
. | /* sidebar boxes */ | ||
border-bottom: | .portlet h3, | ||
.portlet h5 { | |||
background: #ababff; | |||
border: 1px solid #8888cc; | |||
border-bottom: none; | |||
border-radius: 6px 6px 0 0; | |||
padding: 3px 8px; | |||
font-weight: bold; | |||
color: #1a1a4e; | |||
} | } | ||
.portlet .pBody { | |||
border: 1px solid #8888cc; | |||
border-radius: 0 0 6px 6px; | |||
background: #fdfdff; | |||
} | |||
#searchInput { border-radius: 4px; } | |||
/* | /* footer */ | ||
# | #footer { | ||
background- | border: 1px solid #8888cc; | ||
border-radius: 8px; | |||
background: #eef2ff; | |||
} | |||
/* sitenotice banner */ | |||
#siteNotice { | |||
background: #fffbe6; | |||
border: 1px solid #d4c766; | |||
border-radius: 6px; | |||
padding: 3px 10px; | |||
margin: 4px 8px 8px; | |||
font-size: 95%; | |||
text-align: center; | |||
} | |||
/* ===== article niceties (every page should look good) ===== */ | |||
#toc, .toc { | |||
border: 1px solid #8888cc; | |||
border-radius: 6px; | |||
background: #eef2ff; | |||
padding: 6px 12px; | |||
} | } | ||
table.wikitable { | table.wikitable { | ||
background- | background: #f8f9ff; | ||
border: 1px solid # | border: 1px solid #8888cc; | ||
border-radius: 6px; | |||
border-collapse: separate; | |||
border-spacing: 0; | |||
overflow: hidden; | |||
} | |||
table.wikitable > * > tr > th { | |||
background: #d6daf0; | |||
border: 1px solid #aaaabb; | |||
} | |||
table.wikitable > * > tr > td { border: 1px solid #ccccdd; } | |||
div.thumbinner { | |||
border: 1px solid #8888cc; | |||
border-radius: 6px; | |||
background: #f8f9ff; | |||
} | |||
blockquote { | |||
border-left: 4px solid #ababff; | |||
background: #eef2ff; | |||
border-radius: 0 6px 6px 0; | |||
padding: 6px 12px; | |||
margin-left: 0; | |||
} | } | ||
table | /* infobox helper for article pages — use class="infobox" on a table */ | ||
.infobox { | |||
background | float: right; | ||
border: 1px solid # | clear: right; | ||
width: 270px; | |||
margin: 0 0 12px 14px; | |||
background: #f8f9ff; | |||
border: 1px solid #8888cc; | |||
border-radius: 6px; | |||
font-size: 90%; | |||
} | |||
.infobox th { background: #d6daf0; } | |||
.infobox-title { | |||
background: #ababff; | |||
border-radius: 5px 5px 0 0; | |||
font-weight: bold; | |||
text-align: center; | |||
padding: 4px; | |||
} | } | ||
/* | /* ===== main-page building blocks (asy-*) ===== */ | ||
.asy-outer { | .asy-outer { | ||
background: #eef2ff; | |||
border: 1px solid #8888cc; | border: 1px solid #8888cc; | ||
border-radius: 8px; | |||
padding: 12px | padding: 12px 18px; | ||
margin-bottom: | margin-bottom: 12px; | ||
box-shadow: 0 1px 3px rgba(60, 60, 120, 0.12); | |||
} | } | ||
.asy-header { | .asy-header { | ||
background: linear-gradient(#e4e7fb, #ababff); | |||
text-align: center; | text-align: center; | ||
padding: 14px 20px; | |||
} | } | ||
.asy-header .asy- | .asy-header-flex { | ||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
gap: 28px; | |||
} | |||
.asy-header-side img { | |||
border-radius: 50%; | |||
border: 3px solid #6a6ad0; | |||
box-shadow: 0 2px 6px rgba(40, 40, 100, 0.3); | |||
} | } | ||
.asy- | .asy-title { font-size: 30px; font-weight: bold; } | ||
.asy-title .asy-name { color: #2929cc; } | |||
.asy-tagline { font-style: italic; margin-top: 2px; font-size: 115%; } | |||
} | .asy-serving { margin-top: 4px; } | ||
.asy-cta { color: #a00000; font-weight: bold; margin-top: 6px; } | |||
.asy-navlinks { | .asy-navlinks { | ||
border-top: 1px solid #8888cc; | border-top: 1px solid #8888cc; | ||
margin-top: 10px; | margin-top: 10px; | ||
| Line 69: | Line 165: | ||
} | } | ||
.asy-columns { | .asy-columns { display: flex; gap: 12px; align-items: stretch; margin-bottom: 12px; } | ||
} | |||
.asy-col { | .asy-col { | ||
flex: 1; | flex: 1; | ||
background: #eef2ff; | |||
border: 1px solid #8888cc; | border: 1px solid #8888cc; | ||
border-radius: 8px; | |||
padding: 10px; | padding: 10px 14px; | ||
box-shadow: 0 1px 3px rgba(60, 60, 120, 0.12); | |||
} | } | ||
.asy-col h2 { | .asy-col h2, .asy-outer h2 { | ||
color: #a00000; | color: #a00000; | ||
border-bottom: none; | border-bottom: none; | ||
text-align: center; | text-align: center; | ||
font-size: | font-size: 24px; | ||
margin-top: | font-weight: bold; | ||
margin-top: 2px; | |||
} | } | ||
.asy- | /* window-style inner boxes (retro OS window chrome) */ | ||
.asy-window { | |||
background: #fff; | background: #fff; | ||
border: 1px solid # | border: 1px solid #7d7dbe; | ||
border-radius: 4px; | |||
box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.18); | |||
overflow: hidden; | |||
} | } | ||
.asy-titlebar { | |||
.asy- | display: flex; | ||
display: | justify-content: space-between; | ||
align-items: center; | |||
background: linear-gradient(90deg, #ababff, #d0d4f7); | |||
border-bottom: 1px solid #7d7dbe; | |||
padding: 2px 6px; | |||
font-weight: bold; | |||
font-size: 92%; | |||
} | } | ||
.asy-titlebar .asy-x { | |||
.asy- | display: inline-block; | ||
width: 16px; | |||
height: 16px; | |||
line-height: 14px; | |||
text-align: center; | text-align: center; | ||
background: #e8e8f5; | |||
border: 1px solid # | border: 1px solid #7d7dbe; | ||
border-radius: 3px; | |||
font- | font-size: 10px; | ||
} | } | ||
.asy-window-body { padding: 10px 12px; } | |||
/* legacy inner box (still used in places) */ | |||
.asy-box-inner { | |||
background: #fff; | |||
border: 1px solid #8888cc; | |||
border-radius: 4px; | |||
padding: 10px; | |||
.asy- | |||
background: # | |||
border-radius: | |||
padding: | |||
} | } | ||
/* portals */ | |||
.asy-portal-grid { | .asy-portal-grid { | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: | gap: 6px; | ||
justify-content: center; | |||
} | } | ||
.asy-portal { | .asy-portal { | ||
flex: 0 0 170px; | flex: 0 0 170px; | ||
| Line 164: | Line 238: | ||
justify-content: center; | justify-content: center; | ||
border-radius: 5px; | border-radius: 5px; | ||
border: 1px solid rgba(0, 0, 0, 0.35); | |||
padding: 0 5px; | padding: 0 5px; | ||
transition: transform 0.12s ease, box-shadow 0.12s ease; | |||
} | } | ||
.asy-portal:hover { | |||
.asy-portal | transform: translateY(-2px); | ||
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25); | |||
} | } | ||
.asy-portal a { font-weight: bold; font-size: 110%; text-decoration: none; } | |||
.asy-portal.c1 { background: #ffffff; } | .asy-portal.c1 { background: #ffffff; } | ||
.asy-portal.c2 { background: #eef2ff; } | .asy-portal.c2 { background: #eef2ff; } | ||
| Line 182: | Line 258: | ||
.asy-portal.c8 { background: #192d2c; } | .asy-portal.c8 { background: #192d2c; } | ||
.asy-portal.c8 a { color: #fff !important; } | .asy-portal.c8 a { color: #fff !important; } | ||
.asy-events li { margin-bottom: 4px; } | |||
.asy-footnote { text-align: center; font-size: 90%; margin-top: 6px; } | |||
@media (max-width: 800px) { | |||
.asy-columns { flex-direction: column; } | |||
.asy-header-flex { flex-direction: column; gap: 10px; } | |||
.asy-portal { flex: 1 1 40%; } | |||
} | |||
Revision as of 15:39, 12 July 2026
/* Asylum Wiki — sitewide styles (MonoBook base, classic-wiki look with modern polish).
Edit live at https://4sylum.com/wiki/MediaWiki:Common.css (sysop only). */
/* ===== page chrome ===== */
body {
background-color: #f9f9f9;
background-image: linear-gradient(rgba(115, 124, 190, 0.35), rgba(115, 124, 190, 0.10) 220px, rgba(0, 0, 0, 0) 480px);
background-repeat: no-repeat;
}
a { color: #002bb8; }
a:visited { color: #5a3696; }
a.new, #p-cactions a.new { color: #cc2200; }
/* content pane */
#content {
border: 1px solid #8888cc;
border-radius: 8px;
box-shadow: 0 1px 4px rgba(60, 60, 120, 0.15);
}
/* page tabs (main page / discussion / edit / history) */
#p-cactions li {
border: 1px solid #8888cc;
border-bottom: none;
border-radius: 6px 6px 0 0;
}
#p-cactions li a {
border-radius: 6px 6px 0 0;
}
/* sidebar boxes */
.portlet h3,
.portlet h5 {
background: #ababff;
border: 1px solid #8888cc;
border-bottom: none;
border-radius: 6px 6px 0 0;
padding: 3px 8px;
font-weight: bold;
color: #1a1a4e;
}
.portlet .pBody {
border: 1px solid #8888cc;
border-radius: 0 0 6px 6px;
background: #fdfdff;
}
#searchInput { border-radius: 4px; }
/* footer */
#footer {
border: 1px solid #8888cc;
border-radius: 8px;
background: #eef2ff;
}
/* sitenotice banner */
#siteNotice {
background: #fffbe6;
border: 1px solid #d4c766;
border-radius: 6px;
padding: 3px 10px;
margin: 4px 8px 8px;
font-size: 95%;
text-align: center;
}
/* ===== article niceties (every page should look good) ===== */
#toc, .toc {
border: 1px solid #8888cc;
border-radius: 6px;
background: #eef2ff;
padding: 6px 12px;
}
table.wikitable {
background: #f8f9ff;
border: 1px solid #8888cc;
border-radius: 6px;
border-collapse: separate;
border-spacing: 0;
overflow: hidden;
}
table.wikitable > * > tr > th {
background: #d6daf0;
border: 1px solid #aaaabb;
}
table.wikitable > * > tr > td { border: 1px solid #ccccdd; }
div.thumbinner {
border: 1px solid #8888cc;
border-radius: 6px;
background: #f8f9ff;
}
blockquote {
border-left: 4px solid #ababff;
background: #eef2ff;
border-radius: 0 6px 6px 0;
padding: 6px 12px;
margin-left: 0;
}
/* infobox helper for article pages — use class="infobox" on a table */
.infobox {
float: right;
clear: right;
width: 270px;
margin: 0 0 12px 14px;
background: #f8f9ff;
border: 1px solid #8888cc;
border-radius: 6px;
font-size: 90%;
}
.infobox th { background: #d6daf0; }
.infobox-title {
background: #ababff;
border-radius: 5px 5px 0 0;
font-weight: bold;
text-align: center;
padding: 4px;
}
/* ===== main-page building blocks (asy-*) ===== */
.asy-outer {
background: #eef2ff;
border: 1px solid #8888cc;
border-radius: 8px;
padding: 12px 18px;
margin-bottom: 12px;
box-shadow: 0 1px 3px rgba(60, 60, 120, 0.12);
}
.asy-header {
background: linear-gradient(#e4e7fb, #ababff);
text-align: center;
padding: 14px 20px;
}
.asy-header-flex {
display: flex;
align-items: center;
justify-content: center;
gap: 28px;
}
.asy-header-side img {
border-radius: 50%;
border: 3px solid #6a6ad0;
box-shadow: 0 2px 6px rgba(40, 40, 100, 0.3);
}
.asy-title { font-size: 30px; font-weight: bold; }
.asy-title .asy-name { color: #2929cc; }
.asy-tagline { font-style: italic; margin-top: 2px; font-size: 115%; }
.asy-serving { margin-top: 4px; }
.asy-cta { color: #a00000; font-weight: bold; margin-top: 6px; }
.asy-navlinks {
border-top: 1px solid #8888cc;
margin-top: 10px;
padding-top: 6px;
}
.asy-columns { display: flex; gap: 12px; align-items: stretch; margin-bottom: 12px; }
.asy-col {
flex: 1;
background: #eef2ff;
border: 1px solid #8888cc;
border-radius: 8px;
padding: 10px 14px;
box-shadow: 0 1px 3px rgba(60, 60, 120, 0.12);
}
.asy-col h2, .asy-outer h2 {
color: #a00000;
border-bottom: none;
text-align: center;
font-size: 24px;
font-weight: bold;
margin-top: 2px;
}
/* window-style inner boxes (retro OS window chrome) */
.asy-window {
background: #fff;
border: 1px solid #7d7dbe;
border-radius: 4px;
box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.18);
overflow: hidden;
}
.asy-titlebar {
display: flex;
justify-content: space-between;
align-items: center;
background: linear-gradient(90deg, #ababff, #d0d4f7);
border-bottom: 1px solid #7d7dbe;
padding: 2px 6px;
font-weight: bold;
font-size: 92%;
}
.asy-titlebar .asy-x {
display: inline-block;
width: 16px;
height: 16px;
line-height: 14px;
text-align: center;
background: #e8e8f5;
border: 1px solid #7d7dbe;
border-radius: 3px;
font-size: 10px;
}
.asy-window-body { padding: 10px 12px; }
/* legacy inner box (still used in places) */
.asy-box-inner {
background: #fff;
border: 1px solid #8888cc;
border-radius: 4px;
padding: 10px;
}
/* portals */
.asy-portal-grid {
display: flex;
flex-wrap: wrap;
gap: 6px;
justify-content: center;
}
.asy-portal {
flex: 0 0 170px;
height: 60px;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
border-radius: 5px;
border: 1px solid rgba(0, 0, 0, 0.35);
padding: 0 5px;
transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.asy-portal:hover {
transform: translateY(-2px);
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}
.asy-portal a { font-weight: bold; font-size: 110%; text-decoration: none; }
.asy-portal.c1 { background: #ffffff; }
.asy-portal.c2 { background: #eef2ff; }
.asy-portal.c3 { background: #f2f2f2; }
.asy-portal.c4 { background: #8899aa; }
.asy-portal.c4 a { color: #fff !important; }
.asy-portal.c5 { background: #b1cc6a; }
.asy-portal.c6 { background: #f5e0ff; }
.asy-portal.c7 { background: #b57245; }
.asy-portal.c7 a { color: #fff !important; }
.asy-portal.c8 { background: #192d2c; }
.asy-portal.c8 a { color: #fff !important; }
.asy-events li { margin-bottom: 4px; }
.asy-footnote { text-align: center; font-size: 90%; margin-top: 6px; }
@media (max-width: 800px) {
.asy-columns { flex-direction: column; }
.asy-header-flex { flex-direction: column; gap: 10px; }
.asy-portal { flex: 1 1 40%; }
}