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
m (Made infobox float to right of screen, removed my own comments) |
m (Testing) |
||
| Line 139: | Line 139: | ||
.infobox { | .infobox { | ||
background-color: #85a4e0; | background-color: #85a4e0; | ||
border: | border: 2.25px solid #2f76ff; | ||
width: 300px; | width: 300px; /* Increased width */ | ||
padding: | max-width: 100%; /* Allow infobox to stretch */ | ||
padding: 7.5px; | |||
padding-bottom: 0px; | padding-bottom: 0px; | ||
font-family: Arial, sans-serif; | font-family: Arial, sans-serif; | ||
border-radius: | border-radius: 15px; | ||
border-top: | border-top: 7.5px solid #2f76ff; | ||
border-bottom: | border-bottom: 7.5px solid #2f76ff; | ||
float: right; | float: right; | ||
box-sizing: border-box; /* Ensures padding and border are included in width */ | |||
} | } | ||
.infobox-title { | .infobox-title { | ||
background-color: #2f76ff; | background-color: #2f76ff; | ||
color: #333; | color: #333; | ||
font-size: | font-size: 13.5px; | ||
font-weight: bold; | font-weight: bold; | ||
text-align: center; | text-align: center; | ||
padding: | padding: 3.75px; | ||
border-radius: | border-radius: 7.5px; | ||
} | } | ||
.infobox-image { | .infobox-image { | ||
text-align: center; | text-align: center; | ||
padding: | padding: 7.5px 0; | ||
} | } | ||
.infobox-content { | .infobox-content { | ||
background-color: #85a4e0; | background-color: #85a4e0; | ||
padding: | padding: 3.75px; | ||
padding-bottom: 0px; | padding-bottom: 0px; | ||
border-radius: | border-radius: 7.5px; | ||
} | } | ||
| Line 176: | Line 178: | ||
text-align: center; | text-align: center; | ||
font-weight: bold; | font-weight: bold; | ||
margin: | margin: 3.75px 0; | ||
padding: | padding: 3.75px; | ||
border-radius: | border-radius: 3.75px; | ||
border: | border: 0.75px solid #2f76ff; | ||
} | } | ||
| Line 185: | Line 187: | ||
display: flex; | display: flex; | ||
justify-content: space-between; | justify-content: space-between; | ||
padding: | align-items: flex-start; | ||
border-radius: | padding: 1.5px 0; | ||
border-radius: 7.5px; | |||
} | } | ||
.infobox-content .infobox-label { | .infobox-content .infobox-label { | ||
font-weight: bold; | font-weight: bold; | ||
width: | width: 110px; /* Increased width */ | ||
padding-right: 3.75px; | |||
text-align: left; | |||
} | } | ||
.infobox-content .infobox-value { | .infobox-content .infobox-value { | ||
text-align: | text-align: left; | ||
flex-grow: 1; | |||
padding-left: 3.75px; | |||
box-sizing: border-box; | |||
word-break: break-word; | |||
} | } | ||
.infobox-content .infobox-row-gradient, | .infobox-content .infobox-row-gradient, | ||
.infobox-content .infobox-row-white { | .infobox-content .infobox-row-white { | ||
padding: | padding: 3.75px; | ||
width: | width: 46%; /* Adjusted width to match increased infobox width */ | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
.infobox-content .infobox-row-gradient { | .infobox-content .infobox-row-gradient { | ||
background-color: #a1b7e0; | background-color: #a1b7e0; | ||
border-bottom: | border-bottom: 3.75px solid #2f76ff; | ||
border-left: none; | border-left: none; | ||
border-right: none; | border-right: none; | ||
border-radius: | border-radius: 7.5px; | ||
} | } | ||
.infobox-content .infobox-row-white { | .infobox-content .infobox-row-white { | ||
border-bottom: | border-bottom: 0.75px solid #2f76ff; | ||
border-left: none; | border-left: none; | ||
border-right: none; | border-right: none; | ||
border-radius: 0px; | border-radius: 0px; | ||
} | } | ||
.infobox-content .infobox-icon-text { | .infobox-content .infobox-icon-text { | ||
display: flex; | |||
align-items: center; | |||
padding: 3.75px 0; | |||
} | |||
.infobox-content .infobox-icon-text .icon { | .infobox-content .infobox-icon-text .icon { | ||
width: 18px; | |||
height: 18px; | |||
margin-right: 3.75px; | |||
} | } | ||
Revision as of 22:29, 24 June 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;
}
: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 */
.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;
}
/* Card title */
.card-title {
font-size: 1.2em;
font-weight: bold;
padding: 5px;
background-color: #f4f4f4;
}
/* 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 */
.card-image img {
width: 64px;
height: 64px;
display: block;
}
/* Rarity categories */
.rarity-common {
background-color: #58bd7d;
color: #000;
}
.rarity-uncommon {
background-color: #3b71fe;
color: #fff;
}
.rarity-rare {
background-color: #9f73e6;
color: #fff;
}
.rarity-legendary {
background-color: #e85929;
color: #fff;
}
.rarity-mythic {
background-color: #e85929;
color: #fff;
}
/* Rarity section */
.card-rarity {
padding: 5px;
font-size: 1em;
font-weight: bold;
color: #fff;
width: 100%;
text-align: center;
text-transform: capitalize; /* Capitalize the first letter */
}
.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; /* Increased width */
max-width: 100%; /* Allow infobox to stretch */
padding: 7.5px;
padding-bottom: 0px;
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; /* Ensures padding and border are included in width */
}
.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-content .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-content .infobox-row {
display: flex;
justify-content: space-between;
align-items: flex-start;
padding: 1.5px 0;
border-radius: 7.5px;
}
.infobox-content .infobox-label {
font-weight: bold;
width: 110px; /* Increased width */
padding-right: 3.75px;
text-align: left;
}
.infobox-content .infobox-value {
text-align: left;
flex-grow: 1;
padding-left: 3.75px;
box-sizing: border-box;
word-break: break-word;
}
.infobox-content .infobox-row-gradient,
.infobox-content .infobox-row-white {
padding: 3.75px;
width: 46%; /* Adjusted width to match increased infobox width */
box-sizing: border-box;
}
.infobox-content .infobox-row-gradient {
background-color: #a1b7e0;
border-bottom: 3.75px solid #2f76ff;
border-left: none;
border-right: none;
border-radius: 7.5px;
}
.infobox-content .infobox-row-white {
border-bottom: 0.75px solid #2f76ff;
border-left: none;
border-right: none;
border-radius: 0px;
}
.infobox-content .infobox-icon-text {
display: flex;
align-items: center;
padding: 3.75px 0;
}
.infobox-content .infobox-icon-text .icon {
width: 18px;
height: 18px;
margin-right: 3.75px;
}