Template:CAK/styles-rods.css: Difference between revisions

From SuperJoy Wiki
Jump to navigation Jump to search
Created page with "Grid wrapper: .rod-grid { display: flex; flex-wrap: wrap; gap: 16px; margin: 8px 0 16px 0; } Individual card: .rod-card { width: 220px; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; text-decoration: none; color: #111111; box-shadow: 0 2px 10px rgba(0,0,0,0.08); } Image area: .rod-img { background: #0b1b2a; padding: 12px; text-align: center; } .rod-img img { max-width: 100%; height..."
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 17: Line 17:
   color: #111111;
   color: #111111;
   box-shadow: 0 2px 10px rgba(0,0,0,0.08);
   box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}
}


/* Image area */
/* Image area — fixed viewport for consistent size */
.rod-img {
.rod-img {
   background: #0b1b2a;
   background: #0b1b2a;
   padding: 12px;
   height: 220px;                 /* use a fixed height for all rods */
   text-align: center;
   display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
}
.rod-img img {
.rod-img img {
   max-width: 100%;
   width: 100%;
   height: auto;
   height: 100%;
   display: inline-block;
  object-fit: contain;          /* keeps aspect ratio */
   display: block;
}
}


Line 73: Line 80:
   font-weight: 800;
   font-weight: 800;
   margin: 14px 0 8px 0;
   margin: 14px 0 8px 0;
}
/* Stat pills line */
.rod-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.rod-stat {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #0d6efd;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
}

Latest revision as of 02:42, 7 October 2025

/* Grid wrapper */
.rod-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 8px 0 16px 0;
}

/* Individual card */
.rod-card {
  width: 220px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #111111;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

/* Image area — fixed viewport for consistent size */
.rod-img {
  background: #0b1b2a;
  height: 220px;                 /* use a fixed height for all rods */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rod-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;           /* keeps aspect ratio */
  display: block;
}

/* Body */
.rod-body {
  padding: 10px 12px 12px 12px;
}

/* Name */
.rod-name {
  font-weight: 800;
  font-size: 15px;
  margin: 0 0 6px 0;
}

/* Rarity tag */
.rod-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  margin: 0 0 8px 0;
  color: #ffffff;
}

/* Rarity colors */
.rod-common    { background: #6b7280; }  /* gray */
.rod-uncommon  { background: #10b981; }  /* green */
.rod-rare      { background: #3b82f6; }  /* blue */
.rod-epic      { background: #8b5cf6; }  /* purple */
.rod-legendary { background: #f59e0b; }  /* amber */

/* Description */
.rod-desc {
  font-size: 13px;
  color: #374151;
}

/* Section headings on the page */
.rod-section-title {
  font-size: 18px;
  font-weight: 800;
  margin: 14px 0 8px 0;
}

/* Stat pills line */
.rod-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.rod-stat {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #0d6efd;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}