|
|
| (6 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| /*Foundation Wiki – Vector Skin CSS | | /* CSS placed here will be applied to all skins */ |
| | | .quote-frame { |
| Based on an original vector CSS edit by: Olessan
| | margin: auto; |
| Modified and maintained by: Polymorph-Ash
| |
| Purpose: Main Vector skin styling for the Foundation Wiki
| |
| */
| |
| :root {
| |
| --maintext:#2a160f;
| |
| --headertext:#3c3f44;
| |
| --whitetextandbg:#fffff3;
| |
| --bordercolour:#5f3529;
| |
| --smallborders:#9c8668;
| |
| --orange:223, 156, 52;
| |
| --mainfont:Verdana,Tahoma,sans-serif;
| |
| --headerfont:Georgia,serif;
| |
| --tableheaders:#eacf98;
| |
| --tablecolour2:#f2e5c0;
| |
| --tablecolour3:#ffeabd;
| |
| --background-image:url(https://wiki.polymorph.games/found/images/8/8a/Keyart02_Clean_noLogo_4k.png)
| |
| }
| |
| | |
| /*adds a layer for background transparency*/
| |
| body::before {
| |
| content: "";
| |
| position: fixed;
| |
| top: 0;
| |
| left: 0;
| |
| width: 100%;
| |
| height: 100%;
| |
| background-color: rgba(10, 10, 10, 0.42);
| |
| pointer-events: none;
| |
| z-index: -1;
| |
| }
| |
| | |
| /*background image*/
| |
| body {
| |
| background-image:var(--background-image);
| |
| background-repeat:no-repeat;
| |
| background-clip:border-box;
| |
| background-attachment:fixed;
| |
| background-position:center;
| |
| background-size:cover;
| |
| }
| |
| /*overarching fonts*/
| |
| #content {
| |
| color:var(--maintext);
| |
| font-family:var(--mainfont);
| |
|
| |
| }
| |
| #content h1,
| |
| #content h2,
| |
| #content h3,
| |
| #content h4,
| |
| #content h5,
| |
| #content h6 {
| |
| color:var(--headertext);
| |
| font-weight:normal;
| |
| font-family:var(--headerfont);
| |
| border-color:var(--smallborders); | |
| }
| |
| | |
| .spoilers-button {
| |
| border-color:var(--smallborders);
| |
| color:var(--maintext);
| |
| background-color:transparent;
| |
| background-image:linear-gradient(var(--tablecolour2),rgba(193,193,127),rgba(162,176,48));
| |
| }
| |
| | |
| .spoilers-button:hover {
| |
| border-color:var(--smallborders);
| |
| color:var(--maintext);
| |
| background-color:transparent;
| |
| background-image:linear-gradient(var(--tablecolour2),rgba(var(--orange), 1));
| |
| }
| |
| | |
| .spoilers-body {
| |
| color:var(--maintext);
| |
| background-color:rgba(0,0,0,0.1);
| |
| border-color:var(--smallborders);
| |
| border-style:dotted;
| |
| }
| |
| | |
| /*top menu*/
| |
| #mw-head, #mw-page-base {
| |
| background:transparent;
| |
| border:none;
| |
| }
| |
| | |
| .vector-menu-tabs, vector-menu, vector-menu-tabs, #left-navigation a, #right-navigation a, #left-navigation, #right-navigation, #left-navigation li, #right-navigation li {
| |
| background-color:rgba(var(--orange),0.85);
| |
| border-color:var(--bordercolour);
| |
| border-radius:20px 20px 0px 0px;
| |
| color:var(--whitetextandbg);
| |
| }
| |
| | |
| .vector-menu-tabs {
| |
| background-image: linear-gradient(rgba(182,110,35,0),rgba(182,110,35,0.8));
| |
| background-repeat: repeat;
| |
| } | | } |
|
| |
|
| #left-navigation a, #right-navigation a, #left-navigation, #right-navigation, #left-navigation li, #right-navigation li {
| | .quote-r { |
| background:transparent;
| | vertical-align: bottom; |
| border-color:var(--bordercolour);
| |
| } | | } |
|
| |
|
| .vector-menu-dropdown, .vector-menu-dropdown a, .vector-menu-dropdown li { | | .quote-l { |
| background:transparent;
| | vertical-align: top; |
| border:none;
| |
| } | | } |
|
| |
|
| .vector-user-menu-legacy { | | .mainpage-buttons ul { |
| background:transparent;
| | display: inline-grid; |
| border:none;
| | grid-template-columns: 75px 75px 75px 75px 75px 75px; |
| | grid-gap: 5px; |
| | text-align: center; |
| | margin: 0; |
| } | | } |
|
| |
|
| #mw-head .vector-menu-content {
| | .mainpage-buttons li { |
| background-color:rgba(42, 22, 15, 0.5);
| | padding: 10px 0; |
| border-color:var(--smallborders);
| | display: block; |
| margin:0.2em;
| |
| border-radius:5px;
| |
| }
| |
| | |
| #mw-head .vector-menu-content, #mw-head .vector-menu-content a, #mw-head .vector-menu-content ul, #mw-head .vector-menu-content li {color:var(--whitetextandbg)}
| |
| | |
| #searchInput, #searchInput a {
| |
| color:var(--maintext);
| |
| background-color:rgba(255, 255, 243, 0.9);
| |
| border-radius:10px;
| |
| } | | } |
|
| |
|
| .vector-menu-portal { | | .mainpage-buttons ul li:nth-child(3n-2) { |
| background-color:var(--tablecolour3);
| | grid-column: 1 / span 2; |
| box-shadow: inset 0 0 1.5vw 0.2vw #d4b57e;
| |
| border-color:var(--bordercolour);
| |
| border-style:solid;
| |
| border-width:0.15em;
| |
| border-radius:10px;
| |
| }
| |
| .vector-menu-heading {
| |
| box-shadow:none!important;
| |
| background-color:var(--tablecolour3);
| |
| border-radius:20px 20px 0px 0px;
| |
| border-color:var(--bordercolour);
| |
| border-style:solid;
| |
| border-width:0.15em;
| |
| } | | } |
|
| |
|
| /*Page that's selected on the side menu*/
| | .mainpage-buttons ul li:nth-child(3n-1) { |
| #p-tb-label.vector-menu-heading {
| | grid-column: 3 / span 2; |
| border-radius:10px;
| |
| padding:4px;
| |
| border-left:4px solid rgba(var(--orange), 0.85);
| |
| background:transparent;
| |
| background-image:linear-gradient(to right,rgba(var(--orange), 0.85),rgba(var(--orange), 0.85),transparent);
| |
| color:var(--whitetextandbg);
| |
| font-weight:bold;
| |
| } | | } |
|
| |
|
| #left-navigation {margin-left:12em;}
| | .mainpage-buttons ul li:nth-child(3n) { |
| #right-navigation {margin-right:5em;}
| | grid-column: 5 / span 2; |
| | |
| /*Welcome page/main page*/
| |
| | |
| .header-box { | |
| background-image:var(--background-image);
| |
| background-repeat:no-repeat;
| |
| background-clip:border-box;
| |
| background-position:0% 75%;
| |
| background-size:cover;
| |
| background-attachment: fixed;
| |
| color:var(--whitetextandbg);
| |
| font-size:150%;
| |
| text-shadow:0px 0px 15px black;
| |
| font-weight:bold;
| |
| font-family:var(--headerfont);
| |
| border-color:var(--bordercolour);
| |
| border-radius:15px;
| |
| border-style:groove;
| |
| border-width:3px;
| |
| box-shadow:none;
| |
| outline:1px solid var(--whitetextandbg);
| |
| outline-offset:-6px;
| |
| } | | } |
|
| |
|
| | | .mainpage-buttons ul li:nth-child(3n-1):last-child { |
| .mainpage-buttons ul li { | | grid-column: 4 / span 3; |
| background-color:var(--tableheaders);
| |
| box-shadow: inset -0.05vw -0.05vw 0.1vw 0.1vw #d4b57e;
| |
| border-color:var(--bordercolour);
| |
| border-radius:10px;
| |
| } | | } |
|
| |
|
| /*main body*/
| | .mainpage-buttons ul li:nth-child(3n-2):last-child { |
| | | grid-column: 1 / span 6; |
| #content.mw-body {
| |
| background-color:rgba(255, 234, 189, 0.97);
| |
| box-shadow: inset 0 0 10vw 1.5vw #d4b57e;
| |
| border-color:var(--bordercolour);
| |
| border-radius:10px;
| |
| border-style:solid;
| |
| border-width:0.15em;
| |
| margin-right:4%;
| |
| } | | } |
|
| |
|
| /*thumbnails*/
| | .mainpage-buttons ul li:nth-child(3n-2):nth-last-child(2) { |
| .toc, li.gallerybox div.thumb, div.thumbinner { | | grid-column: 1 / span 3; |
| background-color:rgba(42, 22, 15, 0.1);
| |
| border-color:var(--smallborders);
| |
| margin:0.2em;
| |
| border-radius:5px;
| |
| } | | } |
|
| |
|
| .toc {margin-top:1em;margin-bottom:1em;margin-left:0.1em;margin-right:0.1em;} | | .Icon-Text-Grid { |
| | | display: grid; |
| /*category links*/
| | grid-template-columns: 1fr 1fr 1fr 1fr; |
| #catlinks, #catlinks a, #footer-places-privacy, #footer-places-about, #footer-places-disclaimer, #footer-places-mobileview, #footer {
| |
| background-color:rgba(var(--orange), 0.85);
| |
| border-color:rgba(132, 79, 61, 0.85);
| |
| border-radius:20px;
| |
| color:var(--whitetextandbg);
| |
| padding:0.5em;
| |
| } | | } |
| #catlinks li, #catlinks a {border-color:var(--whitetextandbg);background:transparent;}
| |
|
| |
|
| /*Tables*/
| | .Icon-Grid-Cols-3 { |
| .wikitable { | | grid-template-columns: 1fr 1fr 1fr; |
| background-color:var(--whitetextandbg);
| |
| border: 2px solid;
| |
| border-color:var(--smallborders);
| |
| overflow:clip;
| |
| max-width:80%;
| |
| width:fit-content;
| |
| } | | } |
|
| |
|
| .wikitable tr > th {
| | /* Requested install on backend */ |
| background-color:var(--tableheaders);
| |
| font-weight:bold;
| |
| padding:5px;
| |
| text-align:center;
| |
| }
| |
| | |
| .wikitable tr:nth-child(odd) > td {
| |
| background:var(--tablecolour2);
| |
| color:var(--maintext);
| |
| }
| |
| | |
| /* Right-align Price each columns in all wikitable tables */ | |
| .wikitable td:nth-child(2),
| |
| .wikitable th:nth-child(2),
| |
| .wikitable td:nth-child(4),
| |
| .wikitable th:nth-child(4) {
| |
| text-align: right;
| |
| padding-right: 10px; /* optional: gives a little spacing from the border */
| |
| }
| |
| | |
| /*this is a hover highlight but it's turned off because it looked a bit odd
| |
| !.wikitable tr:hover, .wikitable tr:nth-child(odd):hover td {
| |
| background:rgba(250,220,160, 0.5);
| |
| }
| |
| */
| |
| | |
| .wikitable tr {
| |
| border-bottom:1px solid;
| |
| border-color:var(--smallborders);
| |
| }
| |
| | |
| .wikitable tr > td, .wikitable tr > td[rowspan] {
| |
| border-right:1px dotted;
| |
| border-color:var(--smallborders);
| |
| }
| |
| | |
| .wikitable tr td {padding:5px;padding-left:10px;padding-right:10px;}
| |
| | |
| /*Infoboxes*/
| |
| | |
| .infobox { | | .infobox { |
| background-color:var(--whitetextandbg);
| | width: 260px; |
| border: 2px solid;
| | float: right; |
| border-color:var(--smallborders);
| | margin: 10px; |
| overflow:clip;
| | clear: both; |
| box-shadow:none;
| | --margin-v: 10px; |
| border-bottom:5px solid var(--smallborders);
| | --margin-h: 10px; |
| border-right:5px solid var(--smallborders);
| |
| width:260px;
| |
| max-width:50%;
| |
| line-height:1.8;
| |
| font-size:0.95rem;
| |
| float:right;
| |
| margin-left:50px;
| |
| } | | } |
|
| |
| .infobox {color:var(--maintext)}
| |
| .infobox-title, .infobox-header, .infobox-label {color:var(--headertext);}
| |
|
| |
|
| .infobox-title { | | .infobox-title { |
| background-color:var(--tablecolour3);
| | font-size: 1.5em; |
| font-weight:bold;
| | font-weight: bold; |
| padding:3px;
| | text-align: center; |
| text-align:center;
| |
| font-family:var(--headerfont);
| |
| }
| |
| | |
| .infobox-header { | |
| background-color:var(--tableheaders);
| |
| font-weight:bold;
| |
| padding:3px;
| |
| text-align:center;
| |
| font-size:0.98rem;
| |
| }
| |
| | |
| .infobox-label {
| |
| background:var(--tablecolour2);
| |
| } | | } |
|
| |
|
| .infobox-title, .infobox-header { | | .infobox-caption { |
| border-top:1px solid var(--smallborders);
| | display: block; |
| border-bottom:1px solid var(--smallborders);
| | text-align: center; |
| } | | } |
|
| |
|
| .infobox-image { | | .infobox-header { |
| justify-content: center;
| | width: 100%; |
| display:flex;
| | text-align: center; |
| outline:1px solid var(--whitetextandbg);
| | font-size: 1.25em; |
| outline-offset:-3px;
| | font-weight: bold; |
| } | | } |
|
| |
|
| .infobox-row, .infobox-label {
| | .infobox-label { |
| text-align:center;}
| | display: flex; |
| | | width: 50%; |
| .infobox-data, .infobox-data-section, .infobox-row {font-weight:normal;}
| |
| .infobox-label, .infobox-header, .infobox-title {font-weight:bold;}
| |
| | |
| /*Editor stuff*/
| |
| .oo-ui-toolbar-bar, .oo-ui-toolbar-popups, oo-ui-tool-link, .oo-ui-widget-enabled, .oo-ui-window-content {
| |
| background-color:var(--whitetextandbg);
| |
| color:var(--maintext);
| |
| }
| |
| .oo-ui-widget-disabled {
| |
| background-color:#eaeaea;
| |
| color:#e3e3e3;
| |
| } | | } |
|
| |
|
| /*footer*/
| | .infobox-data-section { |
| #footer-places-about a, #footer-places-disclaimer a, #footer-places-mobileview a, #footer a, #footer li, #footer {
| | display: flex; |
| background-color:rgba(var(--orange), 0.85);
| | flex-direction: row; |
| border-color:rgba(132, 79, 61, 0.85);
| |
| border-radius:20px;
| |
| color:var(--whitetextandbg);
| |
| padding:0.15em;
| |
| margin-bottom:3px;
| |
| } | | } |
| #footer-places-about a, #footer-places-disclaimer a, #footer-places-mobileview a, #footer a, #footer {border-color:var(--whitetextandbg);background:transparent;}
| |
| #footer {margin-right:5em;}
| |
| #footer-poweredbyico, #footer-poweredbyico a, #footer-poweredbyico li, #footer-poweredbyico ul, #footer-poweredbyico img {background:none!important;margin-bottom:0.75em;}
| |
|
| |
|
| /* Reduces rounded corners from footer and lower menus */
| | .infobox-data { |
| #footer,
| | width: 50%; |
| #footer * ,
| |
| #catlinks,
| |
| #catlinks * {
| |
| border-radius: 4px !important;
| |
| } | | } |
|
| |
|
| /*these just add some space to the Recent changes page interface and adjust the reading area colour, the buttons are left unstyled intentionally*/
| | .infobox-label, .infobox-data { |
| .mw-rcfilters-ui-filterWrapperWidget { | | font-size: 0.75em; |
| padding:10px;
| | padding: calc(var(--margin-v) /2) calc(var(--margin-h)/2); |
| padding-left:20px;
| |
| padding-right:20px;
| |
| max-width:97.5%;
| |
| } | | } |
|
| |
|
| .mw-changeslist.mw-rcfilters-ui-changesListWrapperWidget { | | .infobox-data-section:nth-of-type(odd):last-child { |
| padding:10px;
| | width: 100%; |
| padding-left:20px;
| |
| padding-right:20px;
| |
| max-width:97.5%;
| |
| } | | } |
|
| |
|
| .mw-changeslist.mw-rcfilters-ui-changesListWrapperWidget, .mw-rcfilters-ui-filterWrapperWidget {background-color:rgba(255, 255, 243,0.5)!important;color:var(--maintext);} | | .data-rows-2 { |
| | | display: grid; |
| /*This allows you to spoiler tag stuff with a blur*/
| | grid-template-columns: 1fr 1fr; |
| .spoilercell {
| |
| filter: blur(6px);
| |
| -webkit-filter: blur(6px);
| |
| overflow:hidden;
| |
| } | | } |
|
| |
|
| .spoilercell:active { | | .data-rows-2 .infobox-header, |
| filter: blur(0px);
| | .data-rows-2 .infobox-data-section:nth-child(odd):last-child { |
| -webkit-filter: blur(0px);
| | grid-column: 1 / span 2; |
| } | | } |
|
| |
|
| /*resizes the visual editor window*/
| | .data-rows-2 .infobox-label, .data-rows-2 .infobox-data { |
| .oo-ui-textInputWidget-autosized { | | display: block; |
| resize: both !important;
| | text-align: center; |
| }
| | width: calc(100% - var(--margin-h)); |
| .oo-ui-window-frame { | |
| width: 45% !important;
| |
| height:50%!important;
| |
| min-width:480px;
| |
| }
| |
| /*fixes a problem with the popup widget*/
| |
| .oo-ui-popupWidget-anchored-top {
| |
| min-height: 300px;
| |
| } | | } |
|
| |
|
| .oo-ui-popupWidget-anchored-top > .oo-ui-popupWidget-content { | | .data-rows-2 .infobox-data-section { |
| min-height:300px;
| | display: block; |
| overflow:scroll;
| |
| } | | } |
|
| |
|
| .oo-ui-popupWidget-popup { | | .infobox-label { |
| min-height:300px;
| | font-weight: 600; |
| height:300px;
| |
| } | | } |
|
| |
| /*fin*/
| |