Thanks for using our site!

If you're looking to become an editor, please read the Becoming an Editor section carefully.

MediaWiki:Mobile.css: Difference between revisions

From ranchstory
Jump to navigationJump to search
imported>Kiwibasket
No edit summary
No edit summary
Tag: Manual revert
 
(53 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/* All CSS here will be loaded for users of the mobile site */
/* All CSS here will be loaded for users of the mobile site */


/* flip-scroll mobile formatting */
.home-category > tr > td {
@media only screen and (max-width: 800px) {
padding: 0.2em 0.5em 0.2em 0;
}
.flip-scroll .cf:after { visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; }
.home-section {
.flip-scroll * html .cf { zoom: 1; }
margin: 0 !important;
.flip-scroll *:first-child+html .cf { zoom: 1; }
}
.home-section .noicon {
.flip-scroll table { width: 100%; border-collapse: collapse; border-spacing: 0; }
padding-top: 0;
}
.flip-scroll th,
 
.flip-scroll td { margin: 0; vertical-align: top; }
/* Paragraph */
.flip-scroll th { text-align: left; }
p {
margin: 1em 0 0 0;
.flip-scroll table { display: block; position: relative; width: 100%; }
}
.flip-scroll thead { display: block; float: left;}
 
.flip-scroll tbody { display: block; width: auto; position: relative; overflow-x: auto; white-space: nowrap; }
/* Images */
.flip-scroll thead tr { display: block; }
img {
.flip-scroll th { display: block; text-align: right; }
height: 100%;
.flip-scroll tbody tr { display: inline-block; vertical-align: top; }
max-width: 100%
.flip-scroll td { display: block;  text-align: left; }
}
 
/* table mobile formatting */
div.infoboxright {
  width: 100%;
  margin: 0 auto;
}
 
div.actuallycentered {
  max-width: 320px;
  margin: 0 auto;
 
}
 
/* Wikitable */
table.wikitable {
margin: 1em 1em 1em 0;
background-color: #f9f9f9;
border: 1px #aaa solid;
border-collapse: collapse;
color: black;
}
 
table.wikitable > tr > th,
table.wikitable > tr > td,
table.wikitable > * > tr > th,
table.wikitable > * > tr > td {
border: 1px #aaa solid;
padding: 0.3em 0.5em;
}
 
table.wikitable > tr > th,
table.wikitable > * > tr > th {
background-color: #f2f2f2;
text-align: center;
}
 
table.wikitable > caption {
font-weight: bold;
}
 
/* Table padding */
table.padding-1em > tr > td,
table.padding-1em > * > tr > td {
padding: 0.7em 1em;
}
 
table.padding-07em > tr > th,
table.padding-07em > tr > td,
table.padding-07em > * > tr > th,
table.padding-07em > * > tr > td {
padding: 0.7em;
}
 
table.padding-03em > tr > td,
table.padding-03em > * > tr > td {
padding: 0.3em;
}
 
.infobox {
border-radius: 0px !important;
}
}

Latest revision as of 10:36, 19 May 2025

/* All CSS here will be loaded for users of the mobile site */

.home-category > tr > td {
	padding: 0.2em 0.5em 0.2em 0;
}
.home-section {
	margin: 0 !important;
}
.home-section .noicon {
	padding-top: 0;
}

/* Paragraph */
p {
	margin: 1em 0 0 0;
}

/* Images */
img {
	height: 100%;
	max-width: 100%
}

/* table mobile formatting */
div.infoboxright {
   width: 100%;
   margin: 0 auto;
}

div.actuallycentered {
   max-width: 320px;
   margin: 0 auto;

}

/* Wikitable */
table.wikitable {
	margin: 1em 1em 1em 0;
	background-color: #f9f9f9;
	border: 1px #aaa solid;
	border-collapse: collapse;
	color: black;
}

table.wikitable > tr > th,
table.wikitable > tr > td,
table.wikitable > * > tr > th,
table.wikitable > * > tr > td {
	border: 1px #aaa solid;
	padding: 0.3em 0.5em;
}

table.wikitable > tr > th,
table.wikitable > * > tr > th {
	background-color: #f2f2f2;
	text-align: center;
}

table.wikitable > caption {
	font-weight: bold;
}

/* Table padding */
table.padding-1em > tr > td,
table.padding-1em > * > tr > td {
	padding: 0.7em 1em;
}

table.padding-07em > tr > th,
table.padding-07em > tr > td,
table.padding-07em > * > tr > th,
table.padding-07em > * > tr > td {
	padding: 0.7em;
}

table.padding-03em > tr > td,
table.padding-03em > * > tr > td {
	padding: 0.3em;
}

.infobox {
	border-radius: 0px !important;
}