MediaWiki:Common.css

From Anuchard Wiki
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* CSS placed here will be applied to all skins */

/* Theme variables */
html {
	scroll-padding-top: 35px;

	/* Gradients */
	--theme-gradient-main: linear-gradient(180deg,#ffd561 10%,#E5B020 11%,#E5B020 85%,#be9320 86%,#be9320 100%);
	--theme-gradient-second: linear-gradient(180deg,#ffc012 10%,#d19902 11%,#d19902 85%,#b58b1b 86%,#b58b1b 100%);

	/* Content */
	--theme-content-background: #f6decb;
	--theme-content-border: #e5b020;
	--theme-content-color: #000;
	--theme-link-color: #84562f;
	--theme-accent-color: 255, 255, 255;

	/* Sidebar */
	--theme-sidebar-header: #E5B020;
	--theme-sidebar-background: #ffefc3;

	/* article-table */
	--theme-border-color: #be9320;
	--custom-dynamic-color: 0, 0, 0;

	/* other */
	--theme-alert-color: #942136;
	--theme-success-color: #0c742f;
	--theme-list-icon: url(/images/a/a5/Bullet_black.svg); /* [[File:Bullet black.svg]] */
}
.theme-dark {
	/* Gradients */
	--theme-gradient-main: linear-gradient(180deg,#ffd561 10%,#E5B020 11%,#E5B020 85%,#be9320 86%,#be9320 100%);
	--theme-gradient-second: linear-gradient(180deg,#ffc012 10%,#d19902 11%,#d19902 85%,#b58b1b 86%,#b58b1b 100%);

	/* Content */
	--theme-content-background: #2f2f2f;
	--theme-content-border: #e5b020;
	--theme-content-color: #fff;
	--theme-link-color: #e5b020;
	--theme-accent-color: 0, 0, 0;

	/* Sidebar */
	--theme-sidebar-header: #E5B020;
	--theme-sidebar-background: #373737;

	/* article-table */
	--theme-border-color: #6f6e6e;
	--custom-dynamic-color: 255, 255, 255;

	/* other */
	--theme-alert-color: #c90018;
	--theme-list-icon: url(/images/2/2d/Bullet_white.svg); /* [[File:Bullet white.svg]] */
}

/* Main page layout */
#fp-2column.fp-container {
    display: grid;
    grid-template-areas: "a" "b" "c";
    grid-template-columns: 100%;
}
@media screen and (min-width:990px) {
    #fp-2column.fp-container {
        grid-template-areas: "a b" "c c";
        grid-template-columns: 50% 50%;
    }
}
@media screen and (min-width:1350px) {
    #fp-2column.fp-container {
        grid-template-areas: "a b" "c b";
        grid-template-columns: auto 520px;
    }
}
#fp-top {
    grid-area: a;
}
#fp-flex {
    grid-area: b;
}
#fp-bottom {
    grid-area: c;
}

/* Main page structure */
.fpbox {
    margin: 5px;
    padding: 5px;
    overflow: auto;
    width: calc(100% - 2px);
}
.fpbox.plain {
    background: transparent;
    border: none;
    box-shadow: none;
}
.fpbox .heading,
.fpbox .mainheading,
.fpbox .welcome {
    margin: 0 0 10px;
    padding: 0 0 5px;
    overflow: auto;
}
.fpbox .heading {
	background: #ffbf00;
	border-radius: 3px;
	padding: 4px;
	color: #000;
}
.fpbox .mainheading,
.fpbox .welcome {
    font-size: 150%;
    font-weight: bold;
}

.fpbox .heading {
    text-align: center;
    font-size: 132%;
    font-weight: bold;
}
.linkslabel {
    margin: 15px 5px 5px;
    padding: 0 0 5px;
}

/* Template:FP links styles */
.fplinks {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: stretch;
    text-align: center;
}
.fplink-outer {
    padding: 5px;
    flex-basis: calc(25% - 10px);
    width: calc(25% - 15px);
    min-width: 115px;
    display: inline-block;
    vertical-align: middle;
}
.fplink-wide {
    flex-basis: calc(33% - 10px);
    width: calc(33% - 15px);
}
.fplink-fullwidth {
    flex-basis: 100%;
    width: calc(100% - 15px);
    font-weight: bold;
}
.fplink {
    padding: 0.5em;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    display: table;
    border-bottom: 2px #ffbf00 solid;
    font-size: 17px;
}
.fplink-plain {
    background: transparent;
    border-radius: 0;
    border: 0;
    box-shadow: none;
}
.fplink-inner {
    display: table-row;
}
.fplink a {
    display: table-cell;
    vertical-align: middle;
}
.fplink img {
    max-width: 150px;
    width: 100%;
    height: auto;
}

/* Auto-resize front page video to fit smaller columns */
.fpbox .embedvideowrap {
    width: 100% !important;
    max-width: 480px;
    margin: 0 auto;
}
.fpbox .embedvideowrap iframe {
    width: 100%!important;
}

/* Multi-column box support */
.fp-container main .columns .leftcol,
.fp-container .columns .rightcol {
    width: 100%;
    margin: 0;
    padding: 0;
}
@media (min-width: 990px) {
    .fp-container .columns .leftcol {
        float: left;
        width: 50%;
    }

    .fp-container .columns .rightcol {
        float: right;
        width: 50%;
    }
}
.fp-section {
    display: flex;
    flex-wrap: wrap;
}

/* Infobox general theming */
.portable-infobox {
    overflow: hidden;
    background: none;
    padding: 0;
    border-radius: 5px;
    margin-right: 7px;
    border: 2px #ffbf00 solid;
}
.portable-infobox .pi-navigation {
    background: #f59525;
    text-align: center;
}

/* Infobox titles and headers */
.portable-infobox .pi-title {
    font-weight: bold;
    font-size: large;
    line-height: 15px;
    color: #FFFFFF;
    text-align: center;
    padding: 6px 3px;
    background: #ffbf00;
}
.portable-infobox .pi-header {
    font-size: small;
    line-height: 10px;
    color: #FFFFFF;
    text-align: center;
    padding: 4px 0;
    background: #f59525;
}

/* Infobox images */
.portable-infobox .pi-caption {
    color: #2a0800;
}
.portable-infobox .pi-image-collection-tabs {
    text-align: center;
}

.portable-infobox ul.pi-image-collection-tabs li {
    font-weight: normal;
    border: 1px solid #ffbf00;
    margin-right: 0;
}
.portable-infobox ul.pi-image-collection-tabs li.current {
    background-color: #ffbf00 !important;
    color: white !important;
}
.portable-infobox ul.pi-image-collection-tabs li.pi-item-spacing {
    padding: 2px 4px 1px;
}

/* table fix */
table {
	display: table;
	white-space: inherit;
}

/* article-table */
.article-table {
	background: rgba(var(--custom-dynamic-color),.03);
	border: 0 var(--theme-border-color);
	border-collapse: collapse;
	margin: 1em 1em 1em 0;
}
.article-table th {
	background: rgba(var(--custom-dynamic-color),.05);
	text-align: left;
}
.article-table td,
.article-table th {
	border-bottom: 1px solid var(--theme-border-color);
	padding: 6px 12px;
}
.article-table caption {
	font-weight: 700;
}