MediaWiki:Theme.css: Difference between revisions
MediaWiki interface page
More actions
NekoPillow (talk | contribs) No edit summary |
NekoPillow (talk | contribs) No edit summary |
||
| Line 75: | Line 75: | ||
color:#000000; | color:#000000; | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | |||
} | |||
.wpnav .wpnav-body>div { | |||
width: 25%; | |||
} | } | ||
.wpnav .wpnav-body>div img { | .wpnav .wpnav-body>div img { | ||
| Line 80: | Line 84: | ||
height: 64px; | height: 64px; | ||
object-fit: contain; | object-fit: contain; | ||
} | |||
.wpnav .wpnav-body>div b { | |||
display: block; | |||
} | } | ||
Revision as of 13:25, 28 June 2020
/******************** Theme.css *******************
Description:
This is a stylesheet for wiki theme
*************************************************/
/* Home WPCard */
.wpcard {
font-family: Century Gothic, sans-serif;
font-weight: bold;
margin-bottom: 5px;
font-size: 14px;
color: #000000;
}
.wpcard>.header{
background-image: url("https://vignette.wikia.nocookie.net/growtopia/images/7/74/Ntbheader.png");
background-color: #60D7F2;
background-repeat: no-repeat;
background-position: right bottom;
color: #FFFFFF;
text-shadow: 1.5px 1.5px 1px rgba(0,0,0,0.8);
padding: 20px 20px 30px;
text-align: left;
font-size: 22px;
position:relative;
}
.wpcard>.header::after{
content: "";
display: block;
width: 100%;
height: 17px;
background-image: url("https://vignette.wikia.nocookie.net/growtopia/images/9/96/Dirtlayer.png");
background-color: #BEE8F1;
background-repeat: repeat-x;
position:absolute;
bottom: 0;
left: 0;
}
.wpcard>.header>a.image {
text-align: center;
width: 100%;
display: block;
}
.wpcard>.header>h2{
font-size: 25px;
line-height: 25px;
text-align: center;
border: none;
margin: 0;
}
.wpcard>.body {
padding: 10px 20px;
background-color: #BEE8F1;
text-align: center;
}
/* Home WPNav */
.wpnav {
display: flex;
}
.wpnav>.wpnav-main {
width: 70%;
}
.wpnav>.wpnav-side {
width: 30%;
}
.wpnav .wpnav-header {
background-color: #239CBC;
color:#FFFFFF;
font-size:20px;
padding: 10px;
}
.wpnav .wpnav-body {
background-color: rgba(35,156,188, 0.2);
color:#000000;
display: flex;
flex-wrap: wrap;
}
.wpnav .wpnav-body>div {
width: 25%;
}
.wpnav .wpnav-body>div img {
width: 64px;
height: 64px;
object-fit: contain;
}
.wpnav .wpnav-body>div b {
display: block;
}
/* Home NewsBox */
.newsBox {
background: #4481A6;
border-radius: 5px;
border: 5px solid #89C3D6;
color: #FFF;
box-shadow: 3px 3px #000000, 3px 3px #000000 inset;
font-family: Century Gothic, sans-serif;
font-weight: bold;
padding: 5px 15px;
margin: 0 3px 3px;
font-size: 20px;
text-align: left;
}
.newsBox .header {
font-size: 32px;
margin-top: 5px;
margin-bottom: 10px;
}
.newsBox .header .growsprite {
vertical-align: text-bottom;
margin-right: 10px;
}
.newsBox .header .growsprite img {
width: 40px;
}
.newsBox img {
transition: opacity 0.2s;
}
.newsBox img:hover {
opacity: 0.7;
}
.newsBox .colorable .point {
display:flex;
}
.newsBox .colorable .point .growsprite img {
margin-right: 5px;
width: 24px;
}
.newsBox .flex-img p {
display: flex;
margin: 20px 0;
}
.newsBox .flex-img a {
display: block;
}
.newsBox .flex-img a:not(:last-child) {
padding-right: 10px;
}
.newsBox .flex-img a img {
width: 100%;
height: auto;
}
.newsBox .flex-img.col-3 a {
width: 33%;
}
.newsBox .flex-img.col-5 a {
width: 20%;
}