MediaWiki:Templatestyles.css: Difference between revisions

From Galaxypedia
m (1px to 2px)
Tag: Reverted
mNo edit summary
Tag: Reverted
Line 98: Line 98:
     padding: 0;
     padding: 0;
     display: block;
     display: block;
    margin-top: -1px;
}
}



Revision as of 21:57, 25 May 2023

/* CSS for templates and such */
/* Styles originally by: NHeoShadow | Remade for use on the Galaxypedia by smallketchup82 */

/* For template cards, like VIP ship only, limited class, admin class, unreleased, etc.. */
div.TemplateRevision .container {
    background-color: var(--mainbgcolor);
    padding: 8px;
    font-family: Calibri;
    font-size: 14px;
    border-top: 5px solid var(--mainbordercolorS);
    line-height: 18px;
    box-shadow: 1px 1px 1px black;
    opacity: 0.90;
    transition: 0.5s;
    display: block;
    cursor: default;
    border-radius: 10px;
}

div.TemplateRevision .container h1 {
    font-size: 26px;
    font-variant: small-caps;
    font-weight: bold;
    margin: 0;
    padding: 0;
    display: block;
    margin-top: -4px;
}

div.TemplateRevision .container h3 {
    font-size: 18px;
    font-weight: normal;
    margin: 0;
    padding: 0;
    display: block;
}

div.TemplateRevision .container:hover {
    opacity: 1;
}

/* Apply header styling to any element classed as a header--used for <p> or similar elements to avoid TOC errors */
.header1 {
    font-size: 26px;
    font-variant: small-caps;
    font-weight: bold;
    margin: 1px !important;
    padding: 0;
    display: block;
    margin-top: -4px !important;
    line-height: 34px;
}

.header3 {
    font-size: 18px;
    font-weight: normal;
    margin: 1px !important;
    padding: 0;
    display: block;
}

/* enforce minimum width on infobox header to prevent flex item compression */
h3.pi-data-label.pi-secondary-font {
    min-width: 90px;
}


/* Modification of the original template card stuff from higher up in this file, by SeaswimmerTheFsh */
div.TemplateRevision .container-sea {
    background-color: #0c0c0c;
    padding: 8px;
    font-family: Calibri;
    font-size: 14px;
    border: 2px solid var(--mainbordercolorS);
    line-height: 18px;
    box-shadow: 1px 1px 1px black;
    opacity: 0.90;
    transition: 0.5s;
    display: block;
    cursor: default;
    border-radius: 10px;
}

div.TemplateRevision .container-sea h1 {
    font-size: 26px;
    font-variant: small-caps;
    font-weight: bold;
    margin: 0;
    padding: 0;
    display: block;
    margin-top: -4px;
}

div.TemplateRevision .container-sea h3 {
    font-size: 18px;
    font-weight: normal;
    margin: 0;
    padding: 0;
    display: block;
    margin-top: -1px;
}

div.TemplateRevision .container-sea:hover {
    opacity: 1;
}