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

From Moonbounce Wiki
Jump to navigation Jump to search
m (testing)
Tag: Reverted
m (testing)
Tag: Manual revert
Line 109: Line 109:
     text-align: center;
     text-align: center;
     text-transform: capitalize; /* Capitalize the first letter */
     text-transform: capitalize; /* Capitalize the first letter */
}
/* CSS styles for layout */
.table-container {
    display: flex; /* Use flexbox for horizontal layout */
    flex-wrap: wrap; /* Wrap items to new line when space is insufficient */
    gap: 20px; /* Spacing between tables */
    justify-content: center; /* Center items horizontally within container */
    max-width: 1000px; /* Maximum width for the entire container */
    margin: 0 auto; /* Center align container */
}
.table-wrapper {
    flex: 1 1 300px; /* Allow tables to flex with a minimum width of 300px */
    max-width: 100%; /* Maximum width of each table wrapper */
    text-align: center; /* Center align content within table wrapper */
    margin-bottom: 20px; /* Space between tables */
    box-sizing: border-box; /* Include padding and border in width calculation */
}
.table-icon {
    text-align: center; /* Center align icon and description */
    margin-bottom: 10px; /* Space between icon and table */
}
.table-content {
    border: 1px solid #ccc; /* Border for tables */
    border-collapse: collapse; /* Collapse border */
    width: 100%; /* Full width of table content */
}
.wikitable {
    width: 100%; /* Full width of table within its wrapper */
    border: 1px solid #ccc; /* Border for tables */
    border-collapse: collapse; /* Collapse border */
}
.wikitable th,
.wikitable td {
    border: 1px solid #ccc; /* Border for table cells */
    padding: 8px; /* Padding for cells */
    text-align: center; /* Center text in cells */
}
}

Revision as of 17:35, 23 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 {
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 200px;
    max-width: 100%;
    text-align: center;
    background-color: #fff;
    overflow: hidden;
    margin: 5px;
    display: flex;
    flex-direction: column;
}

/* Card title */
.card-title {
    font-size: 1.2em;
    font-weight: bold;
    padding: 10px;
    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: 96px;
    height: 96px;
    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 */
}