MediaWiki:Common.css: Difference between revisions

From Another Chance Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(74 intermediate revisions by the same user not shown)
Line 11: Line 11:
#content ul {list-style: outside;}
#content ul {list-style: outside;}


#content a.external {
#content a.external, a.extiw {
     font-family: 'Fresca' !important; /* DO UNDER NO CIRCUMSTANCES REMOVE "!important;" */
     font-family: 'Fresca' !important; /* DO UNDER NO CIRCUMSTANCES REMOVE "!important;" */
     color: #EF9000;
     color: #EF9000 !important;
}
}


Line 41: Line 41:
     color: #ffffff;
     color: #ffffff;
     background-image: url(https://anotherchancewiki.com/images/f/ff/Background.webp);
     background-image: url(https://anotherchancewiki.com/images/f/ff/Background.webp);
     background-size: cover;
     background-size: 100% 5em;
    background-repeat: no-repeat;
     background-position: bottom;
     background-position: bottom;
     background-attachment: fixed;
     background-attachment: fixed;
Line 82: Line 83:
.pi-media-collection-tabs {
.pi-media-collection-tabs {
     color: #ef9000;
     color: #ef9000;
}
/* Change colors of highlighted gallery box in portable infobox */
.portable-infobox .pi-tab-link.current {
    background-color: #ef9000;
    color: #291f1f;
}
}


Line 141: Line 148:
     text-align: center;
     text-align: center;
}
}
/* Caps maximum image size to prevent screen overflow in smaller windows*/
img {max-inline-size: 100%;}


/* Custom image spoiler code */
/* Custom image spoiler code */
.spoiler-image {
.spoiler-image {
    position: relative;
     cursor: pointer;
     cursor: pointer;
    background-color: transparent !important;
    border: none;
}
}
.spoiler-image img {
.spoiler-image img {
     filter: blur(20px);
     filter: blur(15px) grayscale(1);
     transition: filter 0.3s;
     background-color: transparent !important;
}
.spoiler-image.thumb img {
    filter: blur(5px) grayscale(1);
    background-color: transparent !important;
}
}
.spoiler-image.revealed img {
.spoiler-image.revealed img {
    transition: filter 0.3s;
     filter: none;
     filter: none;
}
.spoiler-image .thumb,
.spoiler-image .thumbinner,
.spoiler-image .mw-file-description,
.spoiler-image .mw-parser-output,
.spoiler-image .mw-content.ltr {
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
/* img {max-inline-size: 100%;} */
/* Hides auto-generated columns in Category pages */
.page-Category_Main_Characters .mw-category-generated,
.page-Category_Side_Characters .mw-category-generated,
.page-Category_Minor_Characters .mw-category-generated,
.page-Category_Non-Human_Characters .mw-category-generated {
    visibility: hidden;
    display: none;
}
/* Hides auto-generated subcategory list in category page */
.page-Category_Characters #mw-subcategories,
.page-Category_Quests #mw-subcategories,
.page-Category_Locations #mw-subcategories {
    visibility: hidden;
    display: none;
}
/* Hides small tab on subpages to return to main page */
#contentSub {
    visibility: hidden;
    display: none;
}
/* Hides auto-generated header in alphabetical category list */
.mw-category-generated h2 {
    visibility: hidden;
    display: none;
}
/* Adjusts random page preview on home page */
#random-page-summary {
    margin: 1.5em 0;
}
.random-infobox-wrapper {
    max-width: 320px;
    margin: 0 auto 1em;
}
.random-infobox-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.random-infobox-link:hover .portable-infobox {
    box-shadow: 0 0 0 3px #36c;
    transition: box-shadow 0.15s;
}
.random-infobox-wrapper .portable-infobox {
    float: none !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 300px;
}
.random-extract {
    margin-top: 1em;
    font-size: 0.95em;
    line-height: 1.45;
    color: #333;
}
.random-more {
    margin-top: 0.8em;
    text-align: center;
    font-size: 0.9em;
}
.random-loading {
    text-align: center;
    color: #666;
    font-style: italic;
}
}

Latest revision as of 19:51, 1 September 2026

@import "/load.php?mode=articles&articles=u:dev:MediaWiki:SpoilerTags.css&only=styles";
@import url('https://fonts.googleapis.com/css2?family=Fresca&display=swap');

/* Article content across whole site */
#content {
    background-color: #453534;
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 5em;}

#content ul {list-style: outside;}

#content a.external, a.extiw {
    font-family: 'Fresca' !important; /* DO UNDER NO CIRCUMSTANCES REMOVE "!important;" */
    color: #EF9000 !important;
}

#mw-panel { /* Leftside panel */
    background-color: rgba(255, 255, 255, 0.7);
    border: 2px solid #271c12;}

#mw-panel h3 {
    color:#000000;
    border-bottom: 1px solid #000000;
    font-size: 20px;}

#mw-panel a {
    color:#271c12;
    font-size: 18px;}

.reference {color:#000000}

#toc { /* Table of Contents */
    background-color: #291f1f;}
#toc ul { list-style: none; }
.tocnumber {color: #ef9000}

body {
    font-family: 'Arial' !important; /* DO UNDER NO CIRCUMSTANCES REMOVE "!important;" */
    font-size: 17px;
    color: #ffffff;
    background-image: url(https://anotherchancewiki.com/images/f/ff/Background.webp);
    background-size: 100% 5em;
    background-repeat: no-repeat;
    background-position: bottom;
    background-attachment: fixed;
    background-color: #000000;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fresca' !important; /* DO UNDER NO CIRCUMSTANCES REMOVE "!important;" */
    color: #EF9000;
}

body, a, a:hover, a:visited {
    font-family: 'Fresca' !important; /* DO UNDER NO CIRCUMSTANCES REMOVE "!important;" */
    color: #EF9000;
}

.mw-body-content a:external { color: #EF9000; }

table, table th, table td {
    border: 2px solid #ef9000 !important; /* DO UNDER NO CIRCUMSTANCES REMOVE "!important;" */
    border-radius: 6px;
}

/* Add custom border to the entire infobox */
.portable-infobox {
    border: 2px solid #ef9000;
    border-radius: 8px; /* Rounded corners */
    overflow: hidden; /* Ensures no overflow from child elements */
    background-color: #291f1f;
}

/* Fills out the lines in a group inside of an infobox */
.pi-smart-group .pi-smart-data-value, .pi-smart-group h3.pi-smart-data-label{
	margin: 0;
}
.pi-title {
    font-size: 2em;
    text-align: center;
}
.pi-media-collection-tabs {
    color: #ef9000;
}

/* Change colors of highlighted gallery box in portable infobox */
.portable-infobox .pi-tab-link.current {
    background-color: #ef9000;
    color: #291f1f;
}

/* Removes the border from images in a gallery */
.wikia-gallery-item .thumb .gallery-image-wrapper {
    border-style: none;
}

/* color: #473434;  Black alternative */

.infobox {
    background: #eee;
    border: 1px solid #aaa;
    float: right;
    margin: 0 0 1em 1em;
    padding: 1em;
    width: 400px;
}
.infobox-title {
    font-size: 2em;
    text-align: center;
}
.infobox-image {
    text-align: center;
}
.infobox-table th {
    text-align: right;
    vertical-align: top;
    width: 120px;
}
.infobox-table td {
    vertical-align: top;
}

.zoom_img img{
    transition:transform 0.1 ease-in;
}

.zoom_img img:hover{
    transform:scale(2);
}

/* Highlight clicked reference to help navigation */
ol.references li:target,
sup.reference:target {background-color: #28292b;}

/* Changes "Recent Changes" list legend */
.skin-vector .mw-changeslist-legend {background-color: #28292b !important;}

/* Hides "Main Page" header on the homepage */
body.page-Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-submit h1.firstHeading { display: none; }

/* Edits slideshow gallery thumbs */
.gallerybox {text-align: center;}

.mw-gallery-slideshow .gallerybox.slideshow-current {
    background-color: #271c12 !important;
    border-radius: 25px;
    text-align: center;
}

/* Custom image spoiler code */
.spoiler-image {
    cursor: pointer;
    background-color: transparent !important;
    border: none;
}
.spoiler-image img {
    filter: blur(15px) grayscale(1);
    background-color: transparent !important;
}
.spoiler-image.thumb img {
    filter: blur(5px) grayscale(1);
    background-color: transparent !important;
}
.spoiler-image.revealed img {
    transition: filter 0.3s;
    filter: none;
}
.spoiler-image .thumb,
.spoiler-image .thumbinner,
.spoiler-image .mw-file-description,
.spoiler-image .mw-parser-output,
.spoiler-image .mw-content.ltr {
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* img {max-inline-size: 100%;} */

/* Hides auto-generated columns in Category pages */
.page-Category_Main_Characters .mw-category-generated,
.page-Category_Side_Characters .mw-category-generated,
.page-Category_Minor_Characters .mw-category-generated,
.page-Category_Non-Human_Characters .mw-category-generated {
    visibility: hidden;
    display: none;
}

/* Hides auto-generated subcategory list in category page */
.page-Category_Characters #mw-subcategories,
.page-Category_Quests #mw-subcategories,
.page-Category_Locations #mw-subcategories {
    visibility: hidden;
    display: none;
}

/* Hides small tab on subpages to return to main page */
#contentSub {
    visibility: hidden;
    display: none;
}

/* Hides auto-generated header in alphabetical category list */
.mw-category-generated h2 {
    visibility: hidden;
    display: none;
}

/* Adjusts random page preview on home page */
#random-page-summary {
    margin: 1.5em 0;
}

.random-infobox-wrapper {
    max-width: 320px;
    margin: 0 auto 1em;
}

.random-infobox-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.random-infobox-link:hover .portable-infobox {
    box-shadow: 0 0 0 3px #36c;
    transition: box-shadow 0.15s;
}

.random-infobox-wrapper .portable-infobox {
    float: none !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 300px;
}

.random-extract {
    margin-top: 1em;
    font-size: 0.95em;
    line-height: 1.45;
    color: #333;
}

.random-more {
    margin-top: 0.8em;
    text-align: center;
    font-size: 0.9em;
}

.random-loading {
    text-align: center;
    color: #666;
    font-style: italic;
}