MediaWiki:Minerva.css: Difference between revisions

m testing update - chatgpt
m fixing the last edit
 
(184 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* All CSS here will be loaded for users of the MinervaNeue skin */
/* All CSS here will be loaded for users of the MinervaNeue skin */


html, body {
 
     background: url("https://example.com/your-background.jpg") no-repeat center center fixed;
/* TABLES, INFOBOXES, HEADERS ETC */
     background-size: cover;
.wikitable {
     min-height: 100%;
     background-color: transparent;
     border-radius: 4px;
}
.wikitable > tr > th,
.wikitable > tr > td,
.wikitable > * > tr > th,
.wikitable > * > tr > td {
     background: white;
}
}


/* Ensure Minerva wrapper doesn’t override it */
.infobox.vevent {
.minerva {
     border-radius: 8px;
     background: transparent !important;
}
}


/* Make article content readable */
@media (min-width:640px) {
.content {
.infobox.vevent {
     background-color: rgba(255, 255, 255, 0.85);
    margin-left: 1em;
}
}
 
.infobox-image {
    padding: 0px;
    border: 1px solid var(--box-shadow-color-base);
    border-radius: 4px;
}
.infobox-above.summary {
    padding-top: 6px;
    border-radius: 4px;
    border: 1px solid var(--box-shadow-color-base);
}
 
 
 
.branding-box {
    font-weight: bold;
}
 
/* blob for framing of the JPGs */
figure[typeof~="mw:File/Thumb"]:has(> a > img[src$=".jpg"]),
figure[typeof~="mw:File/Thumb"]:has(> a > img[src$=".jpeg"]) {
    border: solid 1px var(--box-shadow-color-base);
    border-bottom:none;
}
figure[typeof~="mw:File/Thumb"]:has(> a > img[src$=".jpg"]) > figcaption,
figure[typeof~="mw:File/Thumb"]:has(> a > img[src$=".jpeg"]) > figcaption {
    padding: 6px !important;
    margin-top: 0px;
    border: 1px solid var(--box-shadow-color-base);
    border-top: none;
    background-color: #FFF;
}
/* end of blob for framing of the JPGs */
 
/* BACKGROUNDS, GENERAL DESING */
 
:root {
--background-color-progressive: #4ACB;
}
 
@media screen and (min-width:1250px) {
  .banner-container,
  .minerva-anon-talk-message,
  .minerva-header,
  .page-header-bar,
  .overlay-header,
  .content,
  .overlay-content,
  .content-unstyled,
  .pre-content,
  .post-content,
  #mw-content-text > form {
    max-width:1250px
  }
}
 
.overlay.search-overlay {
  background: #FFFD;
}
#mw-mf-page-center::before {
    content: "";
    background: url(/images/c/c1/Sidebar_repeat.webp);
    transform: scaleX(-1);
    background-repeat: repeat-y;
     background-position: left 1000px;
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
 
#mw-mf-page-center {
    background: url(/images/a/a6/Toprep.webp), url(/images/c/c1/Sidebar_repeat.webp), black;
    background-repeat: repeat-x, repeat-y;
    background-position: 200px top, 0 150px;
}
 
.mw-body {
    background-color: #fff3;
}
 
.header-container.header-chrome,
.minerva-footer {
    border-bottom-width: 1px;
    border-style: solid;
    background-color: #FFFD;
    box-shadow: 0px 5px 1px #0003;
}
 
.heading-holder,
#bodyContent:has(.mw-body-content) {
    border-radius: 8px;
    border-width: 1px;
    border-style: solid;
    background-color: #FFFE;
    margin-top: 1em;
    padding-bottom: 1em;
    box-shadow: 5px 5px 1px #0003;
}
 
#bodyContent:has(.mw-body-content) {
    margin-top: 0em;
    border-top-width: 0px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
}
 
.heading-holder {
    border-bottom-width: 0px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}
 
.page-heading,
.minerva__tab-container {
    padding-left: 1em;
    padding-right: 1em;
    margin-bottom: 0em;
}
 
.pre-content h1 {
    font-family: -apple-system,'BlinkMacSystemFont','Segoe UI','Roboto','Inter','Helvetica','Arial',sans-serif;
}
 
.page-actions-menu {
    margin-left: 1em;
    margin-right: 1em;
}
 
.mw-body-content {
     padding: 1em;
     padding: 1em;
     border-radius: 8px;
}
 
/* Translation layout fix */
.tux-textarea-translation {
    width: inherit;
}
 
/* BACKGROUNDS OVERRIDE FOR PHONES */
@media (resolution >= 2x) and (max-width: 1000px) {
     #mw-mf-page-center::before {
        background-position: left 500px;
        background-size: 250px;
    }
 
    #mw-mf-page-center {
        background-position: 100px top, 0 75px;
        background-size: 305px, 250px;
    }
}
}