Template:CardPages/styles.css: Difference between revisions
Template page
More actions
BelowTheEcho (talk | contribs) No edit summary |
BelowTheEcho (talk | contribs) No edit summary |
||
| Line 2: | Line 2: | ||
position: relative; | position: relative; | ||
width: 100%; | width: 100%; | ||
margin: 20px 0; | margin: 20px 0; | ||
border-radius: 20px; | |||
overflow: visible; | overflow: visible; /* ensures table/banners aren't cut off */ | ||
} | } | ||
| Line 29: | Line 13: | ||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
z-index: | border-radius: 20px; | ||
z-index: 1; | |||
/* optional: background-color or image */ | |||
} | } | ||
. | .banner-overlay { | ||
position: relative; | position: relative; /* keeps overlay content in flow */ | ||
z-index: 2; | |||
padding: 10px 20px; | |||
} | } | ||
.element- | .element-container { | ||
display: flex; | |||
flex-wrap: nowrap; /* force 1 row for desktop */ | |||
justify-content: space-between; /* evenly distribute 7 boxes */ | |||
width: 100%; | |||
} | } | ||
.element-item { | .element-item { | ||
flex: 1 1 0; /* auto scale: equal width */ | |||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
align-items: center; | align-items: center; | ||
gap: 4px; | gap: 4px; | ||
text-align: center; | |||
} | } | ||
| Line 56: | Line 43: | ||
display: block; | display: block; | ||
margin: 0 auto; | margin: 0 auto; | ||
} | } | ||
| Line 62: | Line 48: | ||
display: block; | display: block; | ||
margin: 0; | margin: 0; | ||
max-width: 80%; /* scales images down on small screens */ | |||
height: auto; | |||
} | } | ||
.element-item span { | .element-item span { | ||
display: block; | display: block; | ||
font-weight: bold; | |||
text-align: center; | text-align: center; | ||
} | } | ||
.fire-text { color: # | /* Optional: per-element text colors */ | ||
.water-text { color: #3b82f6; } | .fire-text { color: #e25822; } | ||
.earth-text { color: #65a30d; } | .water-text { color: #3b82f6; } | ||
.air-text { color: #94a3b8; } /* | .earth-text { color: #65a30d; } | ||
.air-text { color: #94a3b8; } | |||
.voidal-text { color: #6b21a8; } | |||
.aetheric-text { color: #facc15; } | |||
.neutral-text { color: #64748b; } | |||
/* Responsive: wrap boxes on narrow screens */ | |||
@media screen and (max-width: 800px) { | |||
.element-container { | |||
flex-wrap: wrap; | |||
} | |||
.element-item { | |||
flex: 0 0 calc(50% - 8px); /* 2 per row on mobile */ | |||
margin-bottom: 8px; | |||
} | |||
} | |||
@media screen and (max-width: 500px) { | |||
.element-item { | |||
flex: 0 0 100%; /* 1 per row on very small screens */ | |||
} | |||
} | |||
Revision as of 22:58, 20 January 2026
.event-banner {
position: relative;
width: 100%;
margin: 20px 0;
border-radius: 20px;
overflow: visible; /* ensures table/banners aren't cut off */
}
.banner-bg-wrapper {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 20px;
z-index: 1;
/* optional: background-color or image */
}
.banner-overlay {
position: relative; /* keeps overlay content in flow */
z-index: 2;
padding: 10px 20px;
}
.element-container {
display: flex;
flex-wrap: nowrap; /* force 1 row for desktop */
justify-content: space-between; /* evenly distribute 7 boxes */
width: 100%;
}
.element-item {
flex: 1 1 0; /* auto scale: equal width */
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
text-align: center;
}
.element-item .image {
display: block;
margin: 0 auto;
}
.element-item .image img {
display: block;
margin: 0;
max-width: 80%; /* scales images down on small screens */
height: auto;
}
.element-item span {
display: block;
font-weight: bold;
text-align: center;
}
/* Optional: per-element text colors */
.fire-text { color: #e25822; }
.water-text { color: #3b82f6; }
.earth-text { color: #65a30d; }
.air-text { color: #94a3b8; }
.voidal-text { color: #6b21a8; }
.aetheric-text { color: #facc15; }
.neutral-text { color: #64748b; }
/* Responsive: wrap boxes on narrow screens */
@media screen and (max-width: 800px) {
.element-container {
flex-wrap: wrap;
}
.element-item {
flex: 0 0 calc(50% - 8px); /* 2 per row on mobile */
margin-bottom: 8px;
}
}
@media screen and (max-width: 500px) {
.element-item {
flex: 0 0 100%; /* 1 per row on very small screens */
}
}