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 (Testing) |
m (Testing) |
||
Line 30: | Line 30: | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
justify-content: | justify-content: center; | ||
gap: 10px; | |||
padding: 10px; | |||
} | } | ||
/* Individual card */ | /* Individual card */ | ||
.card { | .card { | ||
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); | ||
width: 300px; | |||
max-width: 100%; | |||
text-align: center; | |||
background-color: #fff; | |||
overflow: hidden; | |||
margin: 10px; | margin: 10px; | ||
} | } | ||
.card: | /* Card title */ | ||
.card-title { | |||
font-size: 1.2em; | |||
font-weight: bold; | |||
padding: 10px; | |||
background-color: #f4f4f4; | |||
} | } | ||
/* Card image */ | /* Card image */ | ||
.card img { | .card img { | ||
width: 100%; | |||
height: auto; | |||
} | |||
/* Rarity categories */ | |||
.rarity-common { | |||
background-color: #d3d3d3; | |||
color: #000; | |||
} | |||
.rarity-uncommon { | |||
background-color: #6ecf68; | |||
color: #fff; | |||
} | |||
.rarity-rare { | |||
background-color: #3498db; | |||
color: #fff; | |||
} | |||
.rarity-epic { | |||
background-color: #9b59b6; | |||
color: #fff; | |||
} | } | ||
.rarity-legendary { | |||
. | background-color: #e67e22; | ||
color: #fff; | |||
} | } | ||
/* | /* Rarity section */ | ||
.card- | .card-rarity { | ||
font-size: | padding: 10px; | ||
color: # | font-size: 1em; | ||
font-weight: bold; | |||
color: #fff; | |||
} | } |
Revision as of 11:58, 22 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: 10px; padding: 10px; } /* Individual card */ .card { border: 1px solid #ccc; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); width: 300px; max-width: 100%; text-align: center; background-color: #fff; overflow: hidden; margin: 10px; } /* Card title */ .card-title { font-size: 1.2em; font-weight: bold; padding: 10px; background-color: #f4f4f4; } /* Card image */ .card img { width: 100%; height: auto; } /* Rarity categories */ .rarity-common { background-color: #d3d3d3; color: #000; } .rarity-uncommon { background-color: #6ecf68; color: #fff; } .rarity-rare { background-color: #3498db; color: #fff; } .rarity-epic { background-color: #9b59b6; color: #fff; } .rarity-legendary { background-color: #e67e22; color: #fff; } /* Rarity section */ .card-rarity { padding: 10px; font-size: 1em; font-weight: bold; color: #fff; }