MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
wikia:mysterydungeon>Maintenance script-gpuser (Automated Import) |
Mystery Dungeon GP>MarkusRost (update responsive main page) |
||
Line 58: | Line 58: | ||
.desktopright { | .desktopright { | ||
text-align: right; | text-align: right; | ||
} | |||
/* This CSS governs the responsive 3 column main page layout */ | |||
#fp-container { | |||
display: grid; | |||
grid-template-areas: "a" "b" "c" "d"; | |||
grid-template-columns: 100%; | |||
} | |||
@media screen and (min-width:990px) { | |||
#fp-container { | |||
grid-template-areas: "a b" "c b" "c d"; | |||
grid-template-columns: 50% 50%; | |||
} | |||
} | |||
@media screen and (min-width:1350px) { | |||
#fp-container { | |||
grid-template-areas: "a b c" "d b c"; | |||
grid-template-columns: 33.3% 33.3% 33.3%; | |||
} | |||
} | |||
.fp-section { | |||
display: flex; | |||
flex-wrap: wrap; | |||
} | |||
#fp-1 { | |||
grid-area: a; | |||
} | |||
#fp-2 { | |||
grid-area: b; | |||
} | |||
#fp-3 { | |||
grid-area: c; | |||
} | |||
#fp-4 { | |||
grid-area: d; | |||
} | |||
#fp-container main .columns .leftcol, | |||
#fp-container .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) { | |||
#fp-container .columns .leftcol { | |||
float: left; | |||
width: 50%; | |||
} | |||
#fp-container .columns .rightcol { | |||
float: right; | |||
width: 50%; | |||
} | |||
} | } |
Revision as of 19:25, 11 September 2019
/* CSS placed here will be applied to all skins */
/* This governs the sections on the Community portal */
.cpbox {
display: flex;
flex-direction: row-reverse;
flex-wrap: wrap;
}
.cpbox #admins {
box-sizing: border-box;
width: calc(33% - 10px);
margin: 5px;
flex-grow: 1;
min-width: 300px;
}
.cpbox #help {
box-sizing: border-box;
width: calc(67% - 10px);
margin: 5px;
flex-grow: 1;
}
/* Template documentation styles */
/* If modifying these styles, be sure to update the mobile skin! */
.doc {
margin: 0em auto 1em;
background-color: rgba(0, 0, 0, 0.1);
border: 2px solid #BDCAC3;
border-radius: 1em;
padding: 1em;
}
.doc-header {
padding-bottom: 3px;
border-bottom: 1px solid #BDCAC3;
margin-bottom: 1ex;
}
.doc-footer {
margin: 0;
background-color: rgba(0, 0, 0, 0.1);
border: 2px solid #BDCAC3;
border-radius: 1em;
padding: 1em;
}
/* Classes permitting setting of alignment on desktop only or differently on desktop and mobile */
/* (See .mobileleft, .mobilecenter, .mobileright in MediaWiki:Mobile.css for the mobile equivalents */
.desktopleft {
text-align: left;
}
.desktopcenter {
text-align: center;
}
.desktopright {
text-align: right;
}
/* This CSS governs the responsive 3 column main page layout */
#fp-container {
display: grid;
grid-template-areas: "a" "b" "c" "d";
grid-template-columns: 100%;
}
@media screen and (min-width:990px) {
#fp-container {
grid-template-areas: "a b" "c b" "c d";
grid-template-columns: 50% 50%;
}
}
@media screen and (min-width:1350px) {
#fp-container {
grid-template-areas: "a b c" "d b c";
grid-template-columns: 33.3% 33.3% 33.3%;
}
}
.fp-section {
display: flex;
flex-wrap: wrap;
}
#fp-1 {
grid-area: a;
}
#fp-2 {
grid-area: b;
}
#fp-3 {
grid-area: c;
}
#fp-4 {
grid-area: d;
}
#fp-container main .columns .leftcol,
#fp-container .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) {
#fp-container .columns .leftcol {
float: left;
width: 50%;
}
#fp-container .columns .rightcol {
float: right;
width: 50%;
}
}