Jump to content

MediaWiki:Common.css: Difference between revisions

From CryptoRootsMX
No edit summary
No edit summary
 
(28 intermediate revisions by the same user not shown)
Line 84: Line 84:




/* ===== Book Recommendations grid (Categories) ===== */


/* Section title */
.book-header {
  text-align: center;
  font-family: "Georgia","Garamond",serif;
  font-size: 1.7rem;
  margin: 1.5rem 0 0.75rem;
  color: #502583;
}


.bookgrid {
/* Turn the wikitable into a card grid */
table.bookgrid {
   width: 100%;
   width: 100%;
  table-layout: fixed;
   border-collapse: separate;
   border-collapse: separate;
   border-spacing: 10px 8px;
   border-spacing: 16px 14px;  /* space between cards */
   background: #f8efe4;
  background: transparent;
  border: 0;
}
 
/* kill default wikitable borders/background */
table.bookgrid > * > tr > th,
table.bookgrid > * > tr > td {
  border: 0;
   background: transparent;
  padding: 0;
}
}


.bookgrid .book-cell {
/* Each card */
   width: 20%; /* 5 columns */
.book-cell {
   padding: 6px;
   background: #FAEEDC;
  border: 1px solid #E6CFAE;
  border-radius: 14px;
   padding: 14px 12px 10px;
   text-align: center;
   text-align: center;
   background: #fdf7f2;
   vertical-align: top;
   border-radius: 8px;
  font-family: "Georgia","Garamond",serif;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
   min-width: 210px;
}
}


.bookgrid .book-cell img {
/* cover images inside cards */
.book-cell img {
   display: block;
   display: block;
   margin: 0 auto;
   margin: 0 auto 10px;
   border: 3px solid #6e337f;
   max-width: 210px;
   border-radius: 6px;
  height: auto;
   border-radius: 8px;
  padding: 2px;
  background: #FAEEDC;
}
}


/* colored frames per category */
.book-emerald-cell img  { border: 4px solid #046307; box-shadow: 0 0 10px rgba(4,99,7,0.35); }
.book-ruby-cell img    { border: 4px solid #7D2181; box-shadow: 0 0 10px rgba(125,33,129,0.35); }
.book-sapphire-cell img { border: 4px solid #0B3C8D; box-shadow: 0 0 10px rgba(11,60,141,0.35); }
.book-amethyst-cell img { border: 4px solid #b35bc8; box-shadow: 0 0 10px rgba(179,91,200,0.35); }
.book-topaz-cell img    { border: 4px solid #c48c32; box-shadow: 0 0 10px rgba(196,140,50,0.35); }
/* title text under each cover */
.book-title {
.book-title {
   display: block;
   display: block;
   margin-top: 4px;
   margin-top: 6px;
   font-weight: bold;
   font-weight: 600;
  color: #0d663a;
   font-size: 0.95rem;
   font-family: Georgia, serif;
   color: #502583;
   line-height: 1.2em;
}
}


/* Category color accents */
/* slight color accents per category (optional) */
.book-emerald-cell img { border-color: #1f8a5b; }
.book-emerald-cell .book-title  { color: #046307; }
.book-ruby-cell img    { border-color: #8a1f4f; }
.book-ruby-cell .book-title    { color: #7D2181; }
.book-sapphire-cell img{ border-color: #1f4f8a; }
.book-sapphire-cell .book-title { color: #0B3C8D; }
.book-amethyst-cell img{ border-color: #6e337f; }
.book-amethyst-cell .book-title { color: #7a35d4; }
.book-topaz-cell img  { border-color: #b7791f; }
.book-topaz-cell .book-title    { color: #a56b20; }


 
/* hover effect */
.mw-parser-output .book-header {
.book-cell:hover {
   text-align: center !important;
   transform: translateY(-3px);
  margin: 12px auto 8px auto;
   background: #F6EAD6;
  font-size: 2em;
   box-shadow: 0 4px 10px rgba(0,0,0,0.12);
   font-weight: bold;
}
   font-family: Georgia, "Times New Roman", serif;
.book-cell:hover img {
  color: #5a2a7a;
   opacity: 0.96;
  width: 100%;
  border-bottom: 2px solid #d8c3e3;
   padding-bottom: 4px;
}
}




/* ===== single book grid ===== */
/* ===== single book grid ===== */


/* === BOOK POSTER LAYOUT === */
.singlebook-grid {
 
  display: grid;
.book-poster {
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  grid-column-gap: 0;
  grid-row-gap: 0;
   width: 100%;
   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 */
/* image area */
.book-poster-inner {
.singlebook-div1 {
   max-width: 1100px;
  grid-area: 1 / 1 / 6 / 3;
   margin: 0 auto;
  display: flex;
   align-items: flex-start;
   justify-content: center;
}
}


/* HEADER */
.singlebook-div1 img {
.book-poster-header {
   width: 700px !important;
   text-align: center;
   height: auto !important;
   padding: 1.5rem 2rem 0.75rem;
}
}


.book-poster-title {
/* text area */
   font-weight: 600;
.singlebook-div2 {
  letter-spacing: 0.08em;
   grid-area: 1 / 3 / 4 / 6;
   margin-bottom: 0.4rem;
   padding: 2rem;
}
}


.book-poster-author {
/* BUY NOW area */
   font-size: 0.95rem;
.singlebook-div3 {
   letter-spacing: 0.08em;
  grid-area: 4 / 3 / 5 / 6;
  padding: 2rem;
  display: flex;
  justify-content: center;  /* horizontal centering */
   align-items: center;       /* vertical centering */
   text-align: center;       /* keeps inline content centered too */
}
}


/* MAIN AREA: image left, text right */
 
.book-poster-main {
/* optional bottom area */
   display: flex;
.singlebook-div4 {
  gap: 2.5rem;
   grid-area: 5 / 3 / 6 / 6;
   padding: 1.5rem 2.5rem 2rem;
   padding: 2rem;
  align-items: center;
}
}


/* COVER COLUMN */
/* button styling */
.book-poster-cover {
.buy-now-btn {
   flex: 0 0 auto;
   display: inline-block;
  padding: 14px 28px;
  background: #c8f9b5;
  border: 2px solid #51a037;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #1a3a12;
  text-decoration: none;
  letter-spacing: 0.5px;
  font-family: "Arial Rounded MT Bold", sans-serif;
  transition: 0.2s ease;
}
}


/* Kill MediaWiki's default thumb frame */
.buy-now-btn:hover {
.book-poster-cover .thumb,
   background: #a3f085;
.book-poster-cover .thumbinner {
   transform: translateY(-2px);
   background: transparent !important;
   box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
   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 {
/* --- LOCATION GRID STYLE --- */
  max-width: 650px;
.location-grid {
  border: 3px solid #7c2ac7;
    display: flex;
  padding: 1.2rem 1.5rem;
    flex-wrap: wrap;
  background: #f4ead0;
    justify-content: center;
  font-size: 0.9rem;
    gap: 40px;
  line-height: 1.5;
    margin-top: 30px;
  text-align: center;
}
}


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


.book-poster-buybar-inner {
.location-card .location-box {
  max-width: 1100px;
    border: 1px solid #dcdcdc;
  margin: 0 auto;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: white;
}
}


/* Full-width green button bar */
.location-card .location-box:hover {
.book-poster-buybtn a {
    transform: translateY(-5px);
  display: block;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
  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 {
.location-card img {
  background: #baf595;
    width: 100%;
  transform: translateY(-2px);
    border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.18);
}
}


/* MOBILE */
.location-title {
@media (max-width: 900px) {
     margin-top: 12px;
  .book-poster-main {
     font-weight: bold;
     flex-direction: column;
     font-size: 17px;
     align-items: center;
     color: #006b59;
     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;
  }
}
}

Latest revision as of 14:37, 15 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;
}


/* ===== Book Recommendations grid (Categories) ===== */

/* Section title */
.book-header {
  text-align: center;
  font-family: "Georgia","Garamond",serif;
  font-size: 1.7rem;
  margin: 1.5rem 0 0.75rem;
  color: #502583;
}

/* Turn the wikitable into a card grid */
table.bookgrid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 16px 14px;   /* space between cards */
  background: transparent;
  border: 0;
}

/* kill default wikitable borders/background */
table.bookgrid > * > tr > th,
table.bookgrid > * > tr > td {
  border: 0;
  background: transparent;
  padding: 0;
}

/* Each card */
.book-cell {
  background: #FAEEDC;
  border: 1px solid #E6CFAE;
  border-radius: 14px;
  padding: 14px 12px 10px;
  text-align: center;
  vertical-align: top;
  font-family: "Georgia","Garamond",serif;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  min-width: 210px;
}

/* cover images inside cards */
.book-cell img {
  display: block;
  margin: 0 auto 10px;
  max-width: 210px;
  height: auto;
  border-radius: 8px;
  padding: 2px;
  background: #FAEEDC;
}

/* colored frames per category */
.book-emerald-cell img  { border: 4px solid #046307; box-shadow: 0 0 10px rgba(4,99,7,0.35); }
.book-ruby-cell img     { border: 4px solid #7D2181; box-shadow: 0 0 10px rgba(125,33,129,0.35); }
.book-sapphire-cell img { border: 4px solid #0B3C8D; box-shadow: 0 0 10px rgba(11,60,141,0.35); }
.book-amethyst-cell img { border: 4px solid #b35bc8; box-shadow: 0 0 10px rgba(179,91,200,0.35); }
.book-topaz-cell img    { border: 4px solid #c48c32; box-shadow: 0 0 10px rgba(196,140,50,0.35); }

/* title text under each cover */
.book-title {
  display: block;
  margin-top: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #502583;
}

/* slight color accents per category (optional) */
.book-emerald-cell .book-title  { color: #046307; }
.book-ruby-cell .book-title     { color: #7D2181; }
.book-sapphire-cell .book-title { color: #0B3C8D; }
.book-amethyst-cell .book-title { color: #7a35d4; }
.book-topaz-cell .book-title    { color: #a56b20; }

/* hover effect */
.book-cell:hover {
  transform: translateY(-3px);
  background: #F6EAD6;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
.book-cell:hover img {
  opacity: 0.96;
}


/* ===== single book grid ===== */
/* ===== single book grid ===== */

.singlebook-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  grid-column-gap: 0;
  grid-row-gap: 0;
  width: 100%;
}

/* image area */
.singlebook-div1 {
  grid-area: 1 / 1 / 6 / 3;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.singlebook-div1 img {
  width: 700px !important;
  height: auto !important;
}

/* text area */
.singlebook-div2 {
  grid-area: 1 / 3 / 4 / 6;
  padding: 2rem;
}

/* BUY NOW area */
.singlebook-div3 {
  grid-area: 4 / 3 / 5 / 6;
  padding: 2rem;
  display: flex;
  justify-content: center;   /* horizontal centering */
  align-items: center;       /* vertical centering */
  text-align: center;        /* keeps inline content centered too */
}


/* optional bottom area */
.singlebook-div4 {
  grid-area: 5 / 3 / 6 / 6;
  padding: 2rem;
}

/* button styling */
.buy-now-btn {
  display: inline-block;
  padding: 14px 28px;
  background: #c8f9b5;
  border: 2px solid #51a037;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #1a3a12;
  text-decoration: none;
  letter-spacing: 0.5px;
  font-family: "Arial Rounded MT Bold", sans-serif;
  transition: 0.2s ease;
}

.buy-now-btn:hover {
  background: #a3f085;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}



/* --- LOCATION GRID STYLE --- */
.location-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.location-card {
    width: 240px;
    text-align: center;
}

.location-card .location-box {
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: white;
}

.location-card .location-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

.location-card img {
    width: 100%;
    border-radius: 8px;
}

.location-title {
    margin-top: 12px;
    font-weight: bold;
    font-size: 17px;
    color: #006b59;
}