📌 Current mission: start filling the wiki — create pages, upload images, and join the Discord!

MediaWiki:Common.css

From Asylum Wiki
Revision as of 16:35, 12 July 2026 by Felix (talk | contribs) (Building block styles (infobox/notice/flair/create box))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* 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%; }
}
/* emote autocomplete dropdown (see MediaWiki:Common.js) */
.emote-ac {
    position: absolute;
    z-index: 9999;
    background: #fff;
    border: 1px solid #8888cc;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    font-size: 13px;
    min-width: 180px;
    max-height: 264px;
    overflow-y: auto;
}
.emote-ac-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    cursor: pointer;
}
.emote-ac-item img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.emote-ac-active {
    background: #e6e6fa;
}
/* ===== article building blocks (Infobox / Notice / Flair / create box) ===== */

.infobox {
    border-collapse: separate;
    border-spacing: 0;
}
.infobox-image {
    text-align: center;
    background: #fff;
    padding: 8px;
}
.infobox-caption {
    font-weight: bold;
    font-size: 92%;
    margin-top: 4px;
}
.infobox-label {
    background: #d6daf0;
    text-align: left;
    padding: 4px 8px;
    width: 38%;
    vertical-align: top;
    font-size: 92%;
}
.infobox-data {
    padding: 4px 8px;
    font-size: 92%;
    vertical-align: top;
}

.asy-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 8px;
    border: 2px solid #88aacc;
    padding: 8px 16px;
    margin: 8px auto 12px;
    max-width: 780px;
    text-align: center;
}
.asy-notice-img { flex: 0 0 auto; }
.asy-notice-body { flex: 1; }
.asy-notice-title { font-weight: bold; font-size: 120%; }
.asy-notice-text { font-size: 95%; }
.asy-notice-red { background: linear-gradient(#ffe3e3, #ffb3b3); border-color: #c00000; }
.asy-notice-red .asy-notice-title { color: #990000; }
.asy-notice-yellow { background: #fffbe6; border-color: #d4c766; }
.asy-notice-blue { background: #e8f0ff; border-color: #88aacc; }
.asy-notice-green { background: #eaffea; border-color: #66aa66; }
.asy-notice-gray { background: #f2f2f2; border-color: #999999; }

.asy-flair { margin: 4px 0; }

.asy-create { margin-top: 10px; }
.asy-create input[type="text"] {
    border: 1px solid #8888cc;
    border-radius: 4px;
    padding: 5px 10px;
    width: 260px;
}
.asy-create button,
.asy-create input[type="submit"],
.asy-create .mw-ui-button {
    border: 1px solid #6a6ad0;
    border-radius: 4px;
    background: #ababff;
    font-weight: bold;
    padding: 5px 14px;
    cursor: pointer;
    margin-left: 4px;
}
.asy-create button:hover,
.asy-create input[type="submit"]:hover {
    background: #c0c4f0;
}