Jump to content

MediaWiki:Common.css: Difference between revisions

From CryptoRootsMX
No edit summary
No edit summary
Line 140: Line 140:




/* OUTER POSTER FRAME */
/* === BOOK POSTER LAYOUT === */
 
.book-poster {
.book-poster {
   width: auto%;
   width: 100%;
  margin: 2rem 0;
   background: #e9dec4; /* cream */
   background: #e9dec4; /* cream */
   box-sizing: border-box;
   box-sizing: border-box;
   font-family: "Georgia", "Times New Roman", serif;
   font-family: "Georgia", "Times New Roman", serif;
   border: none;
   border: none;
}
/* Center the content and set max width */
.book-poster-inner {
  max-width: 1100px;
  margin: 0 auto;
}
}


Line 166: Line 174:
}
}


/* MAIN AREA */
/* MAIN AREA: image left, text right */
.book-poster-main {
.book-poster-main {
   display: flex;
   display: flex;
  gap: 2.5rem;
  padding: 1.5rem 2.5rem 2rem;
   align-items: center;
   align-items: center;
}
}


/* COVER FRAME */
/* COVER COLUMN */
.book-poster-cover-frame {
.book-poster-cover {
  flex: 0 0 auto;
}
}


/* Kill MediaWiki's default thumb frame */
.book-poster-cover .thumb,
.book-poster-cover .thumbinner {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}


/* The actual cover image */
.book-poster-cover .mw-file-element,
.book-poster-img {
  display: block !important;
  width: 280px !important;
  height: auto !important;
  background: transparent !important;
  border-radius: 10px;
  border: 6px solid #7a35d4;
  box-shadow: 0 0 22px rgba(122, 53, 212, 0.4);
  padding: 0 !important;
  margin: 0 !important;
}


 
/* SYNOPSIS COLUMN */
 
/* SYNOPSIS BOX */
.book-poster-text-wrapper {
.book-poster-text-wrapper {
   flex: 1 1 auto;
   flex: 1 1 auto;
Line 197: Line 228:
}
}


/* FOOTER BUTTON BAR */
/* FULL-WIDTH BUY BAR UNDER POSTER */
.book-poster-footer {
.book-poster-buybar {
   width: 100%;
   width: 100%;
   display: flex;
   margin-top: 1.5rem;
  justify-content: center;
   border-top: 2px solid #000;
  align-items: center;
  gap: 2.5rem;
   padding: 2rem 0;
   background: transparent;
   background: transparent;
  border: none;
}
}


/* BASE BUTTON CONTAINER (no background here) */
.book-poster-buybar-inner {
.book-poster-btn {
   max-width: 1100px;
  flex: 0 0 auto;
   margin: 0 auto;
  min-width: 180px;
   max-width: 230px;
   padding: 0;            /* remove any padding on span */
  border: none;
  background: transparent;
}
}


/* STYLE THE INNER LINK AS THE BUTTON */
/* Full-width green button bar */
.book-poster-btn a {
.book-poster-buybtn a {
   display: block;
   display: block;
   width: 100%;
   width: 100%;
   text-align: center;
   text-align: center;
   padding: 1.1rem 1.5rem;
   padding: 1.2rem 1rem;
   background: #d7f8bc;
   background: #d7f8bc;
   border: 2px solid #000;
   border: 2px solid #000;
   text-decoration: none;
   text-decoration: none;
   font-weight: 700;
   font-weight: 700;
   font-size: 1.1rem;
   font-size: 1.05rem;
   letter-spacing: 0.06em;
   letter-spacing: 0.06em;
   font-family: "Arial Rounded MT Bold", sans-serif;
   font-family: "Arial Rounded MT Bold", sans-serif;
Line 238: Line 260:
}
}


/* GREEN HOVER FOR BUY BUTTON */
.book-poster-buybtn a:hover {
.book-poster-btn a:hover {
   background: #baf595;
   background: #baf595;
   transform: translateY(-2px);
   transform: translateY(-2px);
   box-shadow: 0 3px 8px rgba(0,0,0,0.18);
   box-shadow: 0 3px 8px rgba(0,0,0,0.18);
}
/* RED UNAVAILABLE BUTTON (NO LINK) */
.book-poster-btn.disabled {
  background: #f7d7d7;
  color: #900;
  border: 2px solid #000;
  padding: 1.1rem 1.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  font-family: "Arial Rounded MT Bold", sans-serif;
  cursor: not-allowed;
  box-shadow: none;
}
/* RED HOVER (NO MOVEMENT) */
.book-poster-btn.disabled:hover {
  background: #f0b3b3;
  transform: none;
  box-shadow: none;
}
}


Line 275: Line 274:
   }
   }


   .book-poster-cover-frame img {
   .book-poster-cover .mw-file-element,
    display = block;
   .book-poster-img {
    width: 300 px;
     width: 230px !important;
  }
 
   .book-poster-footer {
     flex-direction: column;
    padding: 1.25rem 1.5rem 1.75rem;
   }
   }


   .book-poster-btn,
   .book-poster-synopsis-box {
  .book-poster-btn a,
     font-size: 0.88rem;
  .book-poster-btn.disabled {
    width: 100%;
    max-width: 260px;
     font-size: 1.05rem;
   }
   }
}
}

Revision as of 11:12, 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;
}




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



/* === BOOK POSTER LAYOUT === */

.book-poster {
  width: 100%;
  margin: 2rem 0;
  background: #e9dec4; /* cream */
  box-sizing: border-box;
  font-family: "Georgia", "Times New Roman", serif;
  border: none;
}

/* Center the content and set max width */
.book-poster-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* HEADER */
.book-poster-header {
  text-align: center;
  padding: 1.5rem 2rem 0.75rem;
}

.book-poster-title {
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.book-poster-author {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

/* MAIN AREA: image left, text right */
.book-poster-main {
  display: flex;
  gap: 2.5rem;
  padding: 1.5rem 2.5rem 2rem;
  align-items: center;
}

/* COVER COLUMN */
.book-poster-cover {
  flex: 0 0 auto;
}

/* Kill MediaWiki's default thumb frame */
.book-poster-cover .thumb,
.book-poster-cover .thumbinner {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

/* The actual cover image */
.book-poster-cover .mw-file-element,
.book-poster-img {
  display: block !important;
  width: 280px !important;
  height: auto !important;
  background: transparent !important;
  border-radius: 10px;
  border: 6px solid #7a35d4;
  box-shadow: 0 0 22px rgba(122, 53, 212, 0.4);
  padding: 0 !important;
  margin: 0 !important;
}

/* SYNOPSIS COLUMN */
.book-poster-text-wrapper {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.book-poster-synopsis-box {
  max-width: 650px;
  border: 3px solid #7c2ac7;
  padding: 1.2rem 1.5rem;
  background: #f4ead0;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

/* FULL-WIDTH BUY BAR UNDER POSTER */
.book-poster-buybar {
  width: 100%;
  margin-top: 1.5rem;
  border-top: 2px solid #000;
  background: transparent;
}

.book-poster-buybar-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Full-width green button bar */
.book-poster-buybtn a {
  display: block;
  width: 100%;
  text-align: center;
  padding: 1.2rem 1rem;
  background: #d7f8bc;
  border: 2px solid #000;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  font-family: "Arial Rounded MT Bold", sans-serif;
  color: #000;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease,
              box-shadow 0.15s ease;
}

.book-poster-buybtn a:hover {
  background: #baf595;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.18);
}

/* MOBILE */
@media (max-width: 900px) {
  .book-poster-main {
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 1.5rem 1.5rem;
  }

  .book-poster-cover .mw-file-element,
  .book-poster-img {
    width: 230px !important;
  }

  .book-poster-synopsis-box {
    font-size: 0.88rem;
  }
}