MediaWiki:Common.css

From Abiotic Factor Wiki
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/**
 * Abiotic Factor Wiki theme
 * 
 * Based on Dead Cells wiki theme
 * https://deadcells.wiki.gg/
 *
 * Most design elements were inspired by Abiotic Factor UI
 * Some features from Dead Cells theme were removed
 */

/*Quotes slider*/

.hslider {
    position: relative;
    
    overflow: hidden;
  }

  .hslider__wrapper {
    display: flex;
    transition: transform 0.6s ease;
    align-items: center;
  }
  
  .hslider__wrapper > p {
    margin: 0;
  }

  .hslider__item {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .hslider__control {
    position: absolute;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    color: #fff;
    text-align: center;
    opacity: 0.5;
    height: 50px;
    transform: translateY(-50%);
  }

  .hslider__control:hover,
  .hslider__control:focus {
    color: #fff;
    text-decoration: none;
    outline: 0;
    opacity: .9;
  }

  .hslider__control_left {
    left: 0;
  }

  .hslider__control_right {
    right: 0;
  }

  .hslider__control::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: transparent no-repeat center center;
    background-size: 100% 100%;
  }

  .hslider__control_left::before {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E");
  }

  .hslider__control_right::before {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E");
  }

  .hslider__item>div {
  line-height: 22px;
  font-size: 14px;
  text-align: center;
}

/* Tabber styling */
.tabberlive .tabbertab,
.tabber .tabbertab {
  border: 1px solid #D1394E; /* If you keep all borders the same */
  border-image: none;
  padding: 3px;
}

ul.tabbernav {
  border-bottom: none;
}

ul.tabbernav li a {
  background: linear-gradient(to bottom, #A6274E 0%,#CD2F46 73%,#D1394E 100%); /* This should match your general choice of background color */
  border: 1px solid #D1394E; /* This should match your general choice of border color */
  border-image: none;
  border-radius: 2px 2px 0 0; /* This is only if you want your tabs to have rounded corners */
  margin-left: 3px;
  padding: 3px 0.5em;
  text-decoration: none;
}

ul.tabbernav li {
  display: inline;
  list-style: none outside none;
  margin: 0 0 0 7px;
}

ul.tabbernav li a:link {
  color: #F1DAB4; /* This should match your anchor color, but simply being different from the default text color works */
}

ul.tabbernav li a:hover {
  background: none repeat scroll 0 0 #D1394E;
  border-color: #D1394E; /* This should match your general choice of border color */
  color: #FFFFFF;
}

ul.tabbernav li.tabberactive a {
  background-color: #D1394E;
  color: #FFFFFF;
}

ul.tabbernav li.tabberactive a:hover {
  color: #F1DAB4;
}

ul.tabbernav li.tabberactive a,
ul.tabbernav li.tabberactive a:hover,
ul.tabbernav li.tabberactive a:link {
  background-color: #A6274E;
  border-bottom: 1px none;
  padding: 2px 0.5em 4px;
}

ul.tabbernav {
  text-align: center; /* if you want the tabs to be centered rather than left-justified with respect to the tab content */
}

/* messageboxes */
.messagebox {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--wiki-navigation-border-color);
  border-radius: 3px;
  box-shadow: 0 15px 45px -10px rgba(0, 0, 0, 0.3);
  margin: 0 auto 1em auto;
  padding: 0.5em;
  text-align: center;
}

/* DLC colors for custom hyperlinks */
.RotG a:visited, .RotG a { color: #66E6FF; }
.TBS a:visited, .TBS a { color: #00FF00; }
.FF a:visited, .FF a { color: #F88B46; }

/* Portable Infobox fix */
figure.pi-image {
  border: 0;
  margin: 0;
  padding: 0;
  vertical-align: baseline;
}

/* Image fix for biome map */
.fluid img {
  max-width: 100%;
  height: auto;
}

/* Main page ([[Dead Cells Wiki]]) */

#fp-container {
display:grid;
grid-template-areas:"a" "b" "c";
grid-template-columns:100%
}
@media screen and (min-width:990px) {
#fp-container {
  grid-template-areas:"a b" "c c";
  grid-template-columns:50% 50%
}
}
@media screen and (min-width:1350px) {
#fp-container {
  grid-template-areas:"a b" "c c";
  grid-template-columns:auto 520px
}
}

.fpbox {
width:calc(100% - 2px);
box-sizing:border-box;
}

.fp-section {
display:flex;
flex-wrap:wrap;
overflow:hidden
}

#fp-top {
grid-area:a
}
#fp-flex {
grid-area:b
}
#fp-bottom {
grid-area:c
}

/* End main page */