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
No edit summary |
m (Testing) |
||
| Line 24: | Line 24: | ||
--navbox-tertiary-header-color: #222; | --navbox-tertiary-header-color: #222; | ||
--navbox-section-color: #222; | --navbox-section-color: #222; | ||
} | |||
/* Card container */ | |||
.card-container { | |||
display: flex; | |||
flex-wrap: wrap; | |||
justify-content: space-around; | |||
} | |||
/* Individual card */ | |||
.card { | |||
background-color: #fff; | |||
border: 1px solid #ccc; | |||
border-radius: 8px; | |||
box-shadow: 0 2px 5px rgba(0,0,0,0.1); | |||
margin: 10px; | |||
padding: 15px; | |||
width: calc(33% - 40px); | |||
box-sizing: border-box; | |||
transition: box-shadow 0.3s ease; | |||
} | |||
.card:hover { | |||
box-shadow: 0 4px 10px rgba(0,0,0,0.2); | |||
} | |||
/* Card image */ | |||
.card img { | |||
max-width: 100%; | |||
border-radius: 8px 8px 0 0; | |||
} | |||
/* Card title */ | |||
.card-title { | |||
font-size: 1.2em; | |||
margin: 10px 0; | |||
} | |||
/* Card content */ | |||
.card-content { | |||
font-size: 0.9em; | |||
color: #555; | |||
} | } | ||
Revision as of 10:52, 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: space-around;
}
/* Individual card */
.card {
background-color: #fff;
border: 1px solid #ccc;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
margin: 10px;
padding: 15px;
width: calc(33% - 40px);
box-sizing: border-box;
transition: box-shadow 0.3s ease;
}
.card:hover {
box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
/* Card image */
.card img {
max-width: 100%;
border-radius: 8px 8px 0 0;
}
/* Card title */
.card-title {
font-size: 1.2em;
margin: 10px 0;
}
/* Card content */
.card-content {
font-size: 0.9em;
color: #555;
}