MediaWiki:FrontPageStyling.css

From Apex Legends Wiki
Jump to navigation Jump to search

In other languages: Português do Brasil


CSS and Javascript changes must comply with the wiki design rules.


Note: After saving, 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: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
.page-Apex_Legends_Wiki .mw-parser-output .gallery,
.page-Apex_Legends_Wiki_ru .mw-parser-output .gallery
{
	text-align: center;
	margin: 10px 0;
}

@media screen and (min-width: 1080px){
	.page-Apex_Legends_Wiki .mw-parser-output,
	.page-Apex_Legends_Wiki_ru .mw-parser-output 
	{
		display: flex;
		flex-wrap: wrap;
		justify-content: space-evenly;
	}
	.mainpage-left {
		width: calc(100% - 550px);
	}
	.mainpage-right {
		width: 500px;
	}
}


.fpbox {
    margin-top: 5px;
    margin-bottom: 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#fp-spotlight {
  width:unset;
}

.fpbox .mainheading,
.fpbox .welcome {
    font-size: 150%;
    font-weight: bold;
}

.fpbox .heading {
    text-align: center;
    font-weight: bold;
    font-size: 132%;
	background-color: var(--theme-header-color);
    color: var(--theme-headertext-color);
}

.fpbox .heading a {
    color: var(--theme-headertext-color);
}

.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;
}

.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;
}

@media (min-width: 990px) {
    .fpcontent {
        padding-right:520px;
        width: auto
    }

    #fptopsection {
        float: left;
        width: 100%
    }

    #fpflexsection {
        float: right;
        width: 520px;
        margin-right: -520px
    }

    #fpbottomsection {
        float: left;
        width: 100%;
        margin-top: -5px
    }

    #fptopsection .fplink,#fpbottomsection .fplink {
        width: 50%
    }

    #fptopsection .fplink.wide,#fpbottomsection .fplink.wide {
        width: 100%
    }

    #fpflexsection .fplink {
        width: 25%
    }

    #fpflexsection .fplink.wide {
        width: 50%
    }
}

@media (min-width: 1100px) {
    #fptopsection .fplink,#fpbottomsection .fplink {
        width:33.333%
    }

    #fptopsection .fplink.wide,#fpbottomsection .fplink.wide {
        width: 66.666%
    }
}

@media (min-width: 1210px) {
    #fptopsection .fplink,#fpbottomsection .fplink {
        width:25%
    }

    #fptopsection .fplink.wide,#fpbottomsection .fplink.wide {
        width: 50%
    }
}

@media (min-width: 1320px) {
    #fptopsection .fplink,#fpbottomsection .fplink {
        width:20%
    }

    #fptopsection .fplink.wide,#fpbottomsection .fplink.wide {
        width: 40%
    }
}

@media (min-width: 1430px) {
    #fptopsection .fplink,#fpbottomsection .fplink {
        width:16.666%
    }

    #fptopsection .fplink.wide,#fpbottomsection .fplink.wide {
        width: 33.333%
    }

    .fplink a {
        padding: 3px 5px
    }
}

@media (min-width: 1540px) {
    #fptopsection .fplink,#fpbottomsection .fplink {
        width:14.285%
    }

    #fptopsection .fplink.wide,#fpbottomsection .fplink.wide {
        width: 28.571%
    }

    #fptopsection .fpmaybercol .fpbox,#fpbottomsection .fpmaybercol .fpbox {
        background-image: none
    }

    .fpmaybelcol {
        float: left;
        width: 70.886%
    }

    #fptopsection .fpmaybelcol .fplink,#fpbottomsection .fpmaybelcol .fplink {
        width: 20%
    }

    #fptopsection .fpmaybelcol .fplink.wide,#fpbottomsection .fpmaybelcol .fplink.wide {
        width: 40%
    }

    .fpmaybercol {
        float: right;
        width: 29.113%
    }

    #fptopsection .fpmaybercol .fplink,#fpbottomsection .fpmaybercol .fplink {
        width: 50%
    }

    #fptopsection .fpmaybercol .fplink.wide,#fpbottomsection .fpmaybercol .fplink.wide {
        width: 100%
    }
}

@media (min-width: 1650px) {
    #fptopsection .fplink,#fpbottomsection .fplink {
        width:12.5%
    }

    #fptopsection .fplink.wide,#fpbottomsection .fplink.wide {
        width: 25%
    }
}

@media (min-width: 1697px) {
    #fptopsection .fpmaybelcol .fplink,#fpbottomsection .fpmaybelcol .fplink {
        width:16.666%
    }

    #fptopsection .fpmaybelcol .fplink.wide,#fpbottomsection .fpmaybelcol .fplink.wide {
        width: 33.333%
    }
}

@media (min-width: 1760px) {
    #fptopsection .fplink,#fpbottomsection .fplink {
        width:11.111%
    }

    #fptopsection .fplink.wide,#fpbottomsection .fplink.wide {
        width: 22.222%
    }
}

@media (min-width: 1850px) {
    #fptopsection .fpmaybelcol .fplink,#fpbottomsection .fpmaybelcol .fplink {
        width:14.285%
    }

    #fptopsection .fpmaybelcol .fplink.wide,#fpbottomsection .fpmaybelcol .fplink.wide {
        width: 28.571%
    }
}

@media (min-width: 1870px) {
    #fptopsection .fplink,#fpbottomsection .fplink {
        width:10%
    }

    #fptopsection .fplink.wide,#fpbottomsection .fplink.wide {
        width: 20%
    }

    #fptopsection .fplink.image,#fpbottomsection .fplink.image {
        width: 134px;
        min-height: 134px
    }

    #fptopsection .fplink.image .box,#fpbottomsection .fplink.image .box {
        width: 120px
    }

    #fptopsection .fplink.image .image a,#fpbottomsection .fplink.image .image a {
        width: 120px;
        height: 120px;
        line-height: 120px
    }

    #fptopsection .fplink.image .box .image img,#fpbottomsection .fplink.image .box .image img {
        max-height: 120px;
        height: auto;
        width: 120px
    }
}

@media (min-width: 1918px) {
    #fptopsection .fpmaybercol .fplink,#fpbottomsection .fpmaybercol .fplink {
        width:33.333%
    }

    #fptopsection .fpmaybercol .fplink.wide,#fpbottomsection .fpmaybercol .fplink.wide {
        width: 66.666%
    }
}

@media (min-width: 1980px) {
    #fptopsection .fplink,#fpbottomsection .fplink {
        width:9.09%
    }

    #fptopsection .fplink.wide,#fpbottomsection .fplink.wide {
        width: 18.181%
    }
}

@media (min-width: 2006px) {
    #fptopsection .fpmaybelcol .fplink,#fpbottomsection .fpmaybelcol .fplink {
        width:12.5%
    }

    #fptopsection .fpmaybelcol .fplink.wide,#fpbottomsection .fpmaybelcol .fplink.wide {
        width: 25%
    }
}

@media (min-width: 2090px) {
    #fptopsection .fplink,#fpbottomsection .fplink {
        width:8.33%
    }

    #fptopsection .fplink.wide,#fpbottomsection .fplink.wide {
        width: 16.666%
    }
}

@media (min-width: 2161px) {
    #fptopsection .fpmaybelcol .fplink,#fpbottomsection .fpmaybelcol .fplink {
        width:11.111%
    }

    #fptopsection .fpmaybelcol .fplink.wide,#fpbottomsection .fpmaybelcol .fplink.wide {
        width: 22.222%
    }
}

@media (min-width: 2200px) {
    #fptopsection .fplink,#fpbottomsection .fplink {
        width:7.692%
    }

    #fptopsection .fplink.wide,#fpbottomsection .fplink.wide {
        width: 15.384%
    }
}

@media (min-width: 2296px) {
    #fptopsection .fpmaybercol .fplink,#fpbottomsection .fpmaybercol .fplink {
        width:25%
    }

    #fptopsection .fpmaybercol .fplink.wide,#fpbottomsection .fpmaybercol .fplink.wide {
        width: 50%
    }
}

@media (min-width: 2310px) {
    #fptopsection .fplink,#fpbottomsection .fplink {
        width:7.142%
    }

    #fptopsection .fplink.wide,#fpbottomsection .fplink.wide {
        width: 14.285%
    }
}

@media (min-width: 2316px) {
    #fptopsection .fpmaybelcol .fplink,#fpbottomsection .fpmaybelcol .fplink {
        width:10%
    }

    #fptopsection .fpmaybelcol .fplink.wide,#fpbottomsection .fpmaybelcol .fplink.wide {
        width: 20%
    }
}

@media (min-width: 2420px) {
    #fptopsection .fplink,#fpbottomsection .fplink {
        width:6.666%
    }

    #fptopsection .fplink.wide,#fpbottomsection .fplink.wide {
        width: 13.333%
    }

    .fplink a {
        padding: 5px 5px
    }

    #fptopsection .fplink.image,#fpbottomsection .fplink.image {
        width: 164px;
        min-height: 164px
    }

    #fptopsection .fplink.image .box,#fpbottomsection .fplink.image .box {
        width: 150px
    }

    #fptopsection .fplink.image .image a,#fpbottomsection .fplink.image .image a {
        width: 150px;
        height: 150px;
        line-height: 125px
    }

    #fptopsection .fplink.image .box .image img,#fpbottomsection .fplink.image .box .image img {
        max-height: 150px;
        height: auto;
        width: 150px
    }
}

.fplink.image .image {
    font-size: 75%
}

.fplink.image .image a {
    padding: 0
}

.fplink.image .link a {
    background: rgba(0,0,0,0.1);
    border-top: 2px solid #505050
}

.fpvideos {
    margin: 0 auto;
    overflow: hidden;
    text-align: center
}

.fpvideo {
    display: inline-block;
    margin: 0 5px
}

.fpmidsections {
    float: left;
    width: 100%;
    overflow: hidden
}

.fpsection1,.fpsection2,.fpsection3,.fpsection4 {
    float: left;
    clear: both;
    width: 100%
}

.fpmain .columns .leftcol,.fpmain .columns .rightcol {
    width: 100%;
    margin: 0;
    padding: 0
}

@media (min-width: 790px) {
    .fpsection1,.fpsection4 {
        float:left;
        clear: none;
        width: 50%
    }

    .fpmidsections {
        float: right;
        clear: none;
        width: 50%
    }
}

@media (min-width: 990px) {
    .fpmain .columns .leftcol {
        float:left;
        width: 50%
    }

    .fpmain .columns .rightcol {
        float: right;
        width: 50%
    }
}

@media (min-width: 1390px) {
    .fpmidsections {
        clear:none;
        float: right;
        width: 66.667%
    }

    .fpsection1 {
        clear: none;
        width: 33.333%
    }

    .fpsection2,.fpsection3 {
        clear: none;
        width: 50%
    }

    .fpsection4 {
        clear: left;
        width: 33.333%
    }
}

.desktopleft {
    text-align: left
}

.desktopcenter {
    text-align: center
}

.desktopright {
    text-align: right
}

.fpmain {
    width: 100%;
    overflow: hidden
}

.fpbox {
    padding: 5px;
    margin-bottom: 5px;
    margin-top: 5px;
    overflow: auto;
    background: var(--theme-fpbox-bg-color);
    border-radius: 5px;
    border: none;
    color: var(--theme-text-color);
    box-shadow: 0 0.1em 0.75em rgba(0,0,0,0.3);
}

.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 .mainheading,.fpbox .welcome {
    font-size: 150%;
    font-weight: bold
}

.fpbox .heading {
    text-align: center;
    font-size: 132%
}

.linkslabel {
    margin: 15px 5px 5px;
    padding: 0 0 5px
}

.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;
}

/* This CSS governs the responsive 3 column main page layout */

#fp-3column.fp-container {
    display: grid;
    grid-template-areas: "a" "b" "c" "d";
    grid-template-columns: 100%;
}
@media screen and (min-width:990px) {
    #fp-3column.fp-container {
        grid-template-areas: "a b" "c b" "c d";
        grid-template-columns: 50% 50%;
    }
}
@media screen and (min-width:1350px) {
    #fp-3column.fp-container {
        grid-template-areas: "a b c" "d b c";
        grid-template-columns: 33.3% 33.3% 33.3%;
    }
}

#fp-1 {
    grid-area: a;
}

#fp-2 {
    grid-area: b;
}

#fp-3 {
    grid-area: c;
}

#fp-4 {
    grid-area: d;
}

/* end responsive 3 column main page layout */

@media only screen and (min-width: 1350px) and (max-width:1560px) {
    div#global-wrapper.with-siderail table.weapons-table {
        font-size:0.85em
    }

    div#global-wrapper.with-siderail table.weapons-table th {
        font-size: 0.8em
    }
}