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 14: Line 14:
   padding: 0;
   padding: 0;
}
}
.sidebar-tiles {
  all: unset;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}


.home-header {
.home-header {
Line 38: Line 29:
   color: #aaaaaa;
   color: #aaaaaa;
   margin-top: 8px;
   margin-top: 8px;
}
.search-bar {
  display: flex;
  justify-content: center;
  margin: 20px auto;
}
.search-bar input {
  padding: 14px;
  border-radius: 30px;
  border: none;
  width: 400px;
  font-size: 16px;
  background-color: #1c2128;
  color: #ddd;
}
}


Line 62: Line 37:
   padding: 16px;
   padding: 16px;
   display: flex;
   display: flex;
  flex-direction: column;
   align-items: center;
   align-items: center;
  justify-content: space-between;
   max-width: 1100px;
   max-width: 1100px;
}
}


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


.event-banner button {
.main-layout {
   background: #3096e6;
   display: flex;
   color: white;
   flex-wrap: wrap;
  border: none;
   justify-content: center;
  padding: 10px 20px;
   gap: 2rem;
   border-radius: 6px;
   padding: 20px;
   font-weight: bold;
   cursor: pointer;
}
}


.tiles {
.sidebar-tiles {
   max-width: 1100px;
   display: flex;
   margin: 20px auto;
   flex-direction: column;
   display: grid;
   gap: 1rem;
   grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
   width: 220px;
  gap: 12px;
}
}


.tile-image-overlay {
.tile-image-overlay {
   position: relative;
   display: flex;
   text-align: left;
   flex-direction: column;
   padding-left: 3px;
   background-color: #1c1e2b;
   display: inline-block;
   border: 1px solid #2b2f38;
  border-radius: 8px;
  overflow: hidden;
}
}


.tile-image-overlay .overlay-text {
.tile-image-overlay .overlay-text {
   position: absolute;
   padding: 6px 8px;
  top: 8px;
   font-size: 16px;
   left: 0;
   font-family: 'AngerStyles', sans-serif;
   right: 0;
   color: white;
   color: white;
  font-weight: bold;
   text-shadow: 1px 1px 3px black;
   text-shadow: 1px 1px 3px black;
  padding-left: 3px;
  z-index: 2;
  pointer-events: none;
  transition: color 0.2s ease;
}
}


.tile-image-overlay:hover .overlay-text {
.tile-image-overlay img,
   color: #ffbe02;
.tile-image-overlay .mw-file-element {
   width: 100%;
  height: auto;
  display: block;
}
}


.stats {
.tiles {
   display: flex;
   flex: 1 1 700px;
  flex-wrap: wrap;
   display: grid;
  gap: 20px;
   grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  justify-content: center;
   gap: 2rem;
}
 
.featured-box {
  flex: 0 0 300px;
  min-height: 400px;
   display: flex;
   flex-direction: column;
  align-items: center;
  justify-content: flex-start;
   background-color: #11161c;
  border: 1px solid #2b2f38;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 0 10px #00000055;
  text-align: center;
}
}


Line 150: Line 107:
   text-align: center;
   text-align: center;
   color: white;
   color: white;
   padding: 10px 10px;
   padding: 10px;
   box-shadow: 0 0 10px #00000088;
   box-shadow: 0 0 10px #00000088;
   overflow: hidden;
   overflow: hidden;
Line 161: Line 118:
   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.with-bg .overlay-desc {
  position: relative;
  z-index: 2;
  text-align: center;
}
}


.featured-box.with-bg .overlay-title {
.featured-box.with-bg .overlay-title {
   font-family: 'AngerStyles', serif;
   font-family: 'AngerStyles', serif;
   font-size: 40px;
   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:hover .overlay-title {
  color: #c9a500;
  border-color: #c9a500;
}
}


Line 188: Line 135:
   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 {
  color: #c9a500;
  border-color: #c9a500;
}
}


Line 229: Line 183:
   padding: 20px;
   padding: 20px;
   min-width: 220px;
   min-width: 220px;
  flex: 0 0 auto;
}
}


Line 242: Line 195:
}
}


.wiki-video {
/* Backgrounds */
  flex: 0 0 auto;
.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'); }
/* Unique backgrounds per box */
.bg-quests     { background-image: url('https://cathedralofblades.com/wiki/images/9/98/Damarossa.jpg'); }
.bg-classes {
.bg-maidens   { background-image: url('https://cathedralofblades.com/wiki/images/6/61/Sorrow.jpg'); }
  background-image: url('https://cathedralofblades.com/wiki/images/7/7e/Classes.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-weapons{
.bg-railways   { background-image: url('https://cathedralofblades.com/wiki/images/1/12/Railways.jpg'); }
  background-image: url('https://cathedralofblades.com/wiki/images/9/9c/Weapons.jpg');
.bg-abyss     { background-image: url('https://cathedralofblades.com/wiki/images/c/c0/Abyss.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');
}
 
/* Image darkens on hover via overlay */
.featured-box.with-bg::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
  transition: background 0.3s ease;
}
 
.featured-box.with-bg:hover::before {
  background: rgba(0, 0, 0, 0.4);
}
 
/* Always show hover effect on mobile (touch screens) */
@media (hover: none) and (pointer: coarse) {
  .featured-box.with-bg::before {
    background: rgba(0, 0, 0, 0.4);
  }
 
  .featured-box.with-bg .overlay-desc {
    opacity: 1;
  }
 
  .featured-box.with-bg .overlay-title {
    color: #c9a500;
    border-color: #c9a500;
  }
}
 
 
/* Precise text alignment inside button tiles */
.tile-image-overlay {
  padding: 0;
  text-align: left;
  max-width: 200px;
  display: inline-block;
}
 
.tile-image-overlay .overlay-text {
  display: block;
  padding-left: 6px;
  padding-top: 4px;
  text-align: left;
}
 
.tiles {
  max-width: 1100px;
  margin: 20px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

Revision as of 12:03, 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 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 20px;
}

.sidebar-tiles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 220px;
}

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

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

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

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