Jump to content

User:Saag/common.css: Difference between revisions

From Deadlock Wiki
mNo edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
/*** ROOT :: The root holds the colors. ***/
/*:root {*/
:root {
/*   --weapon-orange: #d5903f;*/
  --theme-catlink-background-color: rgb(49 57 54 / 100%);
/*    --vitality-green: #74b01c; */
 
/*    --spirit-purple: #c288f0;*/
  --theme-contentbox-background-color: rgb(47 47 47 / 100%);
/*}*/


  --theme-header-background-color: rgb(39 49 44 / 100%);
/*a:link, a:visited {*/
/* color: #694a2c;*/
/*}*/


  --theme-page-background-color: rgb(49 57 54 / 95%);
/*body, .mw-header, .mw-page-container, #article, #content, #catlinks {*/
  --theme-page-border-color: rgb(49 57 54 / 95%);
/* color: #21130b;*/
 
/*    background-color: #f5eedd;*/
  --theme-text-header-color: rgb(233 220 200 / 100%);
/*}*/
  --theme-text-color: rgb(177 166 149 / 100%);
:root {
 
    --byline-arrow-filter: invert(29%) sepia(0%) saturate(376%) hue-rotate(172deg) brightness(87%) contrast(80%);
  --theme-link-color: rgb(235 235 235 / 100%);
    --tile-border-color: #cabe9b;
  --theme-link-color-hover: rgb(255 255 255 / 100%);
    --tile-background-color: #f9f3eb;
  --theme-link-color-visited: rgb(205 205 205 / 100%);
    --tile-link-button-color: #f5e9db;
  --theme-link-color-redlink: rgb(255 100 100 / 100%);
    --tile-link-button-highlight-color: #dfccb0;
    --tile-dark-color: #fff;
    --tile-dark-bg: #5d6773;
    --tile-dark-link-color: #ccc;
    --tile-dark-byline-color: rgba(255, 255, 255, 0.7);
    --tile-dark-header-color: #fff;
}
}


/*** BODY :: This is where the wiki background is handled. ***/
.tile-row {
 
    display: flex;
body {
    flex-flow: row wrap;
  color: #000000;
    margin-bottom: 1em;
  background: url(https://deadlocked.wiki/images/2/20/DeadlockWikiBG.png) top center / cover no-repeat fixed;
}
}


/*** .MW-PAGE-BASE :: This is where text, page background and border color is handled. ***/
.tile-halves {
#mw-page-base {
    display: flex;
  background-image: linear-gradient(to bottom, var(--theme-header-background-color), var(--theme-header-background-color));
    flex-flow: row wrap;
    border: 1px solid var(--tile-border-color);
    background: var(--tile-background-color);
    box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0, 0, 0, 0.1);
}
}


/*** .MW-BODY :: This is where text, page background and border color is handled. ***/
.tile-halves h2 {
.mw-body {
    font-size: 1.4em;
color: var(--theme-text-color);/*#b1a695;*/
    font-weight: bold;
background: var(--theme-page-background-color);
    border: none;
border-color: var(--theme-page-border-color);
    margin: 0 0 0.4em;
}
}


/*** .CATLINKS :: This is where the category link colors are handled. ***/
.tile-halves .byline + h2 {
.catlinks {
    margin-top: -0.5em;
background-color: var(--theme-catlinks-background-color);
}
}


.mw-footer li {
.tile-top {
color: var(--theme-text-color);/*#b1a695;*/
    width: 100%;
    padding: 1.3rem 1.5rem 0.6rem;
}
}


.vector-legacy-sidebar .vector-menu-portal .vector-menu-content li a:visited{
.tile-top.tile-image {
color: var(--theme-text-color);/*#b1a695;*/
    display: flex;
    align-items: center;
    background-color: var(--byline-color);
    overflow: hidden;
    padding: 0;
    height: 13vw;
    max-height: 12em;
    transition: 0.4s ease-out;
}
}


/*** h1,ETC. :: This is where header color is handled. ***/
.tile-halves:hover .tile-top.tile-image img {
.vector-legacy-sidebar .vector-menu-portal .vector-menu-content li a, h1, h2, h3, h4, h5, h6 {
     transform: scale(1.1);
     color: var(--theme-text-header-color);
    transition: 0.5s ease-out;
}
}


/*** LINK COLORS :: ***/
.tile-top.tile-image span {
a, a.selflink:hover, a.selflink:active {
    width: 100%;
  color: var(--theme-link-color);
}
}


a:visited {
.tile-top.tile-image img {
  color: var(--theme-link-color-visited);
    width: 100%;
    object-fit: cover;
    max-height: 200px;
    transition: 0.4s ease-out;
}
}


a:hover, a:active {
.tile-bottom {
  text-decoration: underline;
    background: var(--tile-background-color);
  color: var(--theme-link-color-hover);
    border-top: 1px solid var(--tile-border-color);
    width: 100%;
    padding: 1rem 1.5rem 0.6rem;
}
}


/** red link **/
.tile-bottom.link-button {
/* we don't really need to mark you have "visited" an inexistent page */
    align-self: flex-end;
a.new, a.new:visited {
    padding: 0;
  color: var(--theme-link-color-redlink);
}
}


/*** CONTENT BOX STUFF ***/
.tile-bottom.link-button a {
 
    display: block;
.toc{
    text-align: center;
  background-color: var(--theme-contentbox-background-color);
    padding: 0.75em 1.5em 0.8em;
    text-decoration: none;
}
}


.tocnumber{
.tile-bottom.read-more {
  color: var(--theme-text-header-color);
    background: var(--tile-link-button-color);
    transition: 0.3s ease-out;
}
}
/*** QUOTE BOX STUFF ***/
/*** MISC SYMBOLS ***/


::marker {
.tile-bottom.read-more a {
  color: var(--theme-text-header-color);
    color: var(--byline-color);
    font-weight: bold;
    text-align: right;
}
}


.mw-editsection-divider{
.tile-bottom.read-more:hover {
  color: var(--theme-text-header-color);
    background: var(--tile-link-button-highlight-color);
}
}


.mw-editsection-bracket {
.tile-bottom.read-more:hover .arrow {
  color: var(--theme-text-header-color);
    transform: translateX(50%);
}
}


.mw-echo-notifications-badge .mw-echo-notification-badge-nojs .oo-ui-icon-bell .mw-echo-notifications-badge-all-read {
.tile-bottom.read-more .arrow {
  color: var(--theme-text-header-color);
    filter: var(--byline-arrow-filter);
    margin-left: 0.4em;
    transition: 0.3s ease-out;
}
}

Latest revision as of 14:54, 18 December 2024

/*:root {*/
/*    --weapon-orange: #d5903f;*/
/*    --vitality-green: #74b01c; */
/*    --spirit-purple: #c288f0;*/
/*}*/

/*a:link, a:visited {*/
/*	color: #694a2c;*/
/*}*/

/*body, .mw-header, .mw-page-container, #article, #content, #catlinks {*/
/*	color: #21130b;*/
/*    background-color: #f5eedd;*/
/*}*/
:root {
    --byline-arrow-filter: invert(29%) sepia(0%) saturate(376%) hue-rotate(172deg) brightness(87%) contrast(80%);
    --tile-border-color: #cabe9b;
    --tile-background-color: #f9f3eb;
    --tile-link-button-color: #f5e9db;
    --tile-link-button-highlight-color: #dfccb0;
    --tile-dark-color: #fff;
    --tile-dark-bg: #5d6773;
    --tile-dark-link-color: #ccc;
    --tile-dark-byline-color: rgba(255, 255, 255, 0.7);
    --tile-dark-header-color: #fff;
}

.tile-row {
    display: flex;
    flex-flow: row wrap;
    margin-bottom: 1em;
}

.tile-halves {
    display: flex;
    flex-flow: row wrap;
    border: 1px solid var(--tile-border-color);
    background: var(--tile-background-color);
    box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0, 0, 0, 0.1);
}

.tile-halves h2 {
    font-size: 1.4em;
    font-weight: bold;
    border: none;
    margin: 0 0 0.4em;
}

.tile-halves .byline + h2 {
    margin-top: -0.5em;
}

.tile-top {
    width: 100%;
    padding: 1.3rem 1.5rem 0.6rem;
}

.tile-top.tile-image {
    display: flex;
    align-items: center;
    background-color: var(--byline-color);
    overflow: hidden;
    padding: 0;
    height: 13vw;
    max-height: 12em;
    transition: 0.4s ease-out;
}

.tile-halves:hover .tile-top.tile-image img {
    transform: scale(1.1);
    transition: 0.5s ease-out;
}

.tile-top.tile-image span {
    width: 100%;
}

.tile-top.tile-image img {
    width: 100%;
    object-fit: cover;
    max-height: 200px;
    transition: 0.4s ease-out;
}

.tile-bottom {
    background: var(--tile-background-color);
    border-top: 1px solid var(--tile-border-color);
    width: 100%;
    padding: 1rem 1.5rem 0.6rem;
}

.tile-bottom.link-button {
    align-self: flex-end;
    padding: 0;
}

.tile-bottom.link-button a {
    display: block;
    text-align: center;
    padding: 0.75em 1.5em 0.8em;
    text-decoration: none;
}

.tile-bottom.read-more {
    background: var(--tile-link-button-color);
    transition: 0.3s ease-out;
}

.tile-bottom.read-more a {
    color: var(--byline-color);
    font-weight: bold;
    text-align: right;
}

.tile-bottom.read-more:hover {
    background: var(--tile-link-button-highlight-color);
}

.tile-bottom.read-more:hover .arrow {
    transform: translateX(50%);
}

.tile-bottom.read-more .arrow {
    filter: var(--byline-arrow-filter);
    margin-left: 0.4em;
    transition: 0.3s ease-out;
}