MediaWiki:Common.css: Difference between revisions
From MalveraWiki
No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
font-family: 'Inconsolata', monospace; | font-family: 'Inconsolata', monospace; | ||
} | } | ||
/* Grid wrapper for menu sections */ | |||
.menu-section { | |||
margin: 2rem auto; | |||
max-width: 1200px; | |||
padding: 1rem; | |||
} | |||
.menu-title { | |||
text-align: center; | |||
font-size: 2rem; | |||
color: var(--accent, #cbb4ff); | |||
margin-bottom: 1rem; | |||
text-transform: uppercase; | |||
border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.15)); | |||
padding-bottom: 0.5rem; | |||
font-weight: bold; | |||
} | |||
.menu-grid { | .menu-grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(auto-fit, minmax( | grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); | ||
gap: | gap: 1rem; | ||
justify-items: center; | justify-items: center; | ||
} | } | ||
| Line 16: | Line 34: | ||
background: var(--box-bg, rgba(24, 18, 61, 0.85)); | background: var(--box-bg, rgba(24, 18, 61, 0.85)); | ||
border: 1px solid var(--border-color, rgba(255,255,255,0.15)); | border: 1px solid var(--border-color, rgba(255,255,255,0.15)); | ||
padding: | padding: 1rem; | ||
text-align: center; | text-align: center; | ||
border-radius: | border-radius: 8px; | ||
transition: transform 0. | transition: transform 0.2s ease, box-shadow 0.2s ease; | ||
} | |||
.menu-item:hover { | |||
transform: scale(1.05); | |||
box-shadow: 0 0 10px rgba(255,255,255,0.1); | |||
} | } | ||
.menu-item img { | .menu-item img { | ||
max-width: | max-width: 64px; | ||
height: auto; | height: auto; | ||
margin: 0 auto 0. | display: block; | ||
margin: 0 auto 0.5rem; | |||
} | } | ||
.menu-item a { | .menu-item a { | ||
font-size: | display: block; | ||
color: var(--text, #e2d8ff); | |||
font-size: 18px; | |||
text-decoration: none; | |||
font-weight: bold; | |||
text-shadow: 0 0 3px rgba(0,0,0,0.3); | |||
} | |||
.menu-item a:hover { | |||
color: #ffffff; | |||
text-decoration: underline; | |||
} | } | ||
Revision as of 00:56, 11 July 2025
/* CSS placed here will be applied to all skins */
@import url('https://fonts.googleapis.com/css2?family=Inconsolata&display=swap');
body {
background: url('https://i.imgur.com/n94IzKR.png') no-repeat center center fixed;
background-size: cover;
font-family: 'Inconsolata', monospace;
}
/* Grid wrapper for menu sections */
.menu-section {
margin: 2rem auto;
max-width: 1200px;
padding: 1rem;
}
.menu-title {
text-align: center;
font-size: 2rem;
color: var(--accent, #cbb4ff);
margin-bottom: 1rem;
text-transform: uppercase;
border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.15));
padding-bottom: 0.5rem;
font-weight: bold;
}
.menu-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
gap: 1rem;
justify-items: center;
}
.menu-item {
background: var(--box-bg, rgba(24, 18, 61, 0.85));
border: 1px solid var(--border-color, rgba(255,255,255,0.15));
padding: 1rem;
text-align: center;
border-radius: 8px;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.menu-item:hover {
transform: scale(1.05);
box-shadow: 0 0 10px rgba(255,255,255,0.1);
}
.menu-item img {
max-width: 64px;
height: auto;
display: block;
margin: 0 auto 0.5rem;
}
.menu-item a {
display: block;
color: var(--text, #e2d8ff);
font-size: 18px;
text-decoration: none;
font-weight: bold;
text-shadow: 0 0 3px rgba(0,0,0,0.3);
}
.menu-item a:hover {
color: #ffffff;
text-decoration: underline;
}
