MediaWiki:Minerva.css

From Valence Wiki
Revision as of 17:24, 24 February 2025 by Star (talk | contribs)
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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* All CSS here will be loaded for users of the MinervaNeue skin */

body {
    background:  var(--league-black);
    color: var(--text-color);
}

body .content .mw-image-border .mw-file-element {
    border: 1px solid var(--border-color);
    border-radius: 2px;
}

dl {
	margin-left:0;
}

.mw-echo-ui-placeholderItemWidget {
    background-color: var(--league-wiki-blue);
}

/****************/
/*    Header    */
/****************/

.header-container.header-chrome {
	border-bottom: solid 2px;
	border-color: var(--league-med-gold);
	box-shadow: inset 0 -1px 3px rgba(0,0,0,0.08);
	background: var(--body-background-image) no-repeat;
	background-color: black;
	background-size: 600px;
	position: relative;
}

.search-box .search {
    background-color: var(--search-box);
    border-color: var(--search-box);
    color: var(--text-color) !important;
}

.search-box::before {
	filter: brightness(0) invert(1);
}

/*.cdx-button:enabled.cdx-button--weight-quiet, .cdx-button.cdx-button--fake-button--enabled.cdx-button--weight-quiet {
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}*/

.minerva-icon,
.mf-icon,
.mw-ui-icon-mf-expand {
    filter: brightness(0) invert(1);
}

.minerva-header .branding-box {
    opacity: 1;
}

.branding-box img {
	position: relative;
}

@media screen and (min-width: 720px) {
    .minerva-header .branding-box {
        min-width: 11em;
        width: auto;
    }
}

#language-selector {
    display: none;
}

.page-actions-menu__list-item .cdx-button {
    color: var(--text-color) !important;
}

.toggle-list__list--drop-down {
    background-color: var(--wikitable-bg);
}

.toggle-list__list--drop-down .toggle-list-item:hover {
    background: var(--wikitable-bg-lighter);
}

/****************/
/*    Footer    */
/****************/
.minerva-footer {
	background-color: var(--league-black) !important;
	border-top-color: var(--league-grey-1);
}

.minerva-footer a.last-modified-bar {
	color: var(--league-white) !important;
	background-color: var(--league-grey-2);
	border-bottom-color: var(--league-grey-1);
	border-radius: 0 !important;
}

.last-modified-bar a, .last-modified-bar a:visited, .last-modified-bar .last-modified-text-accent {
    color: var(--link-color) !important;
}

#mw-mf-diffview #mw-mf-userinfo {
    background: var(--body-light) !important;
    border-top-color: var(--body-border) !important;
}

.drawer {
	background: var(--body-light) !important;
	border-top-color: var(--body-border) !important;
}

/*******************/
/*    Main page    */
/*******************/
.grid-filtering {
	background-color: var(--search-box);
    color: var(--text-color);
}

select option {
    background-color: var(--search-box);
    color: var(--text-color);
}

/** Stretch table contents across full width
@media all and (max-width: 720px) {
    .content table {
         display: table;
    }
}
**/

/********************/
/* Game Nav         */
/********************/
div#game-nav {
    display: flex;
    justify-content: center;
}

/* This can be removed if the selection images are removed from Template:Game Navigation */
.game-nav-item-select {
    opacity: 0;
}

.game-nav-item a > img {
	filter: brightness(50%);
}

.game-nav-item-active a > img {
	filter: brightness(100%);
}

/********************/
/* Infoboxes        */
/********************/
@media screen and (min-width: 700px) {
	.multi-infobox {
		float: right;
		margin-left: 2em;
	}
	.multi-infobox > .infobox {
		float: right;
		clear: right;
		margin-left: 0;
	}
    .infobox {
        max-width: 270px;
        float: right;
		margin-left: 2em;
    }
    .infobox.type-champion-stats {
    	float: left;
    	width: calc(100% - 2em - 270px);
    	max-width: 400px;
    	margin-left: 0;
    }
}

/* h2 underline */
.content .mw-parser-output > h2,
.content .section-heading {
    border-bottom: 1px solid var(--section-border-color);
}


/********************/
/* Sidebar drawer   */
/********************/
#mw-mf-page-left {
    background-color: var(--body-secondary);
    color: var(--background-text-color);
}

#mw-mf-page-left .secondary-action {
    border-left-color: var(--body-mid);
}

#mw-mf-page-left ul .toggle-list-item {
    background-color: var(--body-main);
    border-color: var(--body-mid);
}

.toggle-list-item__label {
    color: var(--base-text-color);
}

/********************/
/* Popups and modals*/
/********************/
.overlay {
    background: var(--body-main);
}

.overlay-header-container,
.overlay-footer-container {
    background-color: var(--body-mid);
    border-color: transparent;
}

.overlay.search-overlay {
    background: var(--body-main);
}

.overlay.search-overlay .results,
.overlay.search-overlay .search-feedback {
    background-color: var(--body-light);
}

.overlay.search-overlay .search-content {
    border-color: var(--body-mid);
    background-color: var(--body-light);
}

.overlay .license {
    color: var(--base-text-color);
}

.overlay .panel {
    border-color: var(--sidebar);
}

.overlay .content-header {
    background-color: var(--body-light);
    border-color: transparent;
}

.overlay.overlay-loading {
    background: var(--ooui-window-background);
}

.overlay .overlay-content {
    background: var(--body-main);
    width: 100%;
}

.page-summary h2,
.page-summary h3 {
    color: var(--text-color);
}

.page-list li,
.topic-title-list li,
.site-link-list li {
    border-color: var(--body-mid);
}

#mw-mf-page-center {
	background-color: transparent;
}

.overlay-enabled .overlay:not(.editor-overlay),
.overlay-enabled #mw-mf-page-center {
    overflow-y: scroll;
}

.editor-overlay .wikitext-editor {
    color: var(--text-color);
}

.editor-overlay .overlay-header {
    outline-color: transparent;
}

.editor-overlay .summary-request {
    color: var(--text-color);
}

.editor-overlay .editor-switcher {
    border: none;
}

.page-list.side-list .list-thumb,.topic-title-list.side-list .list-thumb,.site-link-list.side-list .list-thumb {
    color: var(--text-color);
}

.mw-mf-user {
    color: var(--text-color);
}

/********************/
/* Preferences      */
/********************/
.mw-prefs-title {
    color: inherit;
}

.mw-prefs-description,
.oo-ui-window-body.mw-mobile-pref-dialog-body .mw-htmlform-field-HTMLInfoField {
    color: var(--byline-color);
}

.mw-mobile-prefsection.oo-ui-buttonElement {
    border-color: var(--sidebar);
}

.oo-ui-window-body.mw-mobile-pref-dialog-body .mw-prefs-fieldset-wrapper .oo-ui-fieldsetLayout-header,
.oo-ui-window-body.mw-mobile-pref-dialog-body [class^="mw-htmlform-field"] {
    border-color: var(--sidebar);
}

/********************/
/* Code page        */
/********************/
.mw-highlight pre {
    background-color: #222e45;
}

.mw-highlight pre .hll {
    background-color: #49483e;
}

.mw-highlight pre .c {
    color: #949eaa;
}

.mw-highlight pre .err {
    color: #960050;
}

.mw-highlight pre .k {
    color: #66d9ef;
}

.mw-highlight pre .l {
    color: #ae81ff;
}

.mw-highlight pre .n {
    color: #f8f8f2;
}

.mw-highlight pre .o {
    color: #f92672;
}

.mw-highlight pre .p {
    color: #f8f8f2;
}

.mw-highlight pre .ch {
    color: #949eaa;
}

.mw-highlight pre .cm {
    color: #949eaa;
}

.mw-highlight pre .cp {
    color: #949eaa;
}

.mw-highlight pre .cpf {
    color: #949eaa;
}

.mw-highlight pre .c1 {
    color: #949eaa;
}

.mw-highlight pre .cs {
    color: #949eaa;
}

.mw-highlight pre .gd {
    color: #f92672;
}

.mw-highlight pre .ge {
    font-style: italic;
}

.mw-highlight pre .gi {
    color: #a6e22e;
}

.mw-highlight pre .gs {
    font-weight: bold;
}

.mw-highlight pre .gu {
    color: #949eaa;
}

.mw-highlight pre .kc {
    color: #66d9ef;
}

.mw-highlight pre .kd {
    color: #66d9ef;
}

.mw-highlight pre .kn {
    color: #f92672;
}

.mw-highlight pre .kp {
    color: #66d9ef;
}

.mw-highlight pre .kr {
    color: #66d9ef;
}

.mw-highlight pre .kt {
    color: #66d9ef;
}

.mw-highlight pre .ld {
    color: #e6db74;
}

.mw-highlight pre .m {
    color: #ae81ff;
}

.mw-highlight pre .s {
    color: #e6db74;
}

.mw-highlight pre .na {
    color: #a6e22e;
}

.mw-highlight pre .nb {
    color: #f8f8f2;
}

.mw-highlight pre .nc {
    color: #a6e22e;
}

.mw-highlight pre .no {
    color: #66d9ef;
}

.mw-highlight pre .nd {
    color: #a6e22e;
}

.mw-highlight pre .ni {
    color: #f8f8f2;
}

.mw-highlight pre .ne {
    color: #a6e22e;
}

.mw-highlight pre .nf {
    color: #a6e22e;
}

.mw-highlight pre .nl {
    color: #f8f8f2;
}

.mw-highlight pre .nn {
    color: #f8f8f2;
}

.mw-highlight pre .nx {
    color: #a6e22e;
}

.mw-highlight pre .py {
    color: #f8f8f2;
}

.mw-highlight pre .nt {
    color: #f92672;
}

.mw-highlight pre .nv {
    color: #f8f8f2;
}

.mw-highlight pre .ow {
    color: #f92672;
}

.mw-highlight pre .w {
    color: #f8f8f2;
}

.mw-highlight pre .mb {
    color: #ae81ff;
}

.mw-highlight pre .mf {
    color: #ae81ff;
}

.mw-highlight pre .mh {
    color: #ae81ff;
}

.mw-highlight pre .mi {
    color: #ae81ff;
}

.mw-highlight pre .mo {
    color: #ae81ff;
}

.mw-highlight pre .sa {
    color: #e6db74;
}

.mw-highlight pre .sb {
    color: #e6db74;
}

.mw-highlight pre .sc {
    color: #e6db74;
}

.mw-highlight pre .dl {
    color: #e6db74;
}

.mw-highlight pre .sd {
    color: #e6db74;
}

.mw-highlight pre .s2 {
    color: #e6db74;
}

.mw-highlight pre .se {
    color: #ae81ff;
}

.mw-highlight pre .sh {
    color: #e6db74;
}

.mw-highlight pre .si {
    color: #e6db74;
}

.mw-highlight pre .sx {
    color: #e6db74;
}

.mw-highlight pre .sr {
    color: #e6db74;
}

.mw-highlight pre .s1 {
    color: #e6db74;
}

.mw-highlight pre .ss {
    color: #e6db74;
}

.mw-highlight pre .bp {
    color: #f8f8f2;
}

.mw-highlight pre .fm {
    color: #a6e22e;
}

.mw-highlight pre .vc {
    color: #f8f8f2;
}

.mw-highlight pre .vg {
    color: #f8f8f2;
}

.mw-highlight pre .vi {
    color: #f8f8f2;
}

.mw-highlight pre .vm {
    color: #f8f8f2;
}

.mw-highlight pre .il {
    color: #ae81ff;
}

/********************/
/* Contributions    */
/********************/
ul.mw-contributions-list li,
ul.special li {
    border-color: var(--sidebar);
}

.content .mw-index-pager-list-header {
    background-color: var(--body-mid);
    color: inherit;
    font-family: inherit;
}

/* Hide image for Template:Portal/News/Row */
.portal-news-image {
	display: none;
}
.portal-news-row {
	grid-template-columns: initial;
}

/* Editor stuff */

.ve-mobile-fakeToolbar {
    border: none;
}

.ve-mobile-fakeToolbar-container {
    background: var(--body-main);
    border: none;
}

.ve-mobile-fakeToolbar .mw-ui-icon-mf-spinner {
    border-color: transparent;
}

.ve-ui-targetToolbar-mobile .oo-ui-toolbar-tools > .ve-ui-toolbar-group-back {
    border-color: transparent;
}

.ve-ui-mobileContext {
    background-color: var(--body-light);
    border-color: var(--body-light);
}

.ve-ui-mobileContext .ve-ui-linearContextItem-body-action-wrapper {
    border-color: var(--body-border);
}

.ve-ui-linearContextItem-foot:not(:empty) {
    border-color: var(--body-border);
}

.ve-ui-mwSaveDialog-options {
    backgroubd-color: var(--body-light);
    border-color: var(--body-mid);
}

/* Icon List */
.icon_list {
    white-space:nowrap;
}

/* Utility classes */
.poc-display-none {
    display: none;
}

/* Tabs */
.minerva__tab.selected {
	border-color: var(--league-wheat-gold) !important;
}

.minerva__tab.selected .minerva__tab-text {
	color: var(--league-wheat-gold);
	font-weight: 700;
}

.minerva__tab-container .minerva__tab .minerva__tab-text {
	color: white;
}