Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:MainPage/styles.css: Difference between revisions

Template page
No edit summary
No edit summary
Line 58: Line 58:
}
}


/* LARGE TILE */
.featured-box {
.featured-box {
   position: relative;
   position: relative;
Line 73: Line 74:
   justify-content: flex-end;
   justify-content: flex-end;
   align-items: center;
   align-items: center;
   aspect-ratio: 2 / 3;
   height: 420px;
   grid-column: span 3; /* 2 per row (3+3 in 7-column grid) */
   grid-column: span 3;
}
}


/* SMALL TILE */
.featured-box.small-box {
.featured-box.small-box {
   aspect-ratio: 4 / 1;
   height: 120px;
   grid-column: span 1; /* 5 per row (1+1+1+1+1 in 7-column grid) */
   grid-column: span 1;
}
}


/* BACKGROUND OVERLAY */
.featured-box::before {
.featured-box::before {
   content: "";
   content: "";
Line 90: Line 93:
}
}


/* OVERLAY CONTENT */
.featured-box .overlay-title {
.featured-box .overlay-title {
   position: relative;
   position: relative;
Line 120: Line 124:
}
}


/* SECTIONS */
/* SECTION DIVIDERS */
.divider-ornamental {
.divider-ornamental {
   text-align: center;
   text-align: center;
Line 149: Line 153:
   .featured-box {
   .featured-box {
     grid-column: span 2;
     grid-column: span 2;
    height: 300px;
   }
   }


   .featured-box.small-box {
   .featured-box.small-box {
     grid-column: span 2;
     grid-column: span 2;
     aspect-ratio: 6 / 1;
     height: 100px;
   }
   }
}
}

Revision as of 14:01, 26 June 2025

@font-face {
  font-family: 'AngerStyles';
  src: url('https://cathedralofblades.com/wiki/resources/AngerStyles.woff2') format('woff2'),
       url('https://cathedralofblades.com/wiki/resources/AngerStyles.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

body {
  background-color: #0e1117;
  font-family: 'AngerStyles', sans-serif;
  color: white;
  margin: 0;
  padding: 0;
}

/* HEADER */
.home-header {
  text-align: center;
  padding: 60px 20px 30px;
}

.home-header h1 {
  font-size: 48px;
  color: #cceeff;
  margin: 0;
}

.home-header p {
  color: #aaaaaa;
  margin-top: 8px;
}

.event-banner {
  margin: 20px auto;
  background: linear-gradient(to right, #1c1e2b, #3a1f4f);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1100px;
}

.event-banner .text {
  margin-bottom: 10px;
  text-align: center;
}

/* TILE LAYOUT */
.tiles {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2rem;
  padding: 0 20px;
  box-sizing: border-box;
}

/* LARGE TILE */
.featured-box {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  box-shadow: 0 0 10px #00000088;
  text-align: center;
  color: white;
  overflow: hidden;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 420px;
  grid-column: span 3;
}

/* SMALL TILE */
.featured-box.small-box {
  height: 120px;
  grid-column: span 1;
}

/* BACKGROUND OVERLAY */
.featured-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* OVERLAY CONTENT */
.featured-box .overlay-title {
  position: relative;
  z-index: 2;
  font-family: 'AngerStyles', serif;
  font-size: 24px;
  border-bottom: 2px solid white;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.featured-box .overlay-desc {
  position: relative;
  z-index: 2;
  font-size: 14px;
  margin-top: 9px;
  color: #e0e0e0;
  text-shadow: 1px 1px 3px black;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.featured-box:hover .overlay-title {
  color: #c9a500;
  border-color: #c9a500;
}

.featured-box:hover .overlay-desc {
  opacity: 1;
}

/* SECTION DIVIDERS */
.divider-ornamental {
  text-align: center;
  margin: 10px auto;
  color: #c9a500;
}

.divider-line-only {
  height: 2px;
  width: 80%;
  margin: 50px auto;
  background: linear-gradient(to right, #c9a500, #886b00, #c9a500);
  border-radius: 3px;
}

.divider-ornamental .symbol {
  font-size: 28px;
  text-shadow: 1px 1px 3px black;
  margin: 5px 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-box {
    grid-column: span 2;
    height: 300px;
  }

  .featured-box.small-box {
    grid-column: span 2;
    height: 100px;
  }
}

/* BACKGROUNDS */
.bg-classes    { background-image: url('https://cathedralofblades.com/wiki/images/7/7e/Classes.jpg'); }
.bg-weapons    { background-image: url('https://cathedralofblades.com/wiki/images/9/9c/Weapons.jpg'); }
.bg-signets    { background-image: url('https://cathedralofblades.com/wiki/images/6/61/Signets.jpg'); }
.bg-quests     { background-image: url('https://cathedralofblades.com/wiki/images/9/98/Damarossa.jpg'); }
.bg-maidens    { background-image: url('https://cathedralofblades.com/wiki/images/6/61/Sorrow.jpg'); }
.bg-dungeons   { background-image: url('https://cathedralofblades.com/wiki/images/d/db/Obscuradungeon.jpg'); }
.bg-rhapsody   { background-image: url('https://cathedralofblades.com/wiki/images/4/4a/Rhapsody.jpg'); }
.bg-railways   { background-image: url('https://cathedralofblades.com/wiki/images/1/12/Railways.jpg'); }
.bg-abyss      { background-image: url('https://cathedralofblades.com/wiki/images/c/c0/Abyss.jpg'); }