コンテンツにスキップ

「MediaWiki:Common.css」の版間の差分

提供: owarai.wiki
Remove owarai-mascot-raccoon background-image override
Add .owarai-hero responsive grid styles for Main Page banner
230行目: 230行目:
     }
     }
}
}
/* === owarai-hero (Main Page welcome banner) ============================== */
.owarai-hero {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
    align-items: center;
    background: #fffaf0;
    border: 1px solid #f0d000;
    padding: 1.4em;
    margin-bottom: 1em;
    box-sizing: border-box;
}
.owarai-hero-text {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
}
.owarai-hero-text h1 {
    margin: 0 0 0.4em 0;
    border-bottom: none;
    padding-bottom: 0;
}
.owarai-hero-text p { margin: 0.5em 0; }
.owarai-hero-image {
    flex: 0 0 auto;
    text-align: center;
}
.owarai-hero-image img {
    max-width: 100%;
    height: auto;
    width: 220px;
}
@media (min-width: 760px) {
    .owarai-hero { flex-direction: row; gap: 2em; align-items: center; }
    .owarai-hero-text { text-align: left; }
    .owarai-hero-text h1 { font-size: 2.2em; }
    .owarai-hero-image { order: 2; }
    .owarai-hero-image img { width: 260px; }
}
/* === /owarai-hero ======================================================== */

2026年5月2日 (土) 12:47時点における版

.mw-parser-output {
    line-height: 1.75;
    font-size: 15px;
    color: #2c2c2c;
}

.mw-parser-output p {
    margin: 0.7em 0 1em 0;
}

.mw-parser-output h2 {
    border-bottom: 2px solid #f0c000;
    padding-bottom: 0.35em;
    margin-top: 1.7em;
    margin-bottom: 0.8em;
    font-size: 1.55em;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.mw-parser-output h3 {
    border-bottom: 1px solid #ecdfb0;
    padding-bottom: 0.25em;
    margin-top: 1.3em;
    margin-bottom: 0.6em;
    font-size: 1.18em;
    font-weight: 600;
    color: #3a3000;
}

.mw-parser-output h4 {
    margin-top: 1em;
    margin-bottom: 0.4em;
    font-size: 1.05em;
    font-weight: 600;
    color: #444;
}

table.wikitable,
table.infobox,
table.navbox {
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 4px;
    overflow: hidden;
    margin: 1.4em 0;
    font-size: 0.95em;
    box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

table.wikitable {
    width: auto;
}

table.wikitable th,
table.wikitable > caption {
    background: #fbfbfb;
    color: #444;
    font-weight: 600;
    border-bottom: 2px solid #f0c000;
    padding: 11px 16px;
    text-align: left;
    letter-spacing: 0.02em;
}

table.wikitable td {
    padding: 11px 16px;
    border-top: 1px solid #f3f3f3;
    color: #333;
    vertical-align: top;
}

table.wikitable tbody tr:first-child td {
    border-top: none;
}

table.wikitable tbody tr:nth-child(even) td {
    background: #fcfcfa;
}

table.wikitable tbody tr:hover td {
    background: #fff8e1;
    transition: background 0.15s ease;
}

table.infobox {
    width: 280px;
    float: right;
    margin: 0 0 1.2em 1.4em;
    border: 1px solid #ececec;
}

table.infobox caption {
    background: #f0c000;
    color: #1a1500;
    font-size: 1.08em;
    font-weight: 700;
    padding: 14px 14px;
    text-align: center;
    border-bottom: none;
    letter-spacing: 0.01em;
}

table.infobox th {
    background: #fbfaf3;
    color: #555;
    font-weight: 500;
    font-size: 0.88em;
    border-top: 1px solid #f1ebd5;
    padding: 9px 12px;
    text-align: left;
    width: 38%;
    vertical-align: top;
    letter-spacing: 0.02em;
}

table.infobox td {
    padding: 9px 12px;
    border-top: 1px solid #f1ebd5;
    color: #2c2c2c;
    vertical-align: top;
    word-break: break-word;
    line-height: 1.6;
}

table.infobox tr:nth-child(2) th,
table.infobox tr:nth-child(2) td {
    border-top: none;
}

table.navbox {
    font-size: 0.86em;
    background: #ffffff;
    border-radius: 4px;
    margin: 1.5em 0 0.5em 0;
}

table.navbox th {
    background: #fff8de;
    color: #5a4500;
    border-bottom: 1px solid #f0c000;
    padding: 10px 14px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.02em;
}

table.navbox td {
    padding: 9px 13px;
    border-top: 1px solid #f0f0f0;
    color: #333;
    vertical-align: top;
}

table.navbox tr td:first-child {
    background: #fcfcfc;
    font-weight: 600;
    color: #555;
    width: 16%;
    border-right: 1px solid #f0f0f0;
    font-size: 0.92em;
}

.mw-parser-output ul,
.mw-parser-output ol {
    margin: 0.6em 0 0.9em 1.4em;
    line-height: 1.75;
}

.mw-parser-output li {
    margin: 0.25em 0;
}

.mw-parser-output ol.references,
.mw-parser-output .references {
    font-size: 0.88em;
    line-height: 1.65;
    color: #555;
}

.mw-parser-output a.external {
    color: #2754a8;
}

.mw-parser-output dl, .mw-parser-output dd {
    line-height: 1.65;
}

#mw-content-text > .mw-parser-output {
    padding: 0.4em 0;
}

@media screen and (max-width: 720px) {
    table.wikitable,
    table.infobox,
    table.navbox {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        font-size: 0.93em;
        margin: 1em 0;
    }
    table.infobox {
        float: none !important;
        margin: 0.4em 0 1.2em 0 !important;
    }
    table.wikitable th,
    table.wikitable td,
    table.infobox th,
    table.infobox td,
    table.navbox th,
    table.navbox td {
        padding: 8px 10px;
        word-break: break-word;
    }
    table.infobox th {
        width: 40%;
    }
    .mw-parser-output {
        font-size: 15px;
        line-height: 1.7;
    }
    .mw-parser-output h2 {
        font-size: 1.35em;
        margin-top: 1.4em;
    }
    .mw-parser-output h3 {
        font-size: 1.1em;
    }
}

/* === owarai-hero (Main Page welcome banner) ============================== */
.owarai-hero {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
    align-items: center;
    background: #fffaf0;
    border: 1px solid #f0d000;
    padding: 1.4em;
    margin-bottom: 1em;
    box-sizing: border-box;
}
.owarai-hero-text {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
}
.owarai-hero-text h1 {
    margin: 0 0 0.4em 0;
    border-bottom: none;
    padding-bottom: 0;
}
.owarai-hero-text p { margin: 0.5em 0; }
.owarai-hero-image {
    flex: 0 0 auto;
    text-align: center;
}
.owarai-hero-image img {
    max-width: 100%;
    height: auto;
    width: 220px;
}
@media (min-width: 760px) {
    .owarai-hero { flex-direction: row; gap: 2em; align-items: center; }
    .owarai-hero-text { text-align: left; }
    .owarai-hero-text h1 { font-size: 2.2em; }
    .owarai-hero-image { order: 2; }
    .owarai-hero-image img { width: 260px; }
}
/* === /owarai-hero ======================================================== */