Jump to content

MediaWiki:Mobile.css: Difference between revisions

Undo revision 777 by Xinreality (talk)
No edit summary
 
(42 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/* CSS placed here will affect users of the mobile site */
/* CSS for mobile version of VR & AR Wiki */
table.sweet1 td{
  border: 1px solid white;


/* Basic layout and typography */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #333;
}
/* Container adjustments */
#content {
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}
}


/* Hide desktop-only elements */
.nomobile {
  display: none !important;
}
/* Main page header styling */
body.page-Main_Page h1.firstHeading {
  display: none;
}
/* Gradients and colors */
.XinReality1 {
.XinReality1 {
    background:#939aa4;
  background: #939aa4;
    background:linear-gradient(to bottom, #939aa4 0%, #bbc2ca 100%);
  background: linear-gradient(to bottom, #939aa4 0%, #bbc2ca 100%);
}
}
 
.XinReality2 {
.XinReality2 {
    background:#254b72;
  background: #254b72;
    background:linear-gradient(to bottom, #254b72 0%, #6f97b0 100%);
  background: linear-gradient(to bottom, #254b72 0%, #6f97b0 100%);
}
}
 
.XinReality3 {
.XinReality3 {
    background:#eab267;
  background: #eab267;
    background:linear-gradient(to bottom, #e5a145 0%, #f8d281 100%);
  background: linear-gradient(to bottom, #e5a145 0%, #f8d281 100%);
}
}
 
/* Text colors */
p.white {
p.white {
  color:#FFFFFF;
  color: #FFFFFF;
  margin: 0;
  font-weight: bold;
}
}


table {
/* Superheader styling */
   background: #FFFFFF;
.superheader {
   color: #000000;
   border: 3px double #bbc2ca;
   padding: 1px;
   padding: 10px;
   margin: auto;  
   margin-bottom: 15px;
   margin-bottom: 3px;
   text-align: center;
   font-size: 0.9em;
}
}


table td, table th {
/* Table layouts for mobile */
    border: 1px solid #000000;
table.mobile-layout {
    padding: 0px;
  width: 100%;
  margin: 0 0 15px 0;
  border-collapse: collapse;
}
}


.radical {
table.mobile-layout td {
  display: block;
  width: 100%;
  box-sizing: border-box;
   padding: 0;
   padding: 0;
   margin: 10px -10px 0 -10px;
   margin-bottom: 15px;
    
}
 
/* Section styling */
.dull1, .dull2, .dull3 {
  border-radius: 2px;
  padding: 5px;
  margin-bottom: 15px;
}
 
.dull1 {
   border: 3px double #82a0b8;
}
}


table.sharp1 {
.dull2 {
   table-layout: fixed;
   border: 3px double #eab267;
   border-collapse: separate;
}
   border-spacing: 10px;
 
   margin: -10px 0 0 0;
.dull3 {
   padding: 0;
  border: 3px double #bbc2ca;
}
 
/* Section headings */
.heading {
  text-align: center;
   margin-bottom: 5px;
   border-radius: 4px;
}
 
/* Section content */
.body {
   padding: 5px 10px;
   font-size: 0.9em;
}
 
/* List styling */
.sweet1 {
   width: 100%;
   width: 100%;
  margin: 5px 0;
}
.sweet1 td {
  width: 50%;
  vertical-align: top;
  padding: 3px 0;
}
/* Link styling */
a {
  color: #254b72;
  text-decoration: none;
}
/* Description text */
.sweet1 td[colspan="2"] {
  line-height: 1.4;
  margin-bottom: 15px;
  padding-bottom: 10px;
}
/* "More..." links */
.more-link {
  text-align: right;
  font-style: italic;
  display: block;
  margin-top: 5px;
}
/* Center infobox on mobile */
table.infobox tr th {
  text-align: center !important;
}
}


.superheader {
/* Padding for infobox fields */
    border: 3px double #bbc2ca;
table.infobox tr td:nth-child(1) {
    padding: 7px;
  padding: 5px !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}
}


.sweet1 {
/* Remove empty space below infobox */
   margin: 0 0 -10px 0;
table.infobox {
   margin-bottom: 0px !important;
}


/* Hide disqus on main page */
.page-Main_Page #disqus-wrapper {
  display: none !important;
}
}