Difference between revisions of "MediaWiki:Mobile.css"
Jump to navigation
Jump to search
Tags: Mobile web edit Mobile edit |
Tags: Mobile web edit Mobile edit |
||
Line 36: | Line 36: | ||
margin-left:auto; | margin-left:auto; | ||
margin-right:auto; | margin-right:auto; | ||
+ | margin-top:5%; | ||
} | } | ||
.mp-flex-box{ | .mp-flex-box{ | ||
width:100%; | width:100%; | ||
+ | margin-bottom:2% | ||
} | } | ||
Line 155: | Line 157: | ||
.mp-category-grid{ | .mp-category-grid{ | ||
display: grid; | display: grid; | ||
− | justify- | + | justify-items:center; |
+ | align-items:center; | ||
+ | justify-content: center; | ||
width:100%; | width:100%; | ||
− | + | row-gap:0px; | |
− | grid-template-columns: repeat(auto-fill, | + | column-gap:1px; |
+ | grid-template-columns: repeat(auto-fill, 100px); | ||
} | } | ||
.mp-category-grid>* { | .mp-category-grid>* { | ||
− | width: | + | width: 100px; |
+ | height: 150px; | ||
text-align:center; | text-align:center; | ||
+ | border-radius:10px; | ||
+ | border:1px grey solid; | ||
} | } | ||
Revision as of 04:56, 18 June 2021
/* 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; margin-top:5%; } .mp-flex-box{ width:100%; margin-bottom:2% } #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; align-items:center; justify-content: center; width:100%; row-gap:0px; column-gap:1px; grid-template-columns: repeat(auto-fill, 100px); } .mp-category-grid>* { width: 100px; height: 150px; text-align:center; border-radius:10px; border:1px grey solid; } .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%; }