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 97: Line 97:
   min-width: 0;
   min-width: 0;
   display: grid;
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
   grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
   gap: 2rem;
   gap: 2rem;
}
}

Revision as of 12:25, 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;
}

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

.main-layout {
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  box-sizing: border-box;
}

/* SIDEBAR */
.sidebar-tiles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 220px;
  flex-shrink: 0;
}

.tile-image-overlay {
  display: flex;
  flex-direction: column;
  background-color: #1c1e2b;
  border: 1px solid #2b2f38;
  border-radius: 8px;
  overflow: hidden;
}

.tile-image-overlay .overlay-text {
  padding: 6px 8px;
  font-size: 16px;
  font-family: 'AngerStyles', sans-serif;
  color: white;
  text-shadow: 1px 1px 3px black;
}

.tile-image-overlay img,
.tile-image-overlay .mw-file-element {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

/* MAIN TILE GRID */
.tiles {
  flex-grow: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.featured-box.with-bg {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 12px;
  text-align: center;
  color: white;
  padding: 10px;
  box-shadow: 0 0 10px #00000088;
  overflow: hidden;
}

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

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

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

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

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

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

/* FOOTER / LINK BLOCKS */
.wiki-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
}

.wiki-links {
  background-color: #1c2128;
  border-radius: 8px;
  padding: 20px;
  min-width: 220px;
}

.wiki-links ul {
  list-style: none;
  padding: 0;
}

.wiki-links li {
  padding: 4px 0;
  color: #aaa;
}

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

/* RESPONSIVE TWEAKS */
@media screen and (max-width: 900px) {
  .main-layout {
    flex-direction: column;
    padding: 0 12px;
  }

  .sidebar-tiles {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .tile-image-overlay {
    width: 150px;
  }

  .tiles {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}