MediaWiki:Common.css: Difference between revisions
From AnarchyMU Wiki
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* | /* RealMU-style layout for guide homepage */ | ||
.guide- | .mw-guide-container { | ||
width: 100%; | |||
} | } | ||
.guide- | .mw-guide-grid { | ||
display: grid; | |||
grid-template-columns: repeat(5, minmax(140px, 1fr)); | |||
gap: 10px; | |||
margin: 8px 0 16px 0; | |||
} | } | ||
.guide- | .mw-guide-item { | ||
display: flex; | |||
align-items: center; | |||
gap: 8px; | |||
padding: 8px 10px; | |||
text-decoration: none !important; | |||
color: #d8dde7 !important; | |||
background: #12151d; | |||
border: 1px solid #2a2f3d; | |||
border-radius: 8px; | |||
transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease; | |||
min-height: 56px; | |||
box-sizing: border-box; | |||
} | } | ||
. | .mw-guide-item:hover { | ||
transform: translateY(-1px); | |||
border: | border-color: #4b5876; | ||
background: #191f2b; | |||
} | } | ||
. | .mw-guide-icon { | ||
width: 40px; | |||
height: 40px; | |||
flex: 0 0 auto; | |||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
} | } | ||
. | .mw-guide-text { | ||
font-weight: 600; | |||
line-height: 1.2; | |||
font-size: 13px; | |||
} | } | ||
. | .mw-image-container { | ||
width: 100%; | |||
} | } | ||
. | .mw-image-grid-5col { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat( | grid-template-columns: repeat(5, minmax(150px, 1fr)); | ||
gap: | gap: 14px; | ||
margin: | margin-top: 8px; | ||
} | } | ||
. | .mw-image-card { | ||
display: block; | |||
text-decoration: none !important; | |||
color: #dce2ee !important; | |||
background: #12151d; | |||
border: 1px solid #2a2f3d; | |||
border-radius: 10px; | |||
overflow: hidden; | overflow: hidden; | ||
transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease; | |||
} | } | ||
. | .mw-image-card:hover { | ||
transform: translateY(- | transform: translateY(-2px); | ||
border-color: # | border-color: #4f5f84; | ||
box-shadow: 0 | box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); | ||
} | } | ||
. | .mw-card-image { | ||
position: relative; | |||
height: 140px; | |||
background: radial-gradient(circle at 50% 25%, #2f3649, #12151d 72%); | |||
height: | |||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
overflow: hidden; | |||
} | } | ||
. | .mw-card-image.bg-classes::before { | ||
content: ""; | |||
position: absolute; | |||
inset: 0; | |||
background-image: url("https://images.realmu.net/uploads/20250530/16839f3e0764e9.png"); | |||
background-repeat: no-repeat; | |||
background-position: center; | |||
background-size: cover; | |||
opacity: 0.95; | |||
} | } | ||
. | .mw-card-image img { | ||
position: relative; | |||
z-index: 1; | |||
width: auto; | |||
max-width: 88%; | |||
max-height: 128px; | |||
object-fit: contain; | |||
} | } | ||
. | .mw-card-text { | ||
text-align: center; | |||
padding: 9px 6px; | |||
font-size: 13px; | |||
font-weight: 700; | font-weight: 700; | ||
border-top: 1px solid #2a2f3d; | |||
} | } | ||
@media (max-width: 1200px) { | @media (max-width: 1200px) { | ||
.guide-grid { | .mw-guide-grid, | ||
grid-template-columns: repeat( | .mw-image-grid-5col { | ||
grid-template-columns: repeat(4, minmax(140px, 1fr)); | |||
} | } | ||
} | } | ||
@media (max-width: 900px) { | @media (max-width: 900px) { | ||
.guide-grid { | .mw-guide-grid, | ||
grid-template-columns: repeat( | .mw-image-grid-5col { | ||
grid-template-columns: repeat(3, minmax(130px, 1fr)); | |||
} | } | ||
} | } | ||
@media (max-width: | @media (max-width: 640px) { | ||
.guide-grid { | .mw-guide-grid, | ||
grid-template-columns: 1fr; | .mw-image-grid-5col { | ||
grid-template-columns: repeat(2, minmax(120px, 1fr)); | |||
} | } | ||
. | .mw-card-image { | ||
height: 120px; | |||
} | } | ||
} | } | ||
Revision as of 11:00, 17 March 2026
/* RealMU-style layout for guide homepage */
.mw-guide-container {
width: 100%;
}
.mw-guide-grid {
display: grid;
grid-template-columns: repeat(5, minmax(140px, 1fr));
gap: 10px;
margin: 8px 0 16px 0;
}
.mw-guide-item {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 10px;
text-decoration: none !important;
color: #d8dde7 !important;
background: #12151d;
border: 1px solid #2a2f3d;
border-radius: 8px;
transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
min-height: 56px;
box-sizing: border-box;
}
.mw-guide-item:hover {
transform: translateY(-1px);
border-color: #4b5876;
background: #191f2b;
}
.mw-guide-icon {
width: 40px;
height: 40px;
flex: 0 0 auto;
display: flex;
align-items: center;
justify-content: center;
}
.mw-guide-text {
font-weight: 600;
line-height: 1.2;
font-size: 13px;
}
.mw-image-container {
width: 100%;
}
.mw-image-grid-5col {
display: grid;
grid-template-columns: repeat(5, minmax(150px, 1fr));
gap: 14px;
margin-top: 8px;
}
.mw-image-card {
display: block;
text-decoration: none !important;
color: #dce2ee !important;
background: #12151d;
border: 1px solid #2a2f3d;
border-radius: 10px;
overflow: hidden;
transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.mw-image-card:hover {
transform: translateY(-2px);
border-color: #4f5f84;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.mw-card-image {
position: relative;
height: 140px;
background: radial-gradient(circle at 50% 25%, #2f3649, #12151d 72%);
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.mw-card-image.bg-classes::before {
content: "";
position: absolute;
inset: 0;
background-image: url("https://images.realmu.net/uploads/20250530/16839f3e0764e9.png");
background-repeat: no-repeat;
background-position: center;
background-size: cover;
opacity: 0.95;
}
.mw-card-image img {
position: relative;
z-index: 1;
width: auto;
max-width: 88%;
max-height: 128px;
object-fit: contain;
}
.mw-card-text {
text-align: center;
padding: 9px 6px;
font-size: 13px;
font-weight: 700;
border-top: 1px solid #2a2f3d;
}
@media (max-width: 1200px) {
.mw-guide-grid,
.mw-image-grid-5col {
grid-template-columns: repeat(4, minmax(140px, 1fr));
}
}
@media (max-width: 900px) {
.mw-guide-grid,
.mw-image-grid-5col {
grid-template-columns: repeat(3, minmax(130px, 1fr));
}
}
@media (max-width: 640px) {
.mw-guide-grid,
.mw-image-grid-5col {
grid-template-columns: repeat(2, minmax(120px, 1fr));
}
.mw-card-image {
height: 120px;
}
}