MediaWiki:Mobile.css

From Life After BOB Wiki
Revision as of 04:51, 18 June 2021 by Xu6ing (talk | contribs)
Jump to navigation Jump to search

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 / Edge: 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.
/* All CSS here will be loaded for users of the mobile site */
/* Averia */
@import url('https://fonts.googleapis.com/css2?family=Averia+Serif+Libre:wght@400;700&display=swap');

body{
  font-family: "Arial",sans-serif;
background-image: url(https://d2w9rnfcy7mm78.cloudfront.net/12168207/original_451377e6bf71f18de13dabbc7d064c96.png);
  background-position:center top;
  background-repeat: repeat-y;
  background-attachment: fixed;
  background-size: cover;
}

h1.firstHeading{
   font-family:"Averia Serif Libre";
   font-weight:700;
   font-size:0.5em;
}

body.page-Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-submit h1.firstHeading { 
  display: none; 
}

.largetext{
  font-size:1.1em;
  text-align:center;
  font-family:'Averia Serif Libre'
}

.mp-main-container{
  font-size:0.75em;
  width:90%;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  margin-left:auto;
  margin-right:auto;
}

.mp-flex-box{
width:100%;
}

#about-container{
width:100%; 
height:60%;
}

#categories-container{
width:100%;
height:40%;
margin-top:2%;
}

#fe-container{
width:100%;
height:75%
}

#fc-container{
width:90%;
margin-left:auto;
margin-right:auto;
 
}

.mp-title a{
  color:initial;
  text-decoration:none;
  background-image: linear-gradient(#0645ad, #0645ad);
  background-size: 100% 1px, auto;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: all .2s ease-out;
}

.mp-title a:hover{
  background-size: 100% 100%, auto;
  color:white;
  text-decoration:none;
}

.mp-item-box{
  border:2px grey solid;
  border-radius:10px;
}

.mp-title{
  text-align:center;
  margin-top:1em;
  font-size:1.1em;
  font-family:"Averia Serif Libre";
  font-weight:400;
}

.mp-category{
  text-align:center;
  font-size:0.75em;
}

.mp-category a{
  color:initial;
  text-decoration:none;
  background-image: linear-gradient(#0645ad, #0645ad);
  background-size: 100% 1px, auto;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: all .2s ease-out;
}

.mp-category a:hover{
  background-size: 100% 100%, auto;
  color:white;
  text-decoration:none;
}

.fc-text{
  text-align:center;
}

.fc-text a{
  color:initial;
  text-decoration:none;
  background-image: linear-gradient(#0645ad, #0645ad);
  background-size: 100% 1px, auto;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: all .2s ease-out;
}

.fc-text a:hover{
  background-size: 100% 100%, auto;
  color:white;
  text-decoration:none;
}

.fc-grid{
  display: grid;
  justify-items:center;
  align-items:center;
  width:100%;
  grid-gap: 10px;
  grid-template-columns: repeat(auto-fill, 220px);

}

.fc-grid>* {
  width: 220px;
  height:350px;
  text-align:center;
  border-radius:10px;
  border:1px grey solid;
}

.mp-category-grid{
  display: grid;
  justify-items:center;
  width:100%;
  grid-gap: 10px;
  grid-template-columns: repeat(auto-fill, 120px);

}

.mp-category-grid>* {
  width: 60px;
  text-align:center;
}


.fc-img img{
  max-width:100%;
  height:auto;
  margin: auto;
  display: block;
  border-radius:10px;
  box-shadow:2px 2px 4px #222222;
}



.fe-img img{
  max-width:55%;
  height:auto;

}

.fe-img{
  height:80%
}


.mp-character-img img{
  max-width:100%;
  height:auto;
  margin: auto;
  display: block;
}

#randompage{
width:100%;
margin-top:2%;
height:25%
}


/* Infoboxs */
aside.portable-infobox{
  line-height: 1.25em;
}

.pi-data-label{
  flex-basis:40%;
  width:40%;
}

.pi-data-value{
  flex-basis:60%;
  width:60%;
}