Jump to content

MediaWiki:Common.css: Difference between revisions

From Cult of Flight Wiki
fuck it we take the shit from wikipedia who even gaf anymore
some template i found on a random ass website
Line 1: Line 1:


.ambox {
table.ambox {
    width: 90%;
    margin: 0 auto 2px;
     border: 1px solid #a2a9b1;
     border: 1px solid #a2a9b1;
     border-left: 10px solid #36c;
     border-left: 10px solid #3680b0;
     background-color: #fbfbfb;
     background-color: #f0f7ff;
     box-sizing: border-box;
     box-sizing: border-box;
    border-collapse: separate;
    font-size: 0.875em;
    line-height: 1.5;
}
}
table.ambox + table.ambox { margin-top: -1px; }


.ambox td { border: none; vertical-align: middle; }
.ambox td.mbox-image { padding: 6px 0 6px 10px; text-align: center; width: 52px; }
.ambox td.mbox-text  { padding: 0.35em 0.6em; width: 100%; }


.ambox + link + .ambox,
.ambox + link + style + .ambox,
.ambox + link + link + .ambox,
.ambox + .mw-empty-elt + link + .ambox,
.ambox + .mw-empty-elt + link + style + .ambox,
.ambox + .mw-empty-elt + link + link + .ambox {
    margin-top: -1px;
}


table.ambox-notice    { border-left-color: #3680b0; background-color: #f0f7ff; }
table.ambox-content    { border-left-color: #c7a600; background-color: #fef9ed; }
table.ambox-style      { border-left-color: #b08c00; background-color: #fefce8; }
table.ambox-speedy    { border-left-color: #b32424; background-color: #fff0f0; }
table.ambox-delete    { border-left-color: #b32424; background-color: #fff8f8; }
table.ambox-move      { border-left-color: #7f4db5; background-color: #f8f2ff; }
table.ambox-protection { border-left-color: #72777d; background-color: #f5f5f5; }


html body.mediawiki .ambox.mbox-small-left {
@media (prefers-color-scheme: dark) {
     margin: 4px 1em 4px 0;
     table.ambox            { border-color: #4a4f57; }
    overflow: hidden;
     .ambox td.mbox-text    { color: #ddd; }
    width: 238px;
     .ambox td.mbox-text a  { color: #8eb4d9; }
    max-width: 100%;
     font-size: 88%;
     line-height: 1.25em;
}


.ambox-speedy {
    table.ambox-notice    { border-left-color: #6e9fcf; background-color: #101e2e; }
    border-left: 10px solid #b32424;  
    table.ambox-content    { border-left-color: #d4a017; background-color: #221900; }
    background-color: #fee7e6;        
    table.ambox-style     { border-left-color: #c9930a; background-color: #1e1600; }
}
    table.ambox-speedy    { border-left-color: #d45f5f; background-color: #2a0d0d; }
.ambox-delete {
     table.ambox-delete    { border-left-color: #d45f5f; background-color: #1e0a0a; }
    border-left: 10px solid #b32424;
    table.ambox-move      { border-left-color: #b07fe8; background-color: #1a0f2a; }
}
    table.ambox-protection { border-left-color: #8a9096; background-color: #202020; }
.ambox-content {
    border-left: 10px solid #f28500;
}
.ambox-style {
    border-left: 10px solid #fc3;    
}
.ambox-move {
    border-left: 10px solid #9932cc;
}
.ambox-protection {
    border-left: 10px solid #a2a9b1;  
}
 
 
.ambox .mbox-text {
    border: none;
     padding: 0.25em 0.5em;
    width: 100%;
}
.ambox .mbox-image {
    border: none;
    padding: 2px 0 2px 0.5em;
    text-align: center;
}
.ambox .mbox-imageright {
    border: none;
    padding: 2px 0.5em 2px 0;
    text-align: center;
}
.ambox .mbox-empty-cell {
    border: none;
    padding: 0;
    width: 1px;
}
}

Revision as of 06:33, 2 April 2026


table.ambox {
    width: 90%;
    margin: 0 auto 2px;
    border: 1px solid #a2a9b1;
    border-left: 10px solid #3680b0;
    background-color: #f0f7ff;
    box-sizing: border-box;
    border-collapse: separate;
    font-size: 0.875em;
    line-height: 1.5;
}
table.ambox + table.ambox { margin-top: -1px; }

.ambox td { border: none; vertical-align: middle; }
.ambox td.mbox-image { padding: 6px 0 6px 10px; text-align: center; width: 52px; }
.ambox td.mbox-text  { padding: 0.35em 0.6em; width: 100%; }


table.ambox-notice     { border-left-color: #3680b0; background-color: #f0f7ff; }
table.ambox-content    { border-left-color: #c7a600; background-color: #fef9ed; }
table.ambox-style      { border-left-color: #b08c00; background-color: #fefce8; }
table.ambox-speedy     { border-left-color: #b32424; background-color: #fff0f0; }
table.ambox-delete     { border-left-color: #b32424; background-color: #fff8f8; }
table.ambox-move       { border-left-color: #7f4db5; background-color: #f8f2ff; }
table.ambox-protection { border-left-color: #72777d; background-color: #f5f5f5; }

@media (prefers-color-scheme: dark) {
    table.ambox            { border-color: #4a4f57; }
    .ambox td.mbox-text    { color: #ddd; }
    .ambox td.mbox-text a  { color: #8eb4d9; }

    table.ambox-notice     { border-left-color: #6e9fcf; background-color: #101e2e; }
    table.ambox-content    { border-left-color: #d4a017; background-color: #221900; }
    table.ambox-style      { border-left-color: #c9930a; background-color: #1e1600; }
    table.ambox-speedy     { border-left-color: #d45f5f; background-color: #2a0d0d; }
    table.ambox-delete     { border-left-color: #d45f5f; background-color: #1e0a0a; }
    table.ambox-move       { border-left-color: #b07fe8; background-color: #1a0f2a; }
    table.ambox-protection { border-left-color: #8a9096; background-color: #202020; }
}