Welcome to the Club Penguin Wiki! Log in or Create an account to join the community!

MediaWiki:Mobile.css: Difference between revisions

From the Club Penguin Wiki, the free, editable encyclopedia about Club Penguin
Jump to navigation Jump to search
imported>Refractor
Created page with "→‎CSS placed here will affect users of the mobile site: /* Note from Refractor: * MobileFrontend does NOT need ambox styles or such (the skin has its own implementation)..."
 
imported>Refractor
use prefixes to handle stragglers on old browsers
 
(5 intermediate revisions by the same user not shown)
Line 6: Line 6:
  */
  */


.allpagesredirect {
/* fix lack of styles on galleries */
    font-style: italic;
 
li.gallerybox div.thumb {
    text-align: center;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    margin: 2px;
}
}
.watchlistredir {
 
    font-style: italic;
li.gallerybox div.thumb img {
    display: block;
    margin: 0 auto;
}
}
/*** Wikia template compat ***/
 
.accent
/* main page CSS */
{
 
background-color: #A6BFFF;
.mainpage-wrapper {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-flow: row wrap;
    -ms-flex-flow: row wrap;
        flex-flow: row wrap;
}
}
.color1
.mainpage-wrapper > *, .mainpage-banner-links {
{
-webkit-box-flex: 1;
background-color: #0B6BF0;
-webkit-flex: 1 100%;
    -ms-flex: 1 100%;
        flex: 1 100%;
}
}
/* </pre> */
 
.mainpage-banner-logo {
table.navbox { /* Navbox container style */
margin: 0.1em 0.5em;
border: 1px solid #aaa;
width: 100%;
margin: auto;
clear: both;
font-size: 88%;
text-align: center;
padding: 1px;
} table.navbox + table.navbox { /* Single pixel border between adjacent navboxes */
margin-top: -1px;            /* (doesn't work for IE6, but that's okay)      */
} .navbox-title, .navbox-abovebelow, table.navbox th {
text-align: center;      /* Title and above/below styles */
padding-left: 1em;
padding-right: 1em;
} .navbox-group { /* Group style */
white-space: nowrap;
text-align: right;
font-weight: bold;
padding-left: 1em;
padding-right: 1em;
} .navbox, .navbox-subgroup {
background: #fdfdfd;    /* Background color */
} .navbox-list {
border-color: #fdfdfd;  /* Must match background color */
} .navbox-abovebelow, .navbox-group, .navbox-subgroup .navbox-title {
/** no bg for you **/    /* Level 2 color */
} .navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow {
background: #e6e6ff;    /* Level 3 color */
} .navbox-even {
background: #f7f7f7;    /* Even row striping */
} .navbox-odd {
background: transparent; /* Odd row striping */
}
.collapseButton { /* 'show'/'hide' buttons created dynamically */
  float: right;          /* by the CollapsibleTables javascript in    */
  font-weight: normal;  /* MediaWiki:Common.jsare styled here    */
  text-align: right;    /* so they can be customised.                */
  width: auto;
} .navbox .collapseButton { /* In navboxes, the show/hide button balances */
  width: 6em;            /* the vde links from Template:Tnavbar,  */
} /* so they need to be the same width. */
.navbox-abovebelow
{
background-color:#FFDBAE !important;
}
}
 
/* Infobox template style */ .infobox {
@media all and (min-width: 800px) {
.mainpage-left {
  border: 1px solid #aaa;
-webkit-box-flex: 6;
  background-color: #f9f9f9;
-webkit-flex: 6 1 0px;
  color: black;
    -ms-flex: 6 1 0px;
  margin: 0.5em 0 0.5em 1em;
        flex: 6 1 0px;
  padding: 0.2em;
margin-right: 0.5em;
  float: right;
}
  clear: right;
 
} .infobox td, .infobox th {
.mainpage-right {
-webkit-box-flex: 4;
  vertical-align: top;
-webkit-flex: 4 1 0px;
} .infobox caption {  
    -ms-flex: 4 1 0px;
        flex: 4 1 0px;
  font-size: larger;
}
} .infobox.bordered {
.mainpage-banner-title {
-webkit-box-flex: 5;
  border-collapse: collapse;
-webkit-flex: 5 1 0px;
} .infobox.bordered td, .infobox.bordered th {
    -ms-flex: 5 1 0px;
        flex: 5 1 0px;
  border: 1px solid #aaa;
}
} .infobox.bordered .borderless td, .infobox.bordered .borderless th {
.mainpage-banner-links {
-webkit-box-flex: 4;
  border: 0;
-webkit-flex: 4 1 0px;
}
    -ms-flex: 4 1 0px;
        flex: 4 1 0px;
.infobox.sisterproject {
}
  width: 20em;
  font-size: 90%;
}
.infobox.standard-talk {
  border: 1px solid #c0c090;
  background-color: #f8eaba;
} .infobox.standard-talk.bordered td, .infobox.standard-talk.bordered th {
  border: 1px solid #c0c090;
}
/* styles for bordered infobox with merged rows */ .infobox.bordered .mergedtoprow td, .infobox.bordered .mergedtoprow th {
  border: 0;
  border-top: 1px solid #aaa;
  border-right: 1px solid #aaa;
}  
.infobox.bordered .mergedrow td, .infobox.bordered .mergedrow th {
  border: 0;
  border-right: 1px solid #aaa;
}
/* Styles for geography infoboxes, eg countries,
  country subdivisions, cities, etc.            */
.infobox.geography {  
  text-align: left;
  border-collapse: collapse;
  line-height: 1.2em;  
  font-size: 90%;
}  
.infobox.geography td, .infobox.geography th {  
  border-top: solid 1px #aaa;
  padding: 0.4em 0.6em 0.4em 0.6em;
} .infobox.geography .mergedtoprow td, .infobox.geography .mergedtoprow th {
  border-top: solid 1px #aaa;
  padding: 0.4em 0.6em 0.2em 0.6em;
}  
.infobox.geography .mergedrow td, .infobox.geography .mergedrow th {  
  border: 0;
  padding: 0 0.6em 0.2em 0.6em;
}
.infobox.geography .mergedbottomrow td, .infobox.geography .mergedbottomrow th {
  border-top: 0;
  border-bottom: solid 1px #aaa;
  padding: 0 0.6em 0.4em 0.6em;
}  
.infobox.geography .maptable td, .infobox.geography .maptable th {
  border: 0;
  padding: 0;
}
}
.mainpage-left, .mainpage-right {
border: 1px solid #b8ecff;
background: #fbfeff;
vertical-align: top;
color: #000;
border-radius: 5px;
}
.mainpage-box {
padding: 2px;
}
.mainpage-box-heading {
margin: 3px;
font-size: 120%;
font-weight: bold;
border: 1px solid #b8ecff;
text-align: left;
color: #FFF;
background-color: #0070b7;
padding: 0.2em 0.4em;
border-radius: 5px;
}
.mainpage-footer .mainpage-box {
background: #ffffd5;
}
.mainpage-footer .mainpage-box-heading {
border: 1px solid yellow;
text-align: left;
background-color: gold;
}
.mainpage-box-content {
color: #000;
padding: 2px 5px 5px;
}
.mainpage-banner {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-flow: row wrap;
    -ms-flex-flow: row wrap;
        flex-flow: row wrap;
background: #f9f9f9;
margin: 1.2em 0 6px 0;
border: 1px solid #ddd;
border-radius: 5px;
-webkit-box-pack: center;
-webkit-justify-content: center;
    -ms-flex-pack: center;
        justify-content: center;
}
.mainpage-banner-title {
color: #000;
}
.mainpage-banner-title p {
line-height: 1em;
}
.mainpage-banner-title-welcome {
font-size: 1.5em;
}
.mainpage-banner-title-motto {
font-style: italic;
}
.mainpage-banner-title-articles {
font-size: .8em;
}
.mainpage-banner-links, .mainpage-explore-links {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
/*flex-flow: row wrap;*/
-webkit-justify-content: space-around;
    -ms-flex-pack: distribute;
        justify-content: space-around;
-webkit-box-align: center;
-webkit-align-items: center;
    -ms-flex-align: center;
        align-items: center;
}
.mainpage-banner-links-link, .mainpage-explore-links-link {
font-weight: bold;
font-variant: small-caps;
text-align: center;
}
.mainpage-banner-links-link a + a, .mainpage-explore-links-link a + a {
display: block;
}
.mainpage-explore-possibilities {
border-radius: 7px;
font-variant: small-caps;
}
.mainpage-explore-possibilities-list {
padding: 4px;
font-weight: bold;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-flow: row wrap;
    -ms-flex-flow: row wrap;
        flex-flow: row wrap;
}
.mainpage-explore-possibilities-list-heading {
-webkit-box-flex: 2;
-webkit-flex: 2 1 10em;
    -ms-flex: 2 1 10em;
        flex: 2 1 10em;
}
.mainpage-explore-possibilities-list-links {
-webkit-box-flex: 10;
-webkit-flex: 10 1 32em;
    -ms-flex: 10 1 32em;
        flex: 10 1 32em;
}
/* end of mainpage */

Latest revision as of 15:30, 26 April 2015

/* CSS placed here will affect users of the mobile site */

/* Note from Refractor:
 * MobileFrontend does NOT need ambox styles or such (the skin has its own implementation)
 * Some styles DO need copying from Common.css.
 */

/* fix lack of styles on galleries */

li.gallerybox div.thumb {
    text-align: center;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    margin: 2px;
}

li.gallerybox div.thumb img {
    display: block;
    margin: 0 auto;
}

/* main page CSS */

.mainpage-wrapper {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-flex-flow: row wrap;
	    -ms-flex-flow: row wrap;
	        flex-flow: row wrap;
}
.mainpage-wrapper > *, .mainpage-banner-links {
	-webkit-box-flex: 1;
	-webkit-flex: 1 100%;
	    -ms-flex: 1 100%;
	        flex: 1 100%;
}

.mainpage-banner-logo {
	margin: 0.1em 0.5em;
}

@media all and (min-width: 800px) {
	.mainpage-left {
		-webkit-box-flex: 6;
		-webkit-flex: 6 1 0px;
		    -ms-flex: 6 1 0px;
		        flex: 6 1 0px;
		margin-right: 0.5em;
	}

	.mainpage-right {
		-webkit-box-flex: 4;
		-webkit-flex: 4 1 0px;
		    -ms-flex: 4 1 0px;
		        flex: 4 1 0px;
	}
	.mainpage-banner-title {
		-webkit-box-flex: 5;
		-webkit-flex: 5 1 0px;
		    -ms-flex: 5 1 0px;
		        flex: 5 1 0px;
	}
	.mainpage-banner-links {
		-webkit-box-flex: 4;
		-webkit-flex: 4 1 0px;
		    -ms-flex: 4 1 0px;
		        flex: 4 1 0px;
	}
}

.mainpage-left, .mainpage-right {
	border: 1px solid #b8ecff;
	background: #fbfeff;
	vertical-align: top;
	color: #000;
	border-radius: 5px;
}

.mainpage-box {
	padding: 2px;
}

.mainpage-box-heading {
	margin: 3px;
	font-size: 120%;
	font-weight: bold;
	border: 1px solid #b8ecff;
	text-align: left;
	color: #FFF;
	background-color: #0070b7;
	padding: 0.2em 0.4em;
	border-radius: 5px;
}

.mainpage-footer .mainpage-box {
	background: #ffffd5;
}
.mainpage-footer .mainpage-box-heading {
	border: 1px solid yellow;
	text-align: left;
	background-color: gold;
}

.mainpage-box-content {
	color: #000;
	padding: 2px 5px 5px;
}


.mainpage-banner {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-flex-flow: row wrap;
	    -ms-flex-flow: row wrap;
	        flex-flow: row wrap;
	background: #f9f9f9;
	margin: 1.2em 0 6px 0;
	border: 1px solid #ddd;
	border-radius: 5px;
	-webkit-box-pack: center;
	-webkit-justify-content: center;
	    -ms-flex-pack: center;
	        justify-content: center;
}



.mainpage-banner-title {
	color: #000;
}
.mainpage-banner-title p {
	line-height: 1em;
}
.mainpage-banner-title-welcome {
	font-size: 1.5em;
}
.mainpage-banner-title-motto {
	font-style: italic;
}

.mainpage-banner-title-articles {
	font-size: .8em;
}

.mainpage-banner-links, .mainpage-explore-links {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	/*flex-flow: row wrap;*/
	-webkit-justify-content: space-around;
	    -ms-flex-pack: distribute;
	        justify-content: space-around;
	-webkit-box-align: center;
	-webkit-align-items: center;
	    -ms-flex-align: center;
	        align-items: center;
}


.mainpage-banner-links-link, .mainpage-explore-links-link {
	font-weight: bold;
	font-variant: small-caps;
	text-align: center;
}
.mainpage-banner-links-link a + a, .mainpage-explore-links-link a + a {
	display: block;
}

.mainpage-explore-possibilities {
	border-radius: 7px;
	font-variant: small-caps;
}
.mainpage-explore-possibilities-list {
	padding: 4px;
	font-weight: bold;
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-flex-flow: row wrap;
	    -ms-flex-flow: row wrap;
	        flex-flow: row wrap;
}

.mainpage-explore-possibilities-list-heading {
	-webkit-box-flex: 2;
	-webkit-flex: 2 1 10em;
	    -ms-flex: 2 1 10em;
	        flex: 2 1 10em;
}
.mainpage-explore-possibilities-list-links {
	-webkit-box-flex: 10;
	-webkit-flex: 10 1 32em;
	    -ms-flex: 10 1 32em;
	        flex: 10 1 32em;
}

/* end of mainpage */