MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
Created page with "→--- Fandom Style Cards ---: .card-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; →Centers them on the page: } .fandom-card { background: #1a1a1a; →Dark grey background: border: 1px solid #333; border-radius: 8px; →Rounded corners: width: 220px; →Width of each card: overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; text-align: center; } /* Hover Effect (Makes it pop..." |
No edit summary |
||
| Line 42: | Line 42: | ||
display: block; | display: block; | ||
margin-bottom: 5px; | margin-bottom: 5px; | ||
} | |||
/* Style for Infobox Aura */ | |||
.pi-theme-aura .pi-header { | |||
background-color: #6a0dad; /* Purple header */ | |||
color: white; | |||
font-weight: bold; | |||
text-transform: uppercase; | |||
} | |||
.pi-theme-aura { | |||
border: 1px solid #444; | |||
background-color: #222; /* Dark background */ | |||
color: white; | |||
} | } | ||
Revision as of 22:45, 21 January 2026
/* --- Fandom Style Cards --- */
.card-grid {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: center; /* Centers them on the page */
}
.fandom-card {
background: #1a1a1a; /* Dark grey background */
border: 1px solid #333;
border-radius: 8px; /* Rounded corners */
width: 220px; /* Width of each card */
overflow: hidden;
transition: transform 0.2s, box-shadow 0.2s;
text-align: center;
}
/* Hover Effect (Makes it pop up) */
.fandom-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0,0,0,0.5);
border-color: #a855f7; /* Purple glow */
}
/* Image styling */
.fandom-card img {
width: 100%;
height: 120px;
object-fit: cover;
}
/* Text styling */
.fandom-card-text {
padding: 10px;
color: white;
}
.fandom-card-title {
font-weight: bold;
font-size: 1.1em;
display: block;
margin-bottom: 5px;
}
/* Style for Infobox Aura */
.pi-theme-aura .pi-header {
background-color: #6a0dad; /* Purple header */
color: white;
font-weight: bold;
text-transform: uppercase;
}
.pi-theme-aura {
border: 1px solid #444;
background-color: #222; /* Dark background */
color: white;
}