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
 
(216 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);*/
  FLEX LAYOUT (CRITICAL PART)
}
  ================================ */
.main-overlay {
 
position: absolute;
.element-container {
display: flex;
  display: flex;             /* Enables flexbox */
flex-wrap: wrap;
  flex-wrap: nowrap;/* FORCE one single row */
flex-direction: column;
  width: 100%;
border: 2px solid rgba(145, 145, 145, 0.25);
  height: 100%;
padding: 5px;
z-index: 1;
}
}


/* Each element box */
.element-item {
.element-item {
  flex: 0 0 calc(100% / 7); /* EXACTLY 7 equal columns */
text-align: center;
  align-items: center;
align-items: center;
  min-width: 0;             /* ALLOWS shrinking (prevents scrollbar) */
/*border: 4px solid #F54927;*/
  max-width: calc(100% / 7);
cursor: pointer;
}
}


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


/* ================================
.text-item {
  CLICKABLE CONTENT
font-family: Barlow, sans-serif;
  ================================ */
font-size: 24px;
 
text-align: center;
.element-link {
align-items: center;
  display: flex;             /* Stack image + text */
/*border: 4px solid #F54927;*/
  flex-direction: column;
z-index: 2;
  align-items: center;       /* Center horizontally */
}
  justify-content: center;
.text-header {
  color: inherit;           /* Keep custom colors */
display: flex;
  cursor: pointer;
font-family: Barlow, sans-serif;
font-size: 24px;
color: #60BEC2;  
text-align: center;
align-items: center;
gap: 8px;
}
}


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


/* Actual image */
.grid-container {
.element-link img {           /* Fill available box width */
display:grid;
  max-width: 90px;          /* Cap image size */
  height: auto;              /* Preserve aspect ratio */
  max-height: 90px;
  display: block;
  margin: 0 auto 4px;     /* 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; }
.header-overlay {
.water-text    { color: #3b82f6; }
position: relative;
.earth-text    { color: #65a30d; }
display: flex;
.air-text      { color: #94a3b8; }
line-height: 1.1;
.voidal-text  { color: #6b21a8; }
border-bottom: 1px solid rgba(145, 145, 145, 0.25);
.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);
}