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 |
(Fix up image stretching issue) |
||
| (19 intermediate revisions by 2 users not shown) | |||
| Line 16: | Line 16: | ||
--navbox-tertiary-header-color: #EEE; | --navbox-tertiary-header-color: #EEE; | ||
--navbox-section-color: #EEE; | --navbox-section-color: #EEE; | ||
} | |||
/* Moonbounce colours for item types and rarities in HSL | |||
Usage: background-color: hsl(var(--commonColour)); | |||
*/ | |||
:root { | |||
--commonColour: 142, 43%, 54%; | |||
--uncommonColour: 223, 99%, 61%; | |||
--rareColour: 263, 70%, 68%; | |||
--legendaryColour: 15, 81%, 54%; | |||
--mythicColour: 194, 85%, 62%; | |||
/* versions of the rarity colours just a little off from white */ | |||
--commonFadeColour: 142, 43%, 95%; | |||
--uncommonFadeColour: 223, 99%, 95%; | |||
--rareFadeColour: 263, 70%, 95%; | |||
--legendaryFadeColour: 15, 81%, 95%; | |||
--mythicFadeColour: 194, 85%, 95%; | |||
--accessoryColour: 15, 81%, 54%; | |||
--materialColour: 194, 85%, 62%; | |||
--toolColour: 222, 99%, 57%; | |||
--characterColour: 263, 70%, 68%; | |||
} | } | ||
| Line 25: | Line 48: | ||
--navbox-tertiary-header-color: #222; | --navbox-tertiary-header-color: #222; | ||
--navbox-section-color: #222; | --navbox-section-color: #222; | ||
} | |||
/* Start to put some generic alignments here... */ | |||
.left-align { | |||
justify-content: flex-start !important; | |||
justify-content: start !important; | |||
} | |||
.right-align { | |||
justify-content: flex-end !important; | |||
justify-content: end !important; | |||
} | } | ||
| Line 41: | Line 74: | ||
border: 1px solid #ccc; | border: 1px solid #ccc; | ||
border-radius: 8px; | border-radius: 8px; | ||
box-shadow: 0 2px 5px rgba(0,0,0,0.1); | box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
| Line 50: | Line 83: | ||
overflow: hidden; | overflow: hidden; | ||
margin: 5px; | margin: 5px; | ||
/* | --rarityColour: #000000; | ||
. | |||
/* set variables based on .rarity-RARITY on .card */ | |||
&.rarity-common { | |||
--rarityColour: hsl(var(--commonColour)); | |||
} | |||
} | &.rarity-uncommon { | ||
--rarityColour: hsl(var(--uncommonColour)); | |||
} | |||
&.rarity-rare { | |||
--rarityColour: hsl(var(--rareColour)); | |||
} | |||
&.rarity-legendary { | |||
--rarityColour: hsl(var(--legendaryColour)); | |||
} | |||
&.rarity-mythic { | |||
--rarityColour: hsl(var(--mythicColour)); | |||
} | |||
/* Card | /* Card title */ | ||
.card- | .card-title { | ||
font-size: 1.2em; | |||
font-weight: bold; | |||
padding: 5px; | |||
background-color: transparent; | |||
} | |||
} | |||
/* Card image */ | /* Card image container */ | ||
.card-image | .card-image { | ||
flex: 1; /* Take remaining space */ | |||
display: flex; | |||
justify-content: center; | |||
align-items: center; | |||
padding: 5px; /* Add padding to keep distance from edges */ | |||
/* | /* Card image */ | ||
img { | |||
width: 64px; | |||
height: 64px; | |||
} | display: block; | ||
object-fit: contain; | |||
} | |||
} | |||
.rarity- | /* Card Rarity */ | ||
.card-rarity { | |||
padding: 5px; | |||
font-size: 1em; | |||
font-weight: bold; | |||
width: 100%; | |||
text-align: center; | |||
text-transform: capitalize; /* Capitalize the first letter */ | |||
color: #ffffff; | |||
background-color: var(--rarityColour); | |||
} | |||
} | } | ||
/* Character card container */ | /* Character card container */ | ||
.character-card | .character-card { | ||
border: 2.25px solid; | border: 2.25px solid; | ||
border-radius: 15px; | border-radius: 15px; | ||
width: 250px; | width: 250px; | ||
height: 300px; | height: fit-content; | ||
min-height: 300px; | |||
overflow: hidden; | overflow: hidden; | ||
display: flex; | display: flex; | ||
| Line 125: | Line 158: | ||
margin: 10px; | margin: 10px; | ||
background-color: #fff; | background-color: #fff; | ||
--rarityColour: #FFFFFF; | |||
--rarityColourFade: #fffFFF; | |||
/* | /* set variables based on .rarity-RARITY on .card */ | ||
. | &.rarity-common { | ||
--rarityColour: hsl(var(--commonColour)); | |||
--rarityColourFade: hsl(var(--commonFadeColour)); | |||
} | |||
&.rarity-uncommon { | |||
--rarityColour: hsl(var(--uncommonColour)); | |||
} | --rarityColourFade: hsl(var(--uncommonFadeColour)); | ||
} | |||
&.rarity-rare { | |||
. | --rarityColour: hsl(var(--rareColour)); | ||
--rarityColourFade: hsl(var(--rareFadeColour)); | |||
} | |||
&.rarity-legendary { | |||
--rarityColour: hsl(var(--legendaryColour)); | |||
--rarityColourFade: hsl(var(--legendaryFadeColour)); | |||
} | |||
&.rarity-mythic { | |||
--rarityColour: hsl(var(--mythicColour)); | |||
} | --rarityColourFade: hsl(var(--mythicFadeColour)); | ||
} | |||
border-color: var(--rarityColour); | |||
background: linear-gradient(to bottom right, white 0 50%, var(--rarityColourFade) 50% 100%); | |||
/* Card | /* Card top border */ | ||
. | .card-top-border { | ||
display: flex; | |||
justify-content: space-between; | |||
align-items: center; | |||
padding: 5px 10px; | |||
font-size: 1em; | |||
color: #FFFFFF; | |||
background-color: var(--rarityColour); | |||
.card-name { | |||
.card- | font-weight: bold; | ||
font-size: 24px; | |||
} | |||
} | |||
.card-number { | |||
font-size: 16px; | |||
} | |||
} | } | ||
/* Card image container */ | |||
.card-image-container { | |||
display: flex; | |||
justify-content: center; | |||
align-items: center; | |||
padding: 10px; | |||
flex-grow: 1; /* Allow image container to grow */ | |||
. | /* Card image box */ | ||
.card-image-box { | |||
width: 200px; | |||
height: 100px; | |||
border: 1px solid var(--rarityColourFade); | |||
border-radius: 15px; | |||
display: flex; | |||
justify-content: center; | |||
align-items: center; | |||
background-color: #fff; | |||
/* Card image */ | |||
img { | |||
} | max-width: 100%; | ||
max-height: 100%; | |||
display: block; | |||
} | |||
} | |||
} | |||
. | /* Card description */ | ||
.character-card-description { | |||
} | padding: 10px; | ||
text-align: left; | |||
font-size: 0.9em; | |||
color: #000; /* Set text color to black */ | |||
flex-grow: 1; /* Allow description to grow */ | |||
} | |||
. | /* Bottom section containing rarity and craftable */ | ||
.card-bottom-section { | |||
display: flex; | |||
justify-content: flex-start; | |||
align-items: center; | |||
padding: 10px; | |||
gap: 10px; | |||
. | .pill { | ||
padding: 2px 5px; | |||
font-size: 1em; | |||
font-weight: bold; | |||
text-align: center; | |||
color: #fff; | |||
border-radius: 5px; | |||
display: inline-block; | |||
text-transform: capitalize; | |||
} | |||
} | |||
/* Rarity section */ | |||
.card-rarity { | |||
} | background-color: var(--rarityColour); | ||
} | |||
/* Craftable tag */ | |||
.card-craftable { | |||
background-color: green; | |||
} | |||
} | |||
} | |||
} | |||
} | } | ||
.table-container { | .table-container { | ||
| Line 300: | Line 310: | ||
max-width: 100%; | max-width: 100%; | ||
padding: 7.5px; | padding: 7.5px; | ||
margin-left: 10px; | |||
font-family: Arial, sans-serif; | font-family: Arial, sans-serif; | ||
border-radius: 15px; | border-radius: 15px; | ||
| Line 321: | Line 332: | ||
text-align: center; | text-align: center; | ||
padding: 7.5px 0; | padding: 7.5px 0; | ||
image-rendering: pixelated; | |||
} | } | ||
| Line 410: | Line 423: | ||
.masterlist-icon.clicked { | .masterlist-icon.clicked { | ||
filter: grayscale(0%); | filter: grayscale(0%); | ||
} | |||
/* Utility item div */ | |||
.little-item | |||
{ | |||
width: fit-content; | |||
height: fit-content; | |||
display: flex; | |||
flex-direction: column; | |||
align-content: center; | |||
align-items: center; | |||
} | } | ||
Latest revision as of 21:09, 20 May 2025
/* 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;
}
/* Moonbounce colours for item types and rarities in HSL
Usage: background-color: hsl(var(--commonColour));
*/
:root {
--commonColour: 142, 43%, 54%;
--uncommonColour: 223, 99%, 61%;
--rareColour: 263, 70%, 68%;
--legendaryColour: 15, 81%, 54%;
--mythicColour: 194, 85%, 62%;
/* versions of the rarity colours just a little off from white */
--commonFadeColour: 142, 43%, 95%;
--uncommonFadeColour: 223, 99%, 95%;
--rareFadeColour: 263, 70%, 95%;
--legendaryFadeColour: 15, 81%, 95%;
--mythicFadeColour: 194, 85%, 95%;
--accessoryColour: 15, 81%, 54%;
--materialColour: 194, 85%, 62%;
--toolColour: 222, 99%, 57%;
--characterColour: 263, 70%, 68%;
}
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;
}
/* Start to put some generic alignments here... */
.left-align {
justify-content: flex-start !important;
justify-content: start !important;
}
.right-align {
justify-content: flex-end !important;
justify-content: end !important;
}
/* Container for cards */
.card-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 5px;
padding: 5px;
}
/* Individual card */
.card {
align-items: center;
border: 1px solid #ccc;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
width: 160px;
max-width: 100%;
text-align: center;
background-color: #fff;
overflow: hidden;
margin: 5px;
--rarityColour: #000000;
/* set variables based on .rarity-RARITY on .card */
&.rarity-common {
--rarityColour: hsl(var(--commonColour));
}
&.rarity-uncommon {
--rarityColour: hsl(var(--uncommonColour));
}
&.rarity-rare {
--rarityColour: hsl(var(--rareColour));
}
&.rarity-legendary {
--rarityColour: hsl(var(--legendaryColour));
}
&.rarity-mythic {
--rarityColour: hsl(var(--mythicColour));
}
/* Card title */
.card-title {
font-size: 1.2em;
font-weight: bold;
padding: 5px;
background-color: transparent;
}
/* Card image container */
.card-image {
flex: 1; /* Take remaining space */
display: flex;
justify-content: center;
align-items: center;
padding: 5px; /* Add padding to keep distance from edges */
/* Card image */
img {
width: 64px;
height: 64px;
display: block;
object-fit: contain;
}
}
/* Card Rarity */
.card-rarity {
padding: 5px;
font-size: 1em;
font-weight: bold;
width: 100%;
text-align: center;
text-transform: capitalize; /* Capitalize the first letter */
color: #ffffff;
background-color: var(--rarityColour);
}
}
/* Character card container */
.character-card {
border: 2.25px solid;
border-radius: 15px;
width: 250px;
height: fit-content;
min-height: 300px;
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: space-between;
margin: 10px;
background-color: #fff;
--rarityColour: #FFFFFF;
--rarityColourFade: #fffFFF;
/* set variables based on .rarity-RARITY on .card */
&.rarity-common {
--rarityColour: hsl(var(--commonColour));
--rarityColourFade: hsl(var(--commonFadeColour));
}
&.rarity-uncommon {
--rarityColour: hsl(var(--uncommonColour));
--rarityColourFade: hsl(var(--uncommonFadeColour));
}
&.rarity-rare {
--rarityColour: hsl(var(--rareColour));
--rarityColourFade: hsl(var(--rareFadeColour));
}
&.rarity-legendary {
--rarityColour: hsl(var(--legendaryColour));
--rarityColourFade: hsl(var(--legendaryFadeColour));
}
&.rarity-mythic {
--rarityColour: hsl(var(--mythicColour));
--rarityColourFade: hsl(var(--mythicFadeColour));
}
border-color: var(--rarityColour);
background: linear-gradient(to bottom right, white 0 50%, var(--rarityColourFade) 50% 100%);
/* Card top border */
.card-top-border {
display: flex;
justify-content: space-between;
align-items: center;
padding: 5px 10px;
font-size: 1em;
color: #FFFFFF;
background-color: var(--rarityColour);
.card-name {
font-weight: bold;
font-size: 24px;
}
.card-number {
font-size: 16px;
}
}
/* Card image container */
.card-image-container {
display: flex;
justify-content: center;
align-items: center;
padding: 10px;
flex-grow: 1; /* Allow image container to grow */
/* Card image box */
.card-image-box {
width: 200px;
height: 100px;
border: 1px solid var(--rarityColourFade);
border-radius: 15px;
display: flex;
justify-content: center;
align-items: center;
background-color: #fff;
/* Card image */
img {
max-width: 100%;
max-height: 100%;
display: block;
}
}
}
/* Card description */
.character-card-description {
padding: 10px;
text-align: left;
font-size: 0.9em;
color: #000; /* Set text color to black */
flex-grow: 1; /* Allow description to grow */
}
/* Bottom section containing rarity and craftable */
.card-bottom-section {
display: flex;
justify-content: flex-start;
align-items: center;
padding: 10px;
gap: 10px;
.pill {
padding: 2px 5px;
font-size: 1em;
font-weight: bold;
text-align: center;
color: #fff;
border-radius: 5px;
display: inline-block;
text-transform: capitalize;
}
/* Rarity section */
.card-rarity {
background-color: var(--rarityColour);
}
/* Craftable tag */
.card-craftable {
background-color: green;
}
}
}
.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;
margin-left: 10px;
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;
image-rendering: pixelated;
}
.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%);
}
/* Utility item div */
.little-item
{
width: fit-content;
height: fit-content;
display: flex;
flex-direction: column;
align-content: center;
align-items: center;
}