MediaWiki:Theme2.css: Difference between revisions
MediaWiki interface page
More actions
LightSwitch (talk | contribs) No edit summary |
LightSwitch (talk | contribs) No edit summary |
||
| Line 135: | Line 135: | ||
.gtw-nav ul { | .gtw-nav ul { | ||
margin: 0; | margin: 0; | ||
columns: | columns: 4 200px; | ||
column-fill: balance; | column-fill: balance; | ||
column-gap: 10px; | column-gap: 10px; | ||
Revision as of 13:48, 5 August 2024
/******************** Theme.css *******************
Description:
This is a stylesheet for wiki theme
*************************************************/
/* temp fix for header */
body .fandom-community-header__background {
background: linear-gradient(0deg, rgb(var(--theme-body-background-color--rgb)), transparent), var(--theme-body-background-image) no-repeat
}
/************************************** GTW CARD (MP, ITEM) **************************************/
.gtw-card.card-center {
text-align: center;
}
.gtw-card h2 {
border: none;
font-size: 35px;
font-weight: bold;
line-height: 35px;
margin: 0;
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}
.gtw-card p.gtw-text-mb {
font-size: 14px;
line-height: 18px;
margin-bottom: 20px;
}
.gtw-card a {
color: #FC0;
font-style: normal;
text-decoration: none;
}
.gtw-card .gtw-btn a {
background: #50ab64;
border-radius: 5px;
box-shadow: 2px 2px #000000;
text-shadow: 1px 1px rgba(0, 0, 0, 0.8);
color: #FFF;
display: block;
font-size: 24px;
font-weight: bold;
padding: 5px;
text-align: center;
text-decoration: none;
}
.gtw-card .gtw-btn a:after {
display: none;
}
.gtw-card .flex-img p {
display: flex;
margin: 20px -6px;
}
.gtw-card .flex-img a {
display: block;
margin: 0 5px;
}
.gtw-card .flex-img a img {
width: 100%;
height: auto;
}
.gtw-card .flex-img.calendar img {
border-radius: 10px;
}
.gtw-card .flex-img.col-7 a {
width: 14%;
}
/************************************** GTW CARD (MP) - FLEX PROPERTIES **************************************/
.gtw-mp-row {
display: flex;
gap: 10px;
}
.gtw-card.mp {
flex: 1;
}
.gtw-card.col-23 {
flex: 2;
}
.gtw-card.col-34 {
flex: 3;
}
/************************************** GTW CARD (MP) - NAVBOX **************************************/
.gtw-nav {
background: rgba(0,0,0,0.5);
box-shadow: 0 0 3px inset rgba(0,0,0,0.7);
border-radius: 10px;
padding: 10px 20px;
text-align: left;
margin: 5px 10px;
}
.gtw-nav>p {
display: flex;
flex-wrap: wrap;
}
.gtw-nav .gtw-itembtn {
border: 3px solid #FFF;
border-radius: 10px;
box-shadow: 0 3px 0px rgba(0, 0, 0, 0.5);
color: #FFFFFF;
display: inline-block;
margin: 5px;
padding: 6px 12px;
transition: opacity 0.2s;
position: relative;
}
.gtw-nav.full-width .gtw-itembtn {
margin: 3px 0;
padding: 3px 12px;
text-align: left;
width: 100%;
}
.gtw-nav .gtw-itembtn .growsprite {
margin-right: 8px;
}
.gtw-nav .gtw-itembtn span {
color: #FFFFFF;
font-size: 16px;
font-weight: bold;
text-align: center;
text-decoration: none;
text-shadow: 1.5px 1.5px rgba(0,0,0,0.7);
}
.gtw-nav .gtw-itembtn a {
position: absolute;
top: 0;
bottom: 0;
right: 0;
left: 0;
opacity: 0;
}
.gtw-nav .gtw-itembtn:hover {
opacity: 0.75;
}
.gtw-nav ul {
margin: 0;
columns: 4 200px;
column-fill: balance;
column-gap: 10px;
list-style: none;
}
.gtw-nav li {
display: block;
margin-bottom: 5px;
font-family: Rubik;
font-weight: bold;
text-shadow: -2px 2px 0 rgba(0,0,0,0.4);
}
.gtw-nav .growsprite {
filter: drop-shadow(-2px 2px 0 rgba(0,0,0,0.4));
margin-right: 8px;
}
.gtw-nav.main-nav .growsprite img {
width: 48px;
}
.gtw-nav.class-nav .growsprite img {
width: 24px;
}
/************************************** GTW CARD (MP) - CLOCK & TIMER **************************************/
#gtw-clock #c-event.loading {
display: none;
}
/* Parent Box (row) */
.gtw-timercard {
color: #FFF;
text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
font-family: Century Gothic, sans-serif;
margin-bottom: 10px;
text-align: center;
flex: 1;
}
.gtw-timercard p.gtw-text-mb {
font-size: 14px;
line-height: 18px;
margin-bottom: 20px;
}
.gtw-timercard a {
color: #FC0;
font-style: normal;
text-decoration: none;
}
.gtw-timercard .flex-img p {
display: flex;
}
.gtw-timercard .flex-img a {
display: block;
}
.gtw-timercard .flex-img a img {
width: 100%;
height: auto;
}
.gtw-timercard .flex-img.calendar img {
border-radius: 10px;
box-shadow: 0 2px 2px rgba(0,0,0,0.5);
margin-bottom: 5px;
}
/* Child Box (column) */
.gtw-timercard .flex-child {
flex-flow: column;
height: 100%;
display: flex;
}
/* Main Clock - Flex Height */
.gtw-clockcard {
background: linear-gradient(#1b7d93,#60d7f2);
border-radius: 10px;
box-shadow: 0 2px 2px rgba(0,0,0,0.5);
padding: 25px 40px;
position: relative;
flex: 1 1 auto;
vertical-align: middle;
}
.gtw-clockcard h2 {
border: none;
font-size: 35px;
font-weight: bold;
line-height: 42px;
margin: 0;
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}
.gtw-clockcard h3 {
border: none;
font-family: Rubik;
font-weight: bold;
font-size: 42px;
line-height: 42px;
margin: 0;
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}
.gtw-clockcard h4 {
border: none;
font-family: Rubik;
font-weight: bold;
font-size: 20px;
margin: 0;
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}
/* Event Timers - Fixed Height */
.gtw-timer {
border-radius: 10px;
box-shadow: 0 2px 2px rgba(0,0,0,0.5);
padding: 10px 15px;
margin-top: 5px;
position: relative;
flex: 0 auto;
}
.gtw-timer>span {
display: inline-block;
height: 120px;
width: 32px;
position: absolute;
top: 5px;
left: 10px;
}
.gtw-timer h3 {
margin: 0;
font-size: 20px;
font-weight: bold;
}
.gtw-timer div {
font-size: 16px;
}
.gtw-timer.challenge {
background-image: url(https://static.wikia.nocookie.net/growtopia/images/5/5f/Mp-timer-daily.png/revision/latest?cb=20240805091636), linear-gradient(#ffc601,#d1a608);
background-size: 120px 80px, auto;
background-position: bottom right;
background-repeat: no-repeat;
}
.gtw-timer.notc {
background-image: url(https://static.wikia.nocookie.net/growtopia/images/3/3b/Mp-timer-comet.png/revision/latest?cb=20240805091348), linear-gradient(#114523,#0c331a);
background-size: 120px 80px, auto;
background-position: bottom right;
background-repeat: no-repeat;
}
.gtw-timer.tournament {
background-image: url(https://static.wikia.nocookie.net/growtopia/images/f/f3/Mp-timer-tourney.png/revision/latest?cb=20240805091553), linear-gradient(#00545d,#052a2e);
background-size: 120px 80px, auto;
background-position: bottom right;
background-repeat: no-repeat;
}
/************************************** GTW CARD (MP) - DISCORD BOX **************************************/
.gtw-discord {
background: rgba(35,36,40,1.0);
border-radius: 10px;
box-shadow: 0 2px 2px rgba(0,0,0,0.5);
font-family: Century Gothic, sans-serif;
margin-bottom: 10px;
padding: 25px 40px;
flex: 1;
text-align: center;
}
.gtw-discord h2 {
border: none;
font-size: 35px;
font-weight: bold;
line-height: 35px;
margin: 0;
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}
.gtw-discord .d-header img {
width: 75%;
height: auto;
margin: 5px 0 15px;
}
.gtw-discord .servericon img {
width: 33%;
height: auto;
border-radius: 20px;
margin-bottom: 5px;
}
.gtw-discord .joinserver a {
background: #5865F2;
border-radius: 25px;
color: #FFF;
display: block;
font-size: 20px;
font-weight: bold;
padding: 10px;
text-align: center;
text-decoration: none;
}
.gtw-discord .joinserver a:hover {
background: rgba(73,82,189,1.0);
text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
box-shadow: 0 0 5px rgba(0,0,0,0.5);
}
/************************************** GTW CARD (MP) - AJAX POLL (DEPRECATED) **************************************/
.gtw-card .ajax-poll {
border: 0;
padding: 0;
}
.gtw-card .ajax-poll .header {
font-size: 17px;
}
.gtw-card .ajax-poll .pollAnswerName {
padding-left: 0;
}
.gtw-card .ajax-poll .pollAnswerName input[type=radio] {
margin-left: 0;
}
.gtw-card .ajax-poll .pollAnswerVotes {
background: rgba(0, 0, 0, 0.5);
border: 0;
height: 5px;
margin-left: 0;
}
.gtw-card .ajax-poll .pollAnswerVotes div {
background: #FFFFFF;
height: 5px;
}
.gtw-card .ajax-poll .pollAnswerVotes span {
bottom: 0;
font-weight: bold;
left: auto;
right: 0;
top: auto;
}
.gtw-card .ajax-poll .pollAnswerVotes:hover span {
bottom: auto;
color: #FF9900;
text-shadow: 2px 0 #000, 0 2px #000, 0 -2px #000, -2px 0 #000, 1px 1px #000, 1px -1px #000, -1px 1px #000, -1px -1px #000;
top: -250%;
}
.gtw-card .ajax-poll input[type="submit"] {
background-image: none;
border-radius: 10px;
box-sizing: border-box;
box-shadow: 0 2px 2px rgba(0,0,0,0.5);
font-family: Century Gothic, sans-serif;
font-size: 20px;
font-weight: bold;
height: auto;
margin-top: 5px;
outline: none;
padding: 10px;
text-transform: uppercase;
width: 100%;
}
.gtw-card .ajax-poll input[type="submit"]:hover {
background-image: none;
}
.gtw-card .ajax-poll #ajax-poll-area > div:last-child {
font-size: 12px;
line-height: 12px;
}
.rcs-container .gtw-card {
padding: 25px 25px 80px;
}
/************************************** HOME PAGE - 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: 4px;
margin-right: 21px;
}
.newsBox .header .growsprite img {
width: 42px;
}
.newsBox img {
transition: opacity 0.2s;
}
.newsBox img:hover {
opacity: 0.7;
}
.newsBox div:not(.flex-img)>p>a {
color: #FFF;
background: #89C3D6;
display: inline-block;
box-shadow: 1px 1px #000000;
padding: 7px 5px;
text-shadow: 1px 1px #000;
border-radius: 3px;
text-decoration: none;
font-size: 22px;
}
.newsBox div:not(.flex-img)>p>a:after {
display: none;
}
.newsBox .colorable .point {
display:flex;
}
.newsBox .colorable .point .growsprite img {
margin-right: 5px;
width: 24px;
}
.newsBox .colorable span, .newsBox .colorable a, .newsBox .colorable p {
font-weight: bold;
}
.newsBox .flex-img p {
display: flex;
margin: 20px -6px;
}
.newsBox .flex-img a {
display: block;
margin: 0 5px;
}
.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%;
}
/************************************** - Section End - **************************************/
/************************************** COLORABLES **************************************/
.colorable {
color:rgb(252,230,186);
font-family: Century Gothic, sans-serif;
font-weight: bold;
}
.colorable span[style="0"] {color:rgb(255,255,255);}
.colorable span[style="1"] {color:rgb(173,244,255);}
.colorable span[style="2"] {color:rgb(73,252,0);}
.colorable span[style="3"] {color:rgb(191,218,255);}
.colorable span[style="4"] {color:rgb(255,39,29);}
.colorable span[style="5"] {color:rgb(235,183,255);}
.colorable span[style="6"] {color:rgb(255,202,111);}
.colorable span[style="7"] {color:rgb(230,230,230);}
.colorable span[style="8"] {color:rgb(255,148,69);}
.colorable span[style="9"] {color:rgb(255,238,125);}
.colorable span[style="!"] {color:rgb(209,255,249);}
.colorable span[style="@"] {color:rgb(255,205,201);}
.colorable span[style="#"] {color:rgb(255,143,243);}
.colorable span[style="$"] {color:rgb(255,252,197);}
.colorable span[style="^"] {color:rgb(181,255,151);}
.colorable span[style="&"] {color:rgb(254,235,255);}
.colorable span[style="w"] {color:rgb(255,255,255);}
.colorable span[style="o"] {color:rgb(252,230,186);}
.colorable span[style="b"] {color:rgb(0,0,0);}
.colorable span[style="p"] {color:rgb(255,223,241);}
.colorable span[style="q"] {color:rgb(12,96,164);}
.colorable span[style="e"] {color:rgb(25,185,255);}
.colorable span[style="r"] {color:rgb(111,211,87);}
.colorable span[style="t"] {color:rgb(47,131,13);}
.colorable span[style="a"] {color:rgb(81,81,81);}
.colorable span[style="s"] {color:rgb(158,158,158);}
.colorable span[style="c"] {color:#50ffff;}
/************************************** - Section End - **************************************/
/************************************** GTW CARD - MEDIA QUERIES **************************************/
/* GTW Card (MP) - Flex */
@media only screen and (max-width: 1152px) {
.gtw-mp-row {
flex-wrap: wrap;
}
.gtw-card.mp {
flex-basis: 100%;
}
.gtw-discord {
flex-basis: 100%;
}
}