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 15: Line 15:
}
}


/* HEADER */
/* Layout container */
.home-header {
.tiles-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: nowrap;
  margin-bottom: 40px;
}
 
/* BIG BOXES */
.big-box {
  width: 200px;
  height: 600px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  color: white;
  box-shadow: 0 0 10px #00000088;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 10px;
   text-align: center;
   text-align: center;
   padding: 60px 20px 30px;
   overflow: hidden;
}
}


.home-header h1 {
.big-box::before {
   font-size: 48px;
   content: "";
   color: #cceeff;
  position: absolute;
   margin: 0;
   inset: 0;
   background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
}


.home-header p {
.big-box .overlay-title,
   color: #aaaaaa;
.big-box .overlay-desc {
   margin-top: 8px;
   position: relative;
   z-index: 2;
}
}


.event-banner {
.big-box .overlay-title {
   margin: 20px auto;
   font-size: 20px;
   background: linear-gradient(to right, #1c1e2b, #3a1f4f);
   font-family: 'AngerStyles', serif;
   border-radius: 10px;
   border-bottom: 2px solid white;
   padding: 16px;
   padding-bottom: 2px;
  display: flex;
   transition: color 0.2s ease, border-color 0.2s ease;
  flex-direction: column;
   align-items: center;
  max-width: 1100px;
}
}


.event-banner .text {
.big-box:hover .overlay-title {
   margin-bottom: 10px;
   color: #c9a500;
   text-align: center;
   border-color: #c9a500;
}
}


/* TILE GRID */
.big-box .overlay-desc {
.tiles {
   font-size: 14px;
   width: 100%;
   margin-top: 9px;
   display: grid;
   color: #e0e0e0;
   grid-template-columns: repeat(7, 1fr);
   text-shadow: 1px 1px 3px black;
   gap: 2rem;
   opacity: 0;
   padding: 0 20px;
   transition: opacity 0.3s ease;
   box-sizing: border-box;
}
}


/* LARGE TILES (2 per row) */
.big-box:hover .overlay-desc {
.featured-box.large-tile {
   opacity: 1;
   height: 480px;
  grid-column: span 3;
}
}


/* SMALL WIDE TILES (5 per row) */
/* SMALL BOX COLUMN */
.featured-box.small-tile {
.small-column {
   height: 160px;
   display: flex;
   grid-column: span 1;
   flex-direction: column;
  gap: 1rem;
}
}


/* SHARED TILE STYLES */
/* SMALL BOXES */
.featured-box {
.small-box {
  width: 400px;
  height: 150px;
   position: relative;
   position: relative;
   background-size: cover;
   background-size: cover;
Line 77: Line 101:
   background-repeat: no-repeat;
   background-repeat: no-repeat;
   border-radius: 12px;
   border-radius: 12px;
  color: white;
   box-shadow: 0 0 10px #00000088;
   box-shadow: 0 0 10px #00000088;
  text-align: center;
  color: white;
  overflow: hidden;
  padding: 10px;
   display: flex;
   display: flex;
   flex-direction: column;
   flex-direction: column;
   justify-content: flex-end;
   justify-content: flex-end;
   align-items: center;
   align-items: center;
  padding: 10px;
  text-align: center;
  overflow: hidden;
}
}


.featured-box::before {
.small-box::before {
   content: "";
   content: "";
   position: absolute;
   position: absolute;
Line 96: Line 120:
}
}


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


.featured-box .overlay-desc {
.small-box:hover .overlay-title {
   position: relative;
   color: #ffbe02;
   z-index: 2;
   border-color: #ffbe02;
   font-size: 14px;
}
   margin-top: 9px;
 
   color: #e0e0e0;
.small-box .overlay-desc {
   font-size: 13px;
   margin-top: 6px;
   color: #ddd;
   text-shadow: 1px 1px 3px black;
   text-shadow: 1px 1px 3px black;
   opacity: 0;
   opacity: 0;
Line 117: Line 148:
}
}


.featured-box:hover .overlay-title {
.small-box:hover .overlay-desc {
   color: #c9a500;
   opacity: 1;
  border-color: #c9a500;
}
}


.featured-box:hover .overlay-desc {
/* Background classes */
   opacity: 1;
.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'); }


/* SECTION DIVIDERS */
/* Divider */
.divider-ornamental {
.divider-ornamental {
   text-align: center;
   text-align: center;
   margin: 10px auto;
   margin: 40px auto;
   color: #c9a500;
   color: #c9a500;
}
.divider-ornamental .symbol {
  font-size: 28px;
  text-shadow: 1px 1px 3px black;
}
}


Line 140: Line 182:
   border-radius: 3px;
   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.large-tile {
    grid-column: span 2;
    height: 360px;
  }
  .featured-box.small-tile {
    grid-column: span 2;
    height: 120px;
  }
}
/* 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'); }

Revision as of 14:04, 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;
}

/* Layout container */
.tiles-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: nowrap;
  margin-bottom: 40px;
}

/* BIG BOXES */
.big-box {
  width: 200px;
  height: 600px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  color: white;
  box-shadow: 0 0 10px #00000088;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 10px;
  text-align: center;
  overflow: hidden;
}

.big-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.big-box .overlay-title,
.big-box .overlay-desc {
  position: relative;
  z-index: 2;
}

.big-box .overlay-title {
  font-size: 20px;
  font-family: 'AngerStyles', serif;
  border-bottom: 2px solid white;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

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

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

/* SMALL BOX COLUMN */
.small-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* SMALL BOXES */
.small-box {
  width: 400px;
  height: 150px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  color: white;
  box-shadow: 0 0 10px #00000088;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 10px;
  text-align: center;
  overflow: hidden;
}

.small-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.small-box .overlay-title,
.small-box .overlay-desc {
  position: relative;
  z-index: 2;
}

.small-box .overlay-title {
  font-size: 18px;
  font-family: 'AngerStyles', serif;
  border-bottom: 1px solid white;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.small-box:hover .overlay-title {
  color: #ffbe02;
  border-color: #ffbe02;
}

.small-box .overlay-desc {
  font-size: 13px;
  margin-top: 6px;
  color: #ddd;
  text-shadow: 1px 1px 3px black;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* Background classes */
.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'); }

/* Divider */
.divider-ornamental {
  text-align: center;
  margin: 40px auto;
  color: #c9a500;
}

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

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