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 */
.home-header {
.home-header {
   text-align: center;
   text-align: center;
Line 47: Line 48:
}
}


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


.sidebar-tiles {
.featured-box {
   display: flex;
   position: relative;
  flex-direction: column;
  gap: 1rem;
  width: 220px;
}
 
.tile-image-overlay {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-color: #1c1e2b;
  border: 1px solid #2b2f38;
  border-radius: 8px;
  width: 200px;
  height: 50px;
   background-size: cover;
   background-size: cover;
   background-position: center;
   background-position: center;
   background-repeat: no-repeat;
   background-repeat: no-repeat;
   padding: 0 10px;
   border-radius: 12px;
   box-sizing: border-box;
   box-shadow: 0 0 10px #00000088;
   transition: color 0.2s ease;
   text-align: center;
}
 
.tile-image-overlay .overlay-text {
  font-size: 16px;
  font-family: 'AngerStyles', sans-serif;
   color: white;
   color: white;
   text-shadow: 1px 1px 3px black;
   overflow: hidden;
   z-index: 2;
   padding: 10px;
  transition: color 0.2s ease;
}
 
.tile-image-overlay:hover .overlay-text {
  color: #ffbe02;
}
 
.tile-image-overlay img,
.tile-image-overlay .mw-file-element {
  display: none !important;
}
 
.tiles {
  flex: 1 1 700px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
 
.featured-box.with-bg {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
   display: flex;
   display: flex;
   flex-direction: column;
   flex-direction: column;
   justify-content: flex-end;
   justify-content: flex-end;
   align-items: center;
   align-items: center;
   background-size: contain;
   aspect-ratio: 2 / 3;
   background-repeat: no-repeat;
   grid-column: span 3; /* 2 per row (3+3 in 7-column grid) */
  background-position: center;
}
   border-radius: 12px;
 
   text-align: center;
.featured-box.small-box {
  color: white;
   aspect-ratio: 4 / 1;
  padding: 10px;
   grid-column: span 1; /* 5 per row (1+1+1+1+1 in 7-column grid) */
  box-shadow: 0 0 10px #00000088;
  overflow: hidden;
}
}


.featured-box.with-bg::before {
.featured-box::before {
   content: "";
   content: "";
   position: absolute;
   position: absolute;
   top: 0; left: 0; right: 0; bottom: 0;
   inset: 0;
   background: rgba(0, 0, 0, 0.4);
   background: rgba(0, 0, 0, 0.4);
   z-index: 1;
   z-index: 1;
}
}


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


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


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


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


/* SECTIONS */
.divider-ornamental {
.divider-ornamental {
   text-align: center;
   text-align: center;
Line 182: Line 141:
}
}


.wiki-section {
/* RESPONSIVE */
   display: flex;
@media (max-width: 1024px) {
  flex-wrap: wrap;
   .tiles {
  gap: 20px;
    grid-template-columns: repeat(2, 1fr);
  align-items: flex-start;
   }
   justify-content: center;
}


.wiki-links {
  .featured-box {
  background-color: #1c2128;
    grid-column: span 2;
  border-radius: 8px;
   }
   padding: 20px;
  min-width: 220px;
}


.wiki-links ul {
  .featured-box.small-box {
  list-style: none;
    grid-column: span 2;
  padding: 0;
    aspect-ratio: 6 / 1;
}
   }
 
.wiki-links li {
  padding: 4px 0;
   color: #aaa;
}
}


/* Backgrounds */
/* BACKGROUNDS */
.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 217: Line 167:
.bg-railways  { background-image: url('https://cathedralofblades.com/wiki/images/1/12/Railways.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'); }
.bg-abyss      { background-image: url('https://cathedralofblades.com/wiki/images/c/c0/Abyss.jpg'); }
@media (max-width: 768px) {
  .main-layout {
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
  }
  .sidebar-tiles {
    width: 100%;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
  }
  .tile-image-overlay {
    width: 90%;
    max-width: 300px;
    height: 60px;
    background-size: cover;
    background-position: center;
    margin-bottom: 12px;
  }
  .tile-image-overlay .overlay-text {
    padding: 10px;
    font-size: 16px;
    text-shadow: 1px 1px 2px black;
    color: white;
    text-align: center;
  }
  .tiles {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
  }
}

Revision as of 13:55, 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;
}

.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;
  aspect-ratio: 2 / 3;
  grid-column: span 3; /* 2 per row (3+3 in 7-column grid) */
}

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

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

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

/* SECTIONS */
.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;
  }

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

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