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
 
(233 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/* ================================
.main-banner {
  BANNER WRAPPER
position: relative;
  ================================ */
width: 33%;
 
min-height: 600px;
.event-banner {
float: right;
  position: relative;       /* Allows background layering */
margin: 20px 0;
  width: 100%;               /* Full page width */
/*border: 2px solid rgba(145, 145, 145, 0.25);*/
  margin: 20px 0;
  border-radius: 20px;
  overflow: visible;         /* Prevents content from being cut off */
}
}
 
.main-overlay {
/* Background layer (visual only) */
position: absolute;
.banner-bg-wrapper {
display: flex;
  position: absolute;
flex-wrap: wrap;
  margin: 0;                 /* top/right/bottom/left = 0 */
flex-direction: column;
  border-radius: 20px;
border: 2px solid rgba(145, 145, 145, 0.25);
  z-index: 1;
padding: 5px;
  /* background can go here */
z-index: 1;
}
}


/* Content layer */
.element-item {
.banner-overlay {
text-align: center;
  position: relative;
align-items: center;
  z-index: 2;               /* Above background */
/*border: 4px solid #F54927;*/
  padding: 10px 16px;       /* Controlled padding */
cursor: pointer;
}
}


 
.element-item img {
/* ================================
    width: 100%;
  FLEX LAYOUT (CRITICAL PART)
    height: auto;
  ================================ */
    display: block;
 
.element-container {
  display: flex;             /* Enables flexbox */
  flex-wrap: nowrap;/* FORCE one single row */
  width: 100%;
}
}


/* Each element box */
.text-item {
.element-item {
font-family: Barlow, sans-serif;
  flex: 0 0 calc(100% / 7); /* EXACTLY 7 equal columns */
font-size: 24px;
  align-items: center;
text-align: center;
  min-width: 0;             /* ALLOWS shrinking (prevents scrollbar) */
align-items: center;
  max-width: calc(100% / 7);
/*border: 4px solid #F54927;*/
z-index: 2;
}
}
 
.text-header {
 
display: flex;
/* ================================
font-family: Barlow, sans-serif;
  CLICKABLE CONTENT
font-size: 24px;
  ================================ */
color: #60BEC2;  
 
text-align: center;
.element-link {
align-items: center;
  display: flex;             /* Stack image + text */
gap: 8px;
  flex-direction: column;
  align-items: center;       /* Center horizontally */
  text-align: center; /* Remove underline */
  color: inherit;           /* Keep custom colors */
  cursor: pointer;
}
}


/* MediaWiki image wrapper */
.text-header::after {
.element-link .image {
   flex: 1;
   display: block;
  content: "";
   width: 100%;
   height: 1px;
   text-align: center;
   background: rgba(145, 145, 145, 0.25);
}
}


/* Actual image */
.grid-container {
.element-link img {
display:grid;
  width: 100%;              /* Fill available box width */
  max-width: 90px;          /* Cap image size */
  height: auto;              /* Preserve aspect ratio */
  display: block;
      /* Center + small gap */
}
}


/* Text label */
.grid-container div {
.element-link span {
  font-weight: bold;
  font-size: 0.9rem;
   text-align: center;
   text-align: center;
  font-size: 20px;
}
}


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


/* ================================
.header-banner {
  PER-ELEMENT COLORS
position: relative;
  ================================ */
width: 66%;
 
min-height: 200px;
.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 FALLBACK
  (ONLY when screen is too narrow)
  ================================ */
 
@media (max-width: 700px) {
  .element-container {
    flex-wrap: wrap;         /* Allow wrapping */
  }
  .element-item {
    flex: 0 0 33.333%;       /* 3 per row */
  }
}
}


@media (max-width: 450px) {
.header-overlay {
  .element-item {
position: relative;
    flex: 0 0 50%;           /* 2 per row */
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);
}