Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:CardPages/styles.css: Difference between revisions

Template page
No edit summary
No edit summary
Line 2: Line 2:
   position: relative;
   position: relative;
   width: 100%;
   width: 100%;
  min-height: 1080px;
  height: auto;
  border-radius:8px;
   margin: 20px 0;
   margin: 20px 0;
   cursor: pointer;
   border-radius: 20px;
   overflow: visible;
   overflow: visible; /* ensures table/banners aren't cut off */
}
 
.banner-overlay {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  z-index: auto;
}
}


Line 29: Line 13:
   width: 100%;
   width: 100%;
   height: 100%;
   height: 100%;
   z-index: auto;
  border-radius: 20px;
   z-index: 1;
  /* optional: background-color or image */
}
}


.element-table {
.banner-overlay {
   position: relative;
   position: relative; /* keeps overlay content in flow */
   width: 100%;
   z-index: 2;
  text-align: center;
   padding: 10px 20px;
   table-layout: fixed;
}
}


.element-cell {
.element-container {
   width: calc(100% / 7);
   display: flex;
   padding: 12px;
   flex-wrap: nowrap;               /* force 1 row for desktop */
   vertical-align: top;
   justify-content: space-between; /* evenly distribute 7 boxes */
   text-align: center;
   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;
  padding: 0;
}
}


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;
  font-size: 32px;
  font-family: Barlow, sans-serif;
}
}


.fire-text { color: #FF0000; } /* Fire is orange/red */
/* Optional: per-element text colors */
.water-text { color: #3b82f6; } /* Water is blue */
.fire-text { color: #e25822; }
.earth-text { color: #65a30d; } /* Earth is green */
.water-text { color: #3b82f6; }
.air-text { color: #94a3b8; }  /* Air is gray */
.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 */
  }
}