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
 
(244 intermediate revisions by 2 users not shown)
Line 1: Line 1:
.event-banner {
.main-banner {
  position: relative;
position: relative;
  width: 100%;
width: 33%;
  margin: 20px 0;
min-height: 600px;
  border-radius: 20px;
float: right;
  min-height: 1080px;
margin: 20px 0;
  overflow: hidden; /* ensures table/banners aren't cut off */
/*border: 2px solid rgba(145, 145, 145, 0.25);*/
  cursor: pointer;
}
.main-overlay {
position: absolute;
display: flex;
flex-wrap: wrap;
flex-direction: column;
border: 2px solid rgba(145, 145, 145, 0.25);
padding: 5px;
z-index: 1;
}
}


.banner-bg-wrapper {
.element-item {
  position: absolute;
text-align: center;
  top: 0;
align-items: center;
  left: 0;
/*border: 4px solid #F54927;*/
  width: 100%;
cursor: pointer;
  height: 100%;
  border-radius: 20px;
  z-index: 1;
  /* optional: background-color or image */
}
}


.banner-overlay {
.element-item img {
  position: relative; /* keeps overlay content in flow */
    width: 100%;
  z-index: 2;
    height: auto;
  padding: 10px 20px;
    display: block;
}
}


.element-container {
.text-item {
  display: flex;
font-family: Barlow, sans-serif;
  flex-wrap: nowrap;               /* force 1 row for desktop */
font-size: 24px;
  justify-content: space-between; /* evenly distribute 7 boxes */
text-align: center;
  width: 100%;
align-items: center;
/*border: 4px solid #F54927;*/
z-index: 2;
}
}
 
.text-header {
.element-item {
display: flex;
  flex: 1 1 0;                     /* auto scale: equal width */
font-family: Barlow, sans-serif;
  display: flex;
font-size: 24px;
  flex-direction: column;
color: #60BEC2;  
  align-items: center;
text-align: center;
  gap: 4px ;
align-items: center;
  text-align: center;
gap: 8px;
}
}


.element-item .image {
.text-header::after {
   display: block;
   flex: 1;
   margin: 0 auto;
  content: "";
  height: 1px;
   background: rgba(145, 145, 145, 0.25);
}
}


.element-item .image img {
.grid-container {
  width: 100%;
display:grid;
  max-width: 96px;                  /* scales images down on small screens */
  height: auto;
}
}


.element-item span {
.grid-container div {
  display: block;
  font-weight: bold;
   text-align: center;
   text-align: center;
  font-size: 20px;
}
}


/* Optional: per-element text colors */
.item1 {
.fire-text { color: #e25822; }
grid-column-start: 1;
.water-text { color: #3b82f6; }
grid-column-end: 3;
.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 */
.header-banner {
@media screen and (max-width: 800px) {
position: relative;
  .element-container {
width: 66%;
    flex-wrap: wrap;
min-height: 200px;
  }
  .element-item {
    flex: 0 0 calc(50% - 8px); /* 2 per row on mobile */
    margin-bottom: 8px;
  }
}
}


@media screen and (max-width: 500px) {
.header-overlay {
  .element-item {
position: relative;
    flex: 0 0 100%; /* 1 per row on very small screens */
display: flex;
  }
line-height: 1.1;
border-bottom: 1px solid rgba(145, 145, 145, 0.25);
}
}

Latest revision as of 21:13, 27 January 2026

.main-banner {
	position: relative;
	width: 33%;
	min-height: 600px;
	float: right;
	margin: 20px 0;
	/*border: 2px solid rgba(145, 145, 145, 0.25);*/
}
.main-overlay {
	position: absolute;
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	border: 2px solid rgba(145, 145, 145, 0.25);
	padding: 5px;
	z-index: 1;
}

.element-item {
	text-align: center;
	align-items: center;
	/*border: 4px solid #F54927;*/
	cursor: pointer;
}

.element-item img {
    width: 100%;
    height: auto;
    display: block;
}

.text-item {
	font-family: Barlow, sans-serif;
	font-size: 24px;
	text-align: center;
	align-items: center;
	/*border: 4px solid #F54927;*/
	z-index: 2;
}
.text-header {
	display: flex;
	font-family: Barlow, sans-serif;
	font-size: 24px;
	color: #60BEC2; 
	text-align: center;
	align-items: center;
	gap: 8px;
}

.text-header::after {
  flex: 1;
  content: "";
  height: 1px;
  background: rgba(145, 145, 145, 0.25);
}

.grid-container {
	display:grid;
}

.grid-container div {
  text-align: center;
  font-size: 20px;
}

.item1 {
	grid-column-start: 1;
	grid-column-end: 3;
}

.header-banner {
	position: relative;
	width: 66%;
	min-height: 200px;
}

.header-overlay {
	position: relative;
	display: flex;
	line-height: 1.1;
	border-bottom: 1px solid rgba(145, 145, 145, 0.25);
}