Jump to content

MediaWiki:Common.css: Difference between revisions

From CryptoRootsMX
No edit summary
No edit summary
Line 81: Line 81:
   transform: scale(1.05);
   transform: scale(1.05);
   background: #F6EAD6;
   background: #F6EAD6;
}
.bookgrid {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 10px 8px;
  background: #f8efe4;
}
.bookgrid .book-cell {
  width: 20%; /* 5 columns */
  padding: 6px;
  text-align: center;
  background: #fdf7f2;
  border-radius: 8px;
}
.bookgrid .book-cell img {
  display: block;
  margin: 0 auto;
  border: 3px solid #6e337f;
  border-radius: 6px;
}
.book-title {
  display: block;
  margin-top: 4px;
  font-weight: bold;
  color: #0d663a;
  font-family: Georgia, serif;
  line-height: 1.2em;
}
/* Category color accents */
.book-emerald-cell img { border-color: #1f8a5b; }
.book-ruby-cell img    { border-color: #8a1f4f; }
.book-sapphire-cell img{ border-color: #1f4f8a; }
.book-amethyst-cell img{ border-color: #6e337f; }
.book-topaz-cell img  { border-color: #b7791f; }
.mw-parser-output .book-header {
  text-align: center !important;
  margin: 12px auto 8px auto;
  font-size: 2em;
  font-weight: bold;
  font-family: Georgia, "Times New Roman", serif;
  color: #5a2a7a;
  width: 100%;
  border-bottom: 2px solid #d8c3e3;
  padding-bottom: 4px;
}
/* ARTICLE WRAPPER */
.book-article {
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 2rem;
  align-items: start;
  padding: 2rem;
  background: #e9dec4;
}
/* LEFT COLUMN (IMAGE) */
.book-article-left {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.book-article-img,
.book-article-left img,
.mw-file-element {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
/* RIGHT COLUMN (TEXT) */
.book-article-right {
  font-family: "Georgia", serif;
  font-size: 1rem;
  line-height: 1.55;
  color: #222;
}
.book-article-title {
  margin: 0 0 0.2rem 0;
  font-size: 1.8rem;
  letter-spacing: 0.04em;
}
.book-article-author {
  margin-top: 0;
  font-size: 1rem;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: #444;
}
/* BUTTONS */
.book-article-buttons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.book-article-btn {
  background: #d7f8bc;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  border: 2px solid #000;
  font-family: "Arial Rounded MT Bold", sans-serif;
  cursor: pointer;
  text-decoration: none;
  color: #000;
  border-radius: 3px;
  transition: 0.2s ease;
}
.book-article-btn:hover {
  background: #baf595;
  transform: translateY(-2px);
}
/* DISABLED BUTTON */
.book-article-btn.disabled {
  background: #f7d7d7;
  color: #900;
  cursor: not-allowed;
}
.book-article-btn.disabled:hover {
  background: #f0b3b3;
  transform: none;
}
/* MOBILE */
@media (max-width: 900px) {
  .book-article {
    grid-template-columns: 1fr;
  }
 
  .book-article-left {
    max-width: 300px;
    margin: 0 auto;
  }
 
  .book-article-buttons {
    flex-direction: column;
  }
}
}

Revision as of 11:32, 14 November 2025

/* ===== CryptoRootsMX – Vector (legacy) full tan theme ===== */




/* Header + footer */
#mw-head, #footer {
  color:#2E2A26 !important;
}

/* Tabs (Read / Edit / View history) */
.vector-menu-tabs li a {
  color: #017C74 !important;
}
.vector-menu-tabs li.selected a {
  background: transparent !important;
  border-bottom: 3px solid #017C74 !important;
  color: #017C74 !important;
}

/* Headings & links */
h1, h2, h3, h4 { color:#502583 !important; font-family: "Georgia","Garamond",serif; }
a, a:visited { color:#017C74 !important; }
a:hover { color:#B39D68 !important; }

/* === CryptoRootsMX gem styles (WAF-safe) === */
.gem-grid { width:100%; background:#FAEEDC; border:1px solid #E6CFAE; text-align:center; }

/* shared cell formatting */
.gem-cell { padding:12px; vertical-align:top; }
.gem-cell img { border-radius:6px; padding:2px; background:#FAEEDC; }

/* frames by role */
.gem-emerald-cell img  { border:4px solid #046307; } /* Confirmed Jews */
.gem-ruby-cell img     { border:4px solid #7D2181; } /* Conquistadors & Settlers */
.gem-sapphire-cell img { border:4px solid #0B3C8D; } /* Saints */

/* titles underneath (optional color without extra HTML) */
.gem-title { display:block; margin-top:8px; font-weight:bold; color:#2E2A26; }
.gem-emerald-cell .gem-title  { color:#046307; }
.gem-ruby-cell .gem-title     { color:#7D2181; }
.gem-sapphire-cell .gem-title { color:#0B3C8D; }

/* subtle hover without shadows */
.gem-cell:hover img { opacity:0.95; outline:2px solid rgba(0,0,0,0.05); }

.gem-cell:hover img {
  transform: scale(1.02);
  transition: all 0.25s ease;
  opacity: 0.95;
}
.gem-emerald-cell img { border: 4px solid #046307; box-shadow: 0 0 10px rgba(4,99,7,0.4); }
.gem-ruby-cell img { border: 4px solid #7D2181; box-shadow: 0 0 10px rgba(125,33,129,0.4); }
.gem-sapphire-cell img { border: 4px solid #0B3C8D; box-shadow: 0 0 10px rgba(11,60,141,0.4); }


/* Confirmed Surnames grid (wider cards) */
.surname-grid {
  display: table;
  width: 100%;
  border-collapse: separate;
  border-spacing: 12px 10px;
  text-align: center;
}

.surname-cell {
  background: #FAEEDC;
  border: 1px solid #E6CFAE;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 500;
  color: #502583;
  font-family: 'Georgia', serif;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.05);
  transition: transform 0.1s ease;
  width: 160px;         /* ← widen this to your liking */
  min-width: 150px;
}

.surname-cell:hover {
  transform: scale(1.05);
  background: #F6EAD6;
}