MediaWiki:Vector.css: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
interwiki: moved image 2px up, widened box 1px left and 1px right |
replaced mask with clip-path per Welp's suggestion |
||
Line 609: | Line 609: | ||
--p3: 0; |
--p3: 0; |
||
--p4: 1px; |
--p4: 1px; |
||
mask: linear-gradient(black var(--p4), white var(--p4)) luminance add, linear-gradient(to right, black var( |
/*mask: linear-gradient(black var(--p4), white var(--p4)) luminance add, linear-gradient(to right, black var( |
||
--p1), white var(--p1), white var(--p2), black var(--p2), black var(--p3), white var(--p3)) luminance; |
--p1), white var(--p1), white var(--p2), black var(--p2), black var(--p3), white var(--p3)) luminance;*/ |
||
clip-path: polygon(0 var(--p4),var(--p1) var(--p4), var(--p1) 0, var(--p2) 0, var(--p2) var(--p4), var(--p3) var(--p4), var(--p3) 0, 100% var(--p4), 100% 100%, 0% 100%); |
|||
} |
} |
Latest revision as of 16:17, 6 July 2024
/* CSS placed here will affect users of the Vector skin */
/* This skin is named "Strawberry", after its extensive use of strawberry pink bordering on purple. Also, Celeste reference. */
/* THIS PAGE IS (UNIQUELY TO THIS WIKI) UNDER A CC BY-NC-SA 3.0 LICENSE (instead of 4.0). */
/* Body Styling */
body {
background: #0A0523 url("https://static.miraheze.org/celestewiki/2/24/Summit-ch7-complete-100kb.jpg") no-repeat fixed center center / cover;
}
#mw-page-base {
background:none;
}
.mw-body {
border: 1px solid #F7A7D9;
margin-right: 15px;
background-color: rgba(248, 209, 255, 0.80);
min-height:500px;
margin-bottom: 60px;
}
#footer {
background: rgba(0, 0, 0, 0.67) none repeat scroll 0% 0%;
width: 100%;
padding: 0px !important;
margin-top: 20px !important;
bottom: 0px !important;
margin-left: auto !important;
margin-right: auto !important;
color: #C2C8CF;
}
#footer a {
color:white;
}
#footer ul {
padding-left: 190px;
padding-right: 15px;
}
#footer ul li {
color:#C2C8CF;
}
.catlinks {
border: 1px solid #84AEEC;
background-color: rgba(199, 242, 254, 0.53);
}
#toc, .toc {
background-color: rgba(255,255,255,0.58);
}
.mw-body h1, .mw-body h2 {
font-family: 'Open Sans', sans-serif;
}
.thumbinner {
border: 1px solid #8DCAF0;
background-color: rgba(255,255,255,0.58);
}
/* Social Media Links */
div.sociallinks {
float: right;
padding-top: 9px;
}
.sociallinks img {
-webkit-filter: opacity(25%) brightness(0); /* Chrome, Safari, Opera */
filter: opacity(25%) brightness(0);
}
.sociallinks img:hover {
-webkit-filter: opacity(100%) brightness(100%); /* Chrome, Safari, Opera */
filter: opacity(100%) brightness(100%);
}
.page-Celeste_Wiki div.sociallinks {
display:none;
}
/* Mediawiki page tabs */
#mw-head .vectorMenu h3, .vectorTabs ul, .vectorTabs li.selected, .vectorTabs ul li, .vectorTabs, .vectorTabs span {
background:none;
}
.vectorTabs li a {
color: #B7D2FF;
}
.vectorTabs li.new a, .vectorTabs li.new a:visited, .vectorMenu h3 span {
color: #99BFFF;
}
.vectorTabs li.selected a, .vectorTabs li.selected a:visited {
color: #C6DBFF;
}
.vectorMenu .menu {
background-color: rgba(30, 17, 102, 0.67);
}
.vectorMenu .menu a {
color: #C6DBFF;
}
#p-personal a, #p-personal a.new, p-personal a:visited {
color: #99BFFF;
}
#p-personal a.hover, p-personal a:focus {
color: #C6DBFF;
text-decoration:none;
}
/* Account Creation Page */
.mw-createacct-benefits-list {
padding: 10px 10px 10px 60px;
border-radius: 12px;
background-color: rgba(255,255,255,0.58);
border: 1px solid #8DCAF0;
}
.mw-number-text.icon-edits, .mw-number-text.icon-pages, .mw-number-text.icon-contributors {
filter: brightness(0.7);
}
/* Preferences Pages*/
#preferences {
background-color: rgba(248,208,255,0.67);
}
#preftoc li.selected a {
background: rgba(248,208,255,0.67);
}
/* Non-TOC headers */
.notochh1 {
font-size: 188%;
border-bottom: 1px solid #AAA;
padding-bottom: 0.17em;
margin-bottom: 0.6em;
}
/* Captcha Styling */
div.editOptions label, div.editOptions #wpCaptchaWord.mw-ui-input {
display: inline !important;
}
#editform label, #editform #wpCaptchaWord.mw-ui-input {
display: none;
}
/* Graphical borders */
#menuborder {
border: 1px solid #F7A7D9;
padding: 12px;
background-color: rgba(249,208,255,0.77);
}
#mw-panel {
border-right: 1px solid #F7A7D9;
border-bottom: 1px solid #F7A7D9;
left: -12px;
background-color: rgba(249,208,255,0.77);
padding-bottom: 15px;
/* border-top-right-radius: 8px; */
border-bottom-right-radius: 8px;
}
#infoboxborder {
border: 1px solid #F7A7D9;
background-color: rgba(249,208,255,0.77);
float:right;
border-radius: 12px;
margin-left: 15px;
margin-bottom:15px;
min-width: 300px;
}
/* Navboxstyling */
#navbox {
margin:auto;
width:80%;
border: 1px solid rgb(132, 174, 236);
padding: 5px;
border-radius:11px;
clear: both;
margin-top: 15px;
}
/* Table Styling */
table.wikitable {
background-color: transparent;
border-collapse: separate;
border: none;
}
table.wikitable > tr > th, table.wikitable > tr > td, table.wikitable > * > tr > th, table.wikitable > * > tr > td {
border: 1px solid #CE8BF0;
padding: 0.2em;
background-color: rgba(255, 255, 255, 0.58);
}
table.wikitable > tr > th, table.wikitable > * > tr > th {
background-color: #C133BD;
text-align: center;
border-color: #650048;
box-shadow: 0px 1px rgba(0, 0, 0, 0.3);
color: white;
text-shadow: 0px 2px #00321f;
}
table.wikitable > tr > th a, table.wikitable > * > tr > th a {
color:white;
}
#cellstretch {
width:100%;
}
#cellcenter {
text-align:center;
}
#roundedborder {
border:1px solid rgb(132,174,236);
padding:5px;
border-radius:11px;
margin-top:15px;
}
#roundedborderfull {
border:1px solid rgb(132,174,236);
padding:5px;
border-radius:11px;
margin-top:15px;
width:100%;
}
/* Infobox Styling */
.infobox {
border: 1px solid #a2a9b1;
border-spacing: 3px;
background-color: #f8f9fa;
color: black;
/* @noflip */
margin: 0.5em 0 0.5em 1em;
padding: 0.2em;
/* @noflip */
float: right;
/* @noflip */
clear: right;
font-size: 88%;
line-height: 1.5em;
}
.infobox caption {
font-size: 125%;
font-weight: bold;
padding: 0.2em;
text-align: center;
}
.infobox td,
.infobox th {
vertical-align: top;
/* @noflip */
text-align: left;
}
.infobox.bordered {
border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
border: 1px solid #a2a9b1;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
border: 0;
}
.infobox.sisterproject {
width: 20em;
font-size: 90%;
}
.infobox.standard-talk {
border: 1px solid #c0c090;
background-color: #f8eaba;
}
.infobox.standard-talk.bordered td,
.infobox.standard-talk.bordered th {
border: 1px solid #c0c090;
}
/* styles for bordered infobox with merged rows */
.infobox.bordered .mergedtoprow td,
.infobox.bordered .mergedtoprow th {
border: 0;
border-top: 1px solid #a2a9b1;
/* @noflip */
border-right: 1px solid #a2a9b1;
}
.infobox.bordered .mergedrow td,
.infobox.bordered .mergedrow th {
border: 0;
/* @noflip */
border-right: 1px solid #a2a9b1;
}
/* Styles for geography infoboxes, eg countries,
country subdivisions, cities, etc. */
.infobox.geography {
border-collapse: collapse;
line-height: 1.2em;
font-size: 90%;
}
.infobox.geography td,
.infobox.geography th {
border-top: 1px solid #a2a9b1;
padding: 0.4em 0.6em 0.4em 0.6em;
}
.infobox.geography .mergedtoprow td,
.infobox.geography .mergedtoprow th {
border-top: 1px solid #a2a9b1;
padding: 0.4em 0.6em 0.2em 0.6em;
}
.infobox.geography .mergedrow td,
.infobox.geography .mergedrow th {
border: 0;
padding: 0 0.6em 0.2em 0.6em;
}
.infobox.geography .mergedbottomrow td,
.infobox.geography .mergedbottomrow th {
border-top: 0;
border-bottom: 1px solid #a2a9b1;
padding: 0 0.6em 0.4em 0.6em;
}
.infobox.geography .maptable td,
.infobox.geography .maptable th {
border: 0;
padding: 0;
}
/* Location Infobox */
.location {
max-width:400px;
}
#locationimg img {
max-width:90%;
height:auto;
}
/* Talk Page Headers */
#talkheadertitle {
background-color: #C133BD;
text-align: center;
color: white;
text-shadow: 0px 2px #00321f;
font-size: 120%;
}
#talkheaderbody {
width: 80%;
margin: 0px auto 1em;
border: 1px solid rgb(170, 170, 170);
background-color: rgba(255, 255, 255, 0.58);
color: rgb(0, 0, 0);
}
/* Crop Page Headers */
div.cropheader h3 {
margin-top:0px;
padding-top:0px;
}
/* Alert Templates */
.alert {
border: 3px solid rgb(68, 74, 73);
border-radius: 0.5em;
margin-left: auto;
margin-right: auto;
font-size: 14px;
padding: 5px;
margin-bottom: 15px;
height: 80px;
width: 50%;
max-width:700px;
}
.alert span.header {
font-size:22px;
}
.alert th {
width: 100px;
}
.alert th img {
text-align: center;
}
#stub {
border-color:green;
background-color: rgba(0, 128, 0, 0.05);
}
#construction {
border-color:#97a50c;
background-color: rgba(151, 165, 12, 0.05);
}
/* Responsive styling */
@media screen and (max-width: 1600px) {
#mainbannerleft {
display: none;
}
#mainbannermiddle {
width: 60%;
}
}
@media screen and (max-width: 1400px) {
#menucontent {
font-size:12px;
}
}
@media screen and (max-width: 1150px) {
th#sidebar, td#sidebar, td#mainbannerright {
display: none;
}
}
@media screen and (max-width: 740px) {
.responsiveadtop {
margin-top:25px !important;
}
}
@media screen and (max-width: 700px) {
.mw-body, #left-navigation {
margin-left: 8px;
margin-right: 8px;
}
div#mw-panel {
display: none;
}
div#footer ul {
padding-left: 15px;
}
}
@media screen and (max-width: 430px) {
.responsiveadtop {
margin-top:65px !important;
}
}
/* History Section in articles */
table.historysection {
line-height: 0.8;
}
/* Main Page Nav Menu Styling */
#menucontent {
padding-right:5px;
padding-left: 5px;
vertical-align:top;
}
.doublewidthmenu {
width:100%;
}
.doublewidthmenu td {
width:50%;
}
table.menulocations {
border:1px solid #8dcaf0;
border-radius:11px;
width:100%;
box-shadow: 0px 1px rgba(0,0,0,0.3);
margin-bottom:3px;
}
.mainmenuwrapper {
background-color:rgba(209,248,255,0.67);
float:left;
width: 100%;
}
.mainmenusection {
min-height: 379px;
vertical-align: top;
}
.mainmenusection table.wikitable {
margin:0px
}
#singlemainmenu {
width: 25%;
float:left;
}
#doublemainmenu {
width: 50%;
float:left;
}
#doubleinnermainmenu {
width: 50%;
vertical-align:top;
}
#mainmenuselections {
width:100%;
}
table#mainmenuselections td {
background-color: transparent;
border: none;
}
@media screen and (max-width: 880px) {
#singlemainmenu {
width: 100%;
clear:both;
min-height: auto;
}
#doublemainmenu {
width: 100%;
clear:both;
min-height: auto;
}
}
.noautonum .tocnumber { display: none; }
.twitter-timeline { height: 1000px !important; }
/* Class for pixel art, to retain pixelated appearance when zoomed */
.pixels {
-ms-interpolation-mode: nearest-neighbor; /* IE */
image-rendering: -webkit-optimize-contrast; /* UC Browser */
image-rendering: -webkit-crisp-edges; /* old Safari */
image-rendering: -moz-crisp-edges; /* Firefox */
image-rendering: pixelated;
}
/* Invert the notification icons */
.mw-echo-notifications-badge {
filter: invert( 1 )
hue-rotate( 180deg )
}
/* added 17-02-2024 */
/* Body-mounted Nav Menus */
.vector-menu-tabs li{
background-image: linear-gradient(to top,rgba(247,167,217,1) 1px,rgba(192,131,204,1) 1px,80%,rgba(248,209,255,0.0) 100%);
}
.vector-menu-tabs .selected {
background: linear-gradient(to top, rgba(248,209,255,0.80), 80%, rgba(255,255,255,0.0));
}
.vector-menu-tabs, .vector-menu-tabs a, #mw-head .vector-menu-dropdown .vector-menu-heading {
background-image: linear-gradient(to bottom,rgba(167,215,249,0) 0,#F7A7D9 100%);
}
.vector-menu-dropdown {
background: linear-gradient(to top,rgba(247,167,217,1) 1px,rgba(192,131,204,0.75) 1px,80%,rgba(248,209,255,0.0) 100%);
}
.vector-menu-dropdown .vector-menu-heading {
color: #2e3133;
}
.vector-menu-dropdown .vector-menu-content {
background-color: rgba(248,209,255,1);
}
/* Dynamic top border to account for transparency - JS linked */
.mw-body {
margin-top: calc(-1 * var(--p4));
--p1: 100%;
--p2: 0;
--p3: 0;
--p4: 1px;
/*mask: linear-gradient(black var(--p4), white var(--p4)) luminance add, linear-gradient(to right, black var(
--p1), white var(--p1), white var(--p2), black var(--p2), black var(--p3), white var(--p3)) luminance;*/
clip-path: polygon(0 var(--p4),var(--p1) var(--p4), var(--p1) 0, var(--p2) 0, var(--p2) var(--p4), var(--p3) var(--p4), var(--p3) 0, 100% var(--p4), 100% 100%, 0% 100%);
}
/* User navbar */
/* #p-personal {
background: rgba(192,131,204,0.80);
border-bottom-left-radius: 5px;
padding-bottom: 4px;
padding-top: 2px;
padding-right: 15px;
height: 22px;
top: 0;
right: 0;
border: solid rgba(192,131,204,1);
border-width: 0 0 1px 1px;
}
#p-personal ul {
padding-left: 1em;
}
#p-personal a, #p-personal a.new, p-personal a:visited {
color: #0645ad;
} */
/* Stretch footer background over subelements */
#footer {
overflow: hidden;
}
/* Strawberry watch icon */
.vector-menu-tabs .mw-watchlink.icon a:before{
background-size: contain;
height: 19.5px;
width: 24px;
top: 12px;
left: 2px;
}
.vector-menu-tabs #ca-watch.icon a:hover:before,
.vector-menu-tabs #ca-unwatch.icon a:hover:before {
background-image: url(https://static.miraheze.org/celestewiki/a/a1/Strawberry_ingame.png) !important;
filter: sepia(1);
}
.vector-menu-tabs #ca-watch.icon a:before {
background-image: url(https://static.miraheze.org/celestewiki/2/20/Strawberry_collected.png) !important;
}
.vector-menu-tabs #ca-unwatch.icon a:before {
background-image: url(https://static.miraheze.org/celestewiki/a/a1/Strawberry_ingame.png) !important;
}
#mw-indicator-interwiki {
float: right;
padding: 0 3px;
border: 2px solid rgb(192, 131, 204);
border-radius: 7px;
font-family: "Consolas", sans-serif;
font-size: 0.83em;
letter-spacing: -0.5px;
background-color: rgba(192, 131, 204, 0.5);
}
#mw-indicator-interwiki img {
border-radius: 25%;
margin-right: -3px;
margin-top: -2px;
}