Template:ItemCard/styles.css: Difference between revisions

From Soul's Remnant Wiki
Jump to navigation Jump to search
mNo edit summary
m (Test changes)
Line 10: Line 10:
}
}


/* Flex container for stat chips */
.itemcard-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
/* Base chip style */
.itemcard-chip {
  display: inline-block;
  border-radius: 8px;
  padding: 3px 6px;
  white-space: nowrap;
  font-weight: bold;
  font-size: 0.9em;
  color: #fff;
}
/* Individual stat colors */
.itemcard-chip.str { background-color: #e28080; }
.itemcard-chip.dex { background-color: #80b4e2; }
.itemcard-chip.int { background-color: #c080e2; }
.itemcard-chip.luk { background-color: #d9b100; }
.itemcard-chip.vit { background-color: #80e2a7; }
.itemcard-chip.agi { background-color: #f5a742; }
/* Keep for legacy use or icon formatting */
.itemcard-icon {
.itemcard-icon {
   text-align: center;
   text-align: center;
}
}


/* Optional: for other inline stat displays */
.itemcard-stat {
.itemcard-stat {
   display: inline-block;
   display: inline-block;
Line 25: Line 53:
}
}


/* Optional legacy theme block */
.simple-style {
.simple-style {
   background-color: #fdf6e3;
   background-color: #fdf6e3;

Revision as of 13:11, 29 May 2025

.itemcard-table {
  margin: 0 auto;
  width: 100%;
  border-collapse: collapse;
}

.itemcard-table td {
  vertical-align: top;
  padding: 10px;
}

/* Flex container for stat chips */
.itemcard-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* Base chip style */
.itemcard-chip {
  display: inline-block;
  border-radius: 8px;
  padding: 3px 6px;
  white-space: nowrap;
  font-weight: bold;
  font-size: 0.9em;
  color: #fff;
}

/* Individual stat colors */
.itemcard-chip.str { background-color: #e28080; }
.itemcard-chip.dex { background-color: #80b4e2; }
.itemcard-chip.int { background-color: #c080e2; }
.itemcard-chip.luk { background-color: #d9b100; }
.itemcard-chip.vit { background-color: #80e2a7; }
.itemcard-chip.agi { background-color: #f5a742; }

/* Keep for legacy use or icon formatting */
.itemcard-icon {
  text-align: center;
}

/* Optional: for other inline stat displays */
.itemcard-stat {
  display: inline-block;
  border: 2px solid #222;
  border-radius: 8px;
  background: #eee;
  padding: 3px 6px;
  margin: 2px;
  white-space: nowrap;
  font-weight: bold;
}

/* Optional legacy theme block */
.simple-style {
  background-color: #fdf6e3;
  color: #333;
  font-family: sans-serif;
  padding: 1em;
}