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
Tag: Reverted
Undo revision 294 by Admornstein (talk)
Tag: Undo
Line 15: Line 15:
}
}


.home-header {
/* Layout container */
  text-align: center;
.tiles-row {
  padding: 60px 20px 30px;
   display: flex;
}
   justify-content: center;
.home-header h1 {
   align-items: flex-start;
   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;
  max-width: 1100px;
  text-align: center;
}
 
.tiles {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
   gap: 2rem;
   gap: 2rem;
   padding: 0 20px;
   flex-wrap: nowrap;
   box-sizing: border-box;
   margin-bottom: 40px;
  width: 100%;
}
}


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


.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 {
.small-box {
   grid-column: span 1;
   width: 400px;
   width: 100%;
  height: 150px;
   aspect-ratio: 4 / 1;
   position: relative;
   background-size: contain;
   background-size: cover;
   background-position: center;
   background-repeat: no-repeat;
   background-repeat: no-repeat;
  background-position: center;
  position: relative;
   border-radius: 12px;
   border-radius: 12px;
   color: white;
   color: white;
   text-align: center;
   box-shadow: 0 0 10px #00000088;
   display: flex;
   display: flex;
   flex-direction: column;
   flex-direction: column;
   justify-content: flex-end;
   justify-content: flex-end;
   box-shadow: 0 0 10px #00000088;
   align-items: center;
  padding: 10px;
  text-align: center;
   overflow: hidden;
   overflow: hidden;
  padding: 10px;
}
}


/* shared overlay */
.big-box::before,
.small-box::before {
.small-box::before {
   content: "";
   content: "";
Line 94: Line 119:
   z-index: 1;
   z-index: 1;
}
}
.overlay-title,
 
.overlay-desc {
.small-box .overlay-title,
.small-box .overlay-desc {
   position: relative;
   position: relative;
   z-index: 2;
   z-index: 2;
}
}
.overlay-title {
 
.small-box .overlay-title {
  font-size: 18px;
   font-family: 'AngerStyles', serif;
   font-family: 'AngerStyles', serif;
  font-size: 20px;
   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;
}
}
.overlay-desc {
 
   font-size: 14px;
.small-box:hover .overlay-title {
  color: #ffbe02;
  border-color: #ffbe02;
}
 
.small-box .overlay-desc {
   font-size: 13px;
   margin-top: 6px;
   margin-top: 6px;
   color: #e0e0e0;
   color: #ddd;
   text-shadow: 1px 1px 3px black;
   text-shadow: 1px 1px 3px black;
   opacity: 0;
   opacity: 0;
   transition: opacity 0.3s ease;
   transition: opacity 0.3s ease;
}
}
.big-box:hover .overlay-title,
 
.small-box:hover .overlay-title {
  color: #c9a500;
  border-color: #c9a500;
}
.big-box:hover .overlay-desc,
.small-box:hover .overlay-desc {
.small-box:hover .overlay-desc {
   opacity: 1;
   opacity: 1;
}
}


/* backgrounds */
/* Background classes */
.bg-classes    { background-image: url('https://cathedralofblades.com/wiki/images/7/7e/Classes.jpg'); }
.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-weapons    { background-image: url('https://cathedralofblades.com/wiki/images/9/9c/Weapons.jpg'); }
Line 135: Line 163:
.bg-abyss      { background-image: url('https://cathedralofblades.com/wiki/images/c/c0/Abyss.jpg'); }
.bg-abyss      { background-image: url('https://cathedralofblades.com/wiki/images/c/c0/Abyss.jpg'); }


/* responsive */
/* Divider */
@media (max-width: 1024px) {
.divider-ornamental {
   .tiles {
   text-align: center;
    grid-template-columns: repeat(2, 1fr);
  margin: 40px auto;
    gap: 1rem;
   color: #c9a500;
   }
}
  .big-box { grid-column: span 2; aspect-ratio: 2 / 3; height: auto; }
 
  .small-box { grid-column: span 2; aspect-ratio: 4 / 1; height: auto; }
.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;
}
}

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