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
 
(219 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/* ================================
.main-banner {
  BANNER WRAPPER
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;
}


.event-banner {
.element-item {
  position: relative;       /* Allows background layering */
text-align: center;
  width: 100%;               /* Full page width */
align-items: center;
  margin: 20px 0;
/*border: 4px solid #F54927;*/
  border-radius: 20px;
cursor: pointer;
  overflow: visible;         /* Prevents content from being cut off */
}
}


/* Background layer (visual only) */
.element-item img {
.banner-bg-wrapper {
    width: 100%;
  position: absolute;
    height: auto;
  margin: 0;                 /* top/right/bottom/left = 0 */
    display: block;
  border-radius: 20px;
  z-index: 1;
  /* background can go here */
}
}


/* Content layer */
.text-item {
.banner-overlay {
font-family: Barlow, sans-serif;
  position: relative;
font-size: 24px;
  z-index: 2;               /* Above background */
text-align: center;
  padding: 10px 16px;       /* Controlled padding */
align-items: center;
/*border: 4px solid #F54927;*/
z-index: 2;
}
}
 
.text-header {
 
display: flex;
/* ================================
font-family: Barlow, sans-serif;
  FLEX LAYOUT (CRITICAL PART)
font-size: 24px;
  ================================ */
color: #60BEC2;
 
text-align: center;
.element-container {
align-items: center;
  display: flex;             /* Enables flexbox */
gap: 8px;
  flex-wrap: nowrap;/* FORCE one single row */
  width: 100%;
  height: 100%;
}
}


/* Each element box */
.text-header::after {
.element-item {
   flex: 1;
   flex: 0 0 calc(100% / 7); /* EXACTLY 7 equal columns */
   content: "";
   align-items: center;
   height: 1px;
   min-width: 0;             /* ALLOWS shrinking (prevents scrollbar) */
   background: rgba(145, 145, 145, 0.25);
   max-width: calc(100% / 7);
}
}


 
.grid-container {
/* ================================
display:grid;
  CLICKABLE CONTENT
  ================================ */
 
.element-link {
  display: flex;            /* Stack image + text */
  flex-direction: column;
  align-items: center;      /* Center horizontally */
  color: inherit;            /* Keep custom colors */
  cursor: pointer;
}
}


/* MediaWiki image wrapper */
.grid-container div {
.element-link .image {
  display: block;
  min-width: 0;
  width: 100%;
   text-align: center;
   text-align: center;
  font-size: 20px;
}
}


/* Actual image */
.item1 {
.element-link img {           /* Fill available box width */
grid-column-start: 1;
  max-width: 90px;           /* Cap image size */
grid-column-end: 3;
  height: auto;              /* Preserve aspect ratio */
  max-height: 90px;
  display: block;
  margin: 0 auto 0;     /* Center + small gap */
}
}


/* Text label */
.header-banner {
.element-link span {
position: relative;
  font-weight: bold;
width: 66%;
  font-size: 0.9rem;
min-height: 200px;
  text-align: center;
}
}


 
.header-overlay {
/* ================================
position: relative;
  PER-ELEMENT COLORS
display: flex;
  ================================ */
line-height: 1.1;
 
border-bottom: 1px solid rgba(145, 145, 145, 0.25);
.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)
  ================================ */

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);
}