We are actively looking for staff to help us build the wiki. If you are interested please join our Discord server and apply.
MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
Tag: Undo |
(Character card css) Tag: Reverted |
||
| Line 28: | Line 28: | ||
/* Card container */ | /* Card container */ | ||
.card-container { | .character-card-container { | ||
border: 2.25px solid; | |||
border-radius: 15px; | |||
width: 250px; | |||
overflow: hidden; | |||
display: flex; | display: flex; | ||
flex- | flex-direction: column; | ||
margin: 10px; | |||
position: relative; | |||
background-color: #fff; | |||
font-family: Arial, sans-serif; | |||
} | } | ||
/* | /* Card top border */ | ||
.card { | .card-top-border { | ||
display: flex; | |||
justify-content: space-between; | |||
align-items: center; | align-items: center; | ||
padding: 5px 10px; | |||
border- | border-bottom: 2px solid #ccc; | ||
font-size: 1em; | |||
font-weight: bold; | |||
color: #000; | |||
background-image: linear-gradient(45deg, #fff, #fff); /* Default gradient */ | |||
background- | |||
} | } | ||
/* Card | /* Card bottom border */ | ||
.card- | .card-bottom-border { | ||
height: 20px; | |||
width: 100%; | |||
position: absolute; | |||
bottom: 0; | |||
} | } | ||
/* Card image container */ | /* Card image container */ | ||
.card-image { | .card-image-container { | ||
flex: | display: flex; | ||
justify-content: center; | |||
align-items: center; | |||
padding: 10px; | |||
} | |||
/* Card image box */ | |||
.card-image-box { | |||
width: 150px; | |||
height: 100px; | |||
border: 1px solid #ccc; | |||
border-radius: 15px; | |||
display: flex; | display: flex; | ||
justify-content: center; | justify-content: center; | ||
align-items: center; | align-items: center; | ||
background-color: #fff; | |||
} | } | ||
/* Card image */ | /* Card image */ | ||
.card-image img { | .card-image img { | ||
width: | max-width: 100%; | ||
height: | max-height: 100%; | ||
display: block; | display: block; | ||
} | |||
/* Card description */ | |||
.card-description { | |||
padding: 10px; | |||
text-align: center; | |||
font-size: 0.9em; | |||
color: #000; /* Set text color to black */ | |||
} | } | ||
/* Rarity categories */ | /* Rarity categories */ | ||
.rarity-common { | .rarity-common { | ||
border-color: #58bd7d; | |||
color: #000; | color: #000; | ||
} | |||
.rarity-common .card-top-border { | |||
background-image: linear-gradient(45deg, #58bd7d, #a6dba1); | |||
} | |||
.rarity-common .card-bottom-border { | |||
background-image: linear-gradient(45deg, #a6dba1, #dff2e1); | |||
} | } | ||
.rarity-uncommon { | .rarity-uncommon { | ||
border-color: #3b71fe; | |||
color: #fff; | color: #fff; | ||
} | |||
.rarity-uncommon .card-top-border { | |||
background-image: linear-gradient(45deg, #3b71fe, #85aaff); | |||
} | |||
.rarity-uncommon .card-bottom-border { | |||
background-image: linear-gradient(45deg, #85aaff, #d0e0ff); | |||
} | } | ||
.rarity-rare { | .rarity-rare { | ||
border-color: #9f73e6; | |||
color: #fff; | color: #fff; | ||
} | |||
.rarity-rare .card-top-border { | |||
background-image: linear-gradient(45deg, #9f73e6, #d3b4ff); | |||
} | |||
.rarity-rare .card-bottom-border { | |||
background-image: linear-gradient(45deg, #d3b4ff, #f0e5ff); | |||
} | } | ||
.rarity-legendary { | .rarity-legendary { | ||
border-color: #e85929; | |||
color: #fff; | color: #fff; | ||
} | |||
.rarity-legendary .card-top-border { | |||
background-image: linear-gradient(45deg, #e85929, #ffa07a); | |||
} | |||
.rarity-legendary .card-bottom-border { | |||
background-image: linear-gradient(45deg, #ffa07a, #ffd1bf); | |||
} | } | ||
.rarity-mythic { | .rarity-mythic { | ||
border-color: #4bc9f0; | |||
color: #fff; | color: #fff; | ||
} | |||
.rarity-mythic .card-top-border { | |||
background-image: linear-gradient(45deg, #4bc9f0, #a6eaff); | |||
} | |||
.rarity-mythic .card-bottom-border { | |||
background-image: linear-gradient(45deg, #a6eaff, #d9f7ff); | |||
} | } | ||
| Line 105: | Line 166: | ||
.card-rarity { | .card-rarity { | ||
padding: 5px; | padding: 5px; | ||
font-size: | font-size: 0.9em; | ||
font-weight: bold; | font-weight: bold; | ||
width: 100%; | width: 100%; | ||
text-align: center; | text-align: center; | ||
text-transform: capitalize; /* | text-transform: capitalize; | ||
} | |||
/* Craftable tag */ | |||
.card-craftable { | |||
background-color: green; | |||
color: white; | |||
border-radius: 5px; | |||
padding: 2px 5px; | |||
font-size: 0.8em; | |||
margin: 5px auto; | |||
text-align: center; | |||
display: inline-block; | |||
} | } | ||
Revision as of 00:04, 5 July 2024
/* CSS placed here will be applied to all skins */
@import "/index.php?title=MediaWiki:Common.css/homepage.css&action=raw&ctype=text/css";
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');
body {
font-family: "Inter", sans-serif;
background-attachment: fixed;
}
:root {
--navbox-background-color: #FFF;
--navbox-border-color: #CCC;
--navbox-header-color: #CCC;
--navbox-secondary-header-color: #DDD;
--navbox-tertiary-header-color: #EEE;
--navbox-section-color: #EEE;
}
body.wgl-theme-dark {
--navbox-background-color: #333;
--navbox-border-color: #444;
--navbox-header-color: #111;
--navbox-secondary-header-color: #181818;
--navbox-tertiary-header-color: #222;
--navbox-section-color: #222;
}
/* Card container */
.character-card-container {
border: 2.25px solid;
border-radius: 15px;
width: 250px;
overflow: hidden;
display: flex;
flex-direction: column;
margin: 10px;
position: relative;
background-color: #fff;
font-family: Arial, sans-serif;
}
/* Card top border */
.card-top-border {
display: flex;
justify-content: space-between;
align-items: center;
padding: 5px 10px;
border-bottom: 2px solid #ccc;
font-size: 1em;
font-weight: bold;
color: #000;
background-image: linear-gradient(45deg, #fff, #fff); /* Default gradient */
}
/* Card bottom border */
.card-bottom-border {
height: 20px;
width: 100%;
position: absolute;
bottom: 0;
}
/* Card image container */
.card-image-container {
display: flex;
justify-content: center;
align-items: center;
padding: 10px;
}
/* Card image box */
.card-image-box {
width: 150px;
height: 100px;
border: 1px solid #ccc;
border-radius: 15px;
display: flex;
justify-content: center;
align-items: center;
background-color: #fff;
}
/* Card image */
.card-image img {
max-width: 100%;
max-height: 100%;
display: block;
}
/* Card description */
.card-description {
padding: 10px;
text-align: center;
font-size: 0.9em;
color: #000; /* Set text color to black */
}
/* Rarity categories */
.rarity-common {
border-color: #58bd7d;
color: #000;
}
.rarity-common .card-top-border {
background-image: linear-gradient(45deg, #58bd7d, #a6dba1);
}
.rarity-common .card-bottom-border {
background-image: linear-gradient(45deg, #a6dba1, #dff2e1);
}
.rarity-uncommon {
border-color: #3b71fe;
color: #fff;
}
.rarity-uncommon .card-top-border {
background-image: linear-gradient(45deg, #3b71fe, #85aaff);
}
.rarity-uncommon .card-bottom-border {
background-image: linear-gradient(45deg, #85aaff, #d0e0ff);
}
.rarity-rare {
border-color: #9f73e6;
color: #fff;
}
.rarity-rare .card-top-border {
background-image: linear-gradient(45deg, #9f73e6, #d3b4ff);
}
.rarity-rare .card-bottom-border {
background-image: linear-gradient(45deg, #d3b4ff, #f0e5ff);
}
.rarity-legendary {
border-color: #e85929;
color: #fff;
}
.rarity-legendary .card-top-border {
background-image: linear-gradient(45deg, #e85929, #ffa07a);
}
.rarity-legendary .card-bottom-border {
background-image: linear-gradient(45deg, #ffa07a, #ffd1bf);
}
.rarity-mythic {
border-color: #4bc9f0;
color: #fff;
}
.rarity-mythic .card-top-border {
background-image: linear-gradient(45deg, #4bc9f0, #a6eaff);
}
.rarity-mythic .card-bottom-border {
background-image: linear-gradient(45deg, #a6eaff, #d9f7ff);
}
/* Rarity section */
.card-rarity {
padding: 5px;
font-size: 0.9em;
font-weight: bold;
width: 100%;
text-align: center;
text-transform: capitalize;
}
/* Craftable tag */
.card-craftable {
background-color: green;
color: white;
border-radius: 5px;
padding: 2px 5px;
font-size: 0.8em;
margin: 5px auto;
text-align: center;
display: inline-block;
}
.table-container {
display: flex;
flex-wrap: wrap;
justify-content: center; /* Center the tables */
gap: 10px; /* Add space between the table items */
}
.table-item {
display: flex;
flex-direction: column;
align-items: center;
margin: 10px;
text-align: center; /* Center align the contents of each table item */
flex: 1 1 200px; /* Ensure the table items are responsive */
box-sizing: border-box; /* Ensure padding and border are included in the width */
}
.table-icon {
margin-bottom: 10px; /* Space between icon and table */
}
@media (max-width: 800px) {
.table-item {
flex: 1 1 100%;
margin-right: 0;
}
}
.infobox {
background-color: #85a4e0;
border: 2.25px solid #2f76ff;
width: 300px;
max-width: 100%;
padding: 7.5px;
font-family: Arial, sans-serif;
border-radius: 15px;
border-top: 7.5px solid #2f76ff;
border-bottom: 7.5px solid #2f76ff;
float: right;
box-sizing: border-box;
}
.infobox-title {
background-color: #2f76ff;
color: #333;
font-size: 13.5px;
font-weight: bold;
text-align: center;
padding: 3.75px;
border-radius: 7.5px;
}
.infobox-image {
text-align: center;
padding: 7.5px 0;
}
.infobox-content {
background-color: #85a4e0;
padding: 3.75px;
padding-bottom: 0px;
border-radius: 7.5px;
}
.infobox-header {
background-color: #a1b7e0;
text-align: center;
font-weight: bold;
margin: 3.75px 0;
padding: 3.75px;
border-radius: 3.75px;
border: 0.75px solid #2f76ff;
}
.infobox-row {
display: flex;
align-items: flex-start;
margin-bottom: 3px;
}
.infobox-category {
background-color: #a1b7e0;
border: 0.75px solid #2f76ff;
border-radius: 7.5px;
width: 100px;
font-size: 13px;
padding: 3.75px;
box-sizing: border-box;
white-space: nowrap;
overflow: hidden;
text-align: left;
flex-shrink: 0;
border-top: 0;
border-left: 0;
border-right: 0;
}
.infobox-value {
flex-grow: 1;
padding: 3.75px;
box-sizing: border-box;
word-break: break-word;
overflow: hidden;
text-overflow: ellipsis;
font-size: 12px;
}
.infobox-icon {
display: flex;
align-items: center;
padding: 3.75px 0;
font-size: 12px;
}
.infobox-foundin
display: flex;
flex-direction: column;
gap: 5px;
}
.infobox-foundin img {
margin-bottom: 5px
}
.masterlist-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 10px;
}
.masterlist-item {
text-align: center;
margin: 10px;
}
.masterlist-icon {
filter: grayscale(100%);
transition: filter 0.3s ease;
cursor: pointer;
}
.masterlist-icon.clicked {
filter: grayscale(0%);
}