MediaWiki:Citizen.css: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
 
(22 intermediate revisions by 2 users not shown)
Line 13: Line 13:
--background-color-dp-16: #393c3f;
--background-color-dp-16: #393c3f;
--background-color-dp-24: #25282b;
--background-color-dp-24: #25282b;
--background-color-overlay: rgba(9, 10, 12, 0.95);
--background-color-overlay: rgba(9, 10, 12, 0.88);
--background-color-overlay--lighter: rgba(9, 10, 12, 0.6);
--background-color-overlay--lighter: rgba(9, 10, 12, 0.6);
--background-color-framed--active: #171a1d;
--background-color-framed--active: #171a1d;
--background-color-framed--hover: #292d31;
--background-color-framed--hover: #292d31;
--background-color-framed: #222629;
--background-color-framed: #222629;
  --background-color-primary--hover: #2a4b8d;
  --background-color-primary--active: #26437f;
   
--color-link: #5b8ad6;
--color-link: #5b8ad6;
--color-primary: #3366cc;
  --color-primary--hover: #5b84d6;
  --color-primary--active: #2a4b8d;
  --color-destructive: #dd3333;
  --color-destructive--hover: #e35b5b;
  --color-destructive--active: #b32424;
--color-surface-0: var(--background-color-overlay);
--color-surface-1: var(--background-color-dp-08);
--color-surface-2: var(--background-color-framed);
--color-surface-2--hover: var(--background-color-framed--hover);
  --color-surface-2--active: var(--background-color-framed--active);
}
}


html {
html {
background: linear-gradient(0, var(--background-color-overlay), var(--background-color-overlay)), url(https://minecraft.rtgame.co.uk/assets/images/bg.jpg);
background: linear-gradient(0, var(--background-color-overlay), var(--background-color-overlay)), url(https://www.rtgame.co.uk/assets/images/bg.jpg);
background-position: center;
background-position: center;
background-size: cover;
background-size: cover;
Line 31: Line 46:
body {
body {
background: none;
background: none;
}
.skin-citizen-dark a {
    --color-link: #5b8ad6;
    --color-link--hover: #eaf3ff;
    --color-link--active: #2a4b8d;
}
.citizen-body, .mw-body-content {
    max-width: var(--width-layout);
    margin-left: auto;
    margin-right: auto;
}
}


Line 39: Line 66:


.mw-footer {
.mw-footer {
background-color: var(--background-color-dp-00);
background-color: #171a1d;
margin-top: calc(var(--padding-page) * 2);
}
}


#footer-bottom {
#footer-bottom {
background-color: #111416;
background-color: #111416;
}
#footer-info ul {
flex-direction: column;
}
#footer-info li {
margin: 5px 0;
}
}


Line 72: Line 108:
}
}


/* Notifications dropdown */
/* Buttons */
.skin-citizen-dark .mw-echo-ui-notificationItemWidget:hover {
.mw-ui-button.mw-ui-progressive:disabled,
     background-color: var(--background-color-dp-12);
.mw-ui-button.mw-ui-progressive:disabled:hover,
.mw-ui-button.mw-ui-progressive:disabled:active {
     background-color: var(--background-color-framed--active);
    color: var(--color-base--subtle);
    cursor: not-allowed;
    border: var(--border-color-input);
}
}


.skin-citizen-dark .mw-echo-ui-notificationItemWidget {
/* Visual editor fixes */
     background-color: var(--background-color-dp-24);
.ve-ce-linkAnnotation.ve-ce-annotation-active {
     color: var(--color-link--active) !important;
}
}


/* Universal Language Selector */
.ve-ui-mwParameterResultWidget.oo-ui-optionWidget-highlighted,
#languagesettings-settings-panel {
.ve-ui-mwMoreParametersResultWidget.oo-ui-optionWidget-highlighted {
  color: var(--color-base);
    background-color: var(--background-color-quiet--hover);
    color: var(--color-base--emphasized);
}
}


.uls-menu {
.ve-ui-mwParameterResultWidget.oo-ui-optionWidget-highlighted .ve-ui-mwParameterResultWidget-label {
background-color: var(--background-color-dp-08);
}
 
#languagesettings-settings-panel {
background-color: var(--background-color-dp-24);
}
 
.uls-language-settings-close-block {
background-color: transparent;
}
 
.language-settings-buttons {
border-color: var(--border-color-base);
}
 
.languagesettings-menu h1,
#languagesettings-settings-panel h3,
#languagesettings-settings-panel h4 {
color: var(--color-base--emphasized);
color: var(--color-base--emphasized);
}
}


.uls-ui-languages p, .checkbox {
.ve-ui-mwParameterResultWidget.oo-ui-optionWidget-highlighted  .ve-ui-mwParameterResultWidget-description {
color: var(--color-base);
color: var(--color-base);
}
}


.languagesettings-menu .menu-section {
/* Fix codemirror link contrast */
color: inherit;
.cm-mw-link-pagename, .cm-mw-link-ground, .cm-mw-extlink {
}
color: var(--color-link--hover);
 
.languagesettings-menu .menu-section .settings-text {
    color: var(--color-base);
}
 
.languagesettings-menu .menu-section.active {
color: var(--color-base--emphasized);
background-color: var(--background-color-primary--active);
}
 
.languagesettings-menu .menu-section {
color: var(--color-base--emphasized);
}
 
.languagesettings-menu .menu-section:hover {
color: var(--color-base--emphasized);
background-color: var(--background-color-primary--hover);
}
 
.languagesettings-menu .menu-section:hover .settings-text {
color: var(--color-base);
}
 
.ext-uls-sub-panel {
border-color: var(--border-color-base);
}
 
.checkbox strong {
color: var(--color-base--emphasized);
}
 
.uls-input-settings .uls-input-settings-inputmethods-list {
background: var(--background-color-dp-00);
}
 
.skin-citizen-dark #uls-settings-block {
filter: none;
}
 
.uls-input-settings-disable-info, .uls-input-settings-no-inputmethods {
color: var(--color-base--subtle);
}
 
.skin-citizen-dark .mw-echo-ui-placeholderItemWidget {
    background-color: var(--background-color-dp-24);
}
 
.uls-font-label {
    color: var(--color-base);
}
 
.uls-font-label strong {
    color: var(--color-base--emphasized);
}
 
.uls-font-item {
    border-bottom: none;
    background: none;
}
}


#p-lang .uls-settings-trigger {
/* Fix visual diff contrast */
    margin-top: 15px;
[data-diff-action="remove"] {
    margin-right: 10px;
background: var(--background-color-destructive) !important;
border-color: var(--color-destructive) !important;
color: var(--color-base--emphasized) !important;
font-weight: bold;
box-shadow: none;
}
}


/* Restyle hacky personal tools uls button.
[data-diff-action="insert"] {
Remove if citizen ever fixes the uls button never appearing in personal menu */
background: var(--background-color-success) !important;
#pt-uls2 .uls-trigger {
border-color: var(--color-success) !important;
flex-direction: row-reverse;
color: var(--color-base--emphasized) !important;
    padding-top: 10px !important;
font-weight: bold;
box-shadow: none;
}
}


#pt-uls2 .uls-trigger:before {
.oo-ui-tool.oo-ui-widget-enabled > .oo-ui-tool-link:active,
    position: relative;
.oo-ui-tool.oo-ui-widget-enabled > .oo-ui-tool-link:active:focus,
    width: 18px;
.oo-ui-tool.oo-ui-widget-enabled.oo-ui-tool-active > .oo-ui-tool-link,
    height: 18px;
.oo-ui-tool.oo-ui-widget-enabled.oo-ui-popupToolGroup-active > .oo-ui-tool-link,
    flex-shrink: 0;
.oo-ui-popupToolGroup-tools .oo-ui-tool-active.oo-ui-widget-enabled .oo-ui-tool-link .oo-ui-tool-title,
    align-self: center;
.oo-ui-popupToolGroup.oo-ui-popupToolGroup-active > .oo-ui-popupToolGroup-handle:hover,
    background-position: center;
.oo-ui-popupToolGroup.oo-ui-popupToolGroup-active > .oo-ui-popupToolGroup-handle,
    background-repeat: no-repeat;
.oo-ui-outlineOptionWidget.oo-ui-optionWidget-selected,
    content: '';
.oo-ui-outlineOptionWidget.oo-ui-optionWidget-pressed,
    display: block;
.oo-ui-menuOptionWidget.oo-ui-optionWidget-selected.oo-ui-menuOptionWidget.oo-ui-optionWidget-highlighted,
    padding: 0;
.oo-ui-menuOptionWidget.oo-ui-optionWidget-pressed.oo-ui-menuOptionWidget.oo-ui-optionWidget-highlighted {
    margin-left: 15px;
  color: var(--color-link--hover);
    background-size: contain;
    opacity: var(--opacity-icon-base);
    transition: opacity 200ms ease;
    background-image: linear-gradient(transparent,transparent),url(/extensions/UniversalLanguageSelector/lib/jquery.uls/images/language.svg?80b0b);
}
}


#pt-uls2 .uls-trigger:after {
/* Fix ugly box shadow on file pages */
    content: none !important
.fullImageLink > a > img {
box-shadow: none;
}
}


.skin-citizen-dark #pt-uls2 a.uls-trigger:before {
#siteNotice {
     filter: invert(1);
    max-width: var(--width-layout);
    margin-left: auto;
     margin-right: auto;
}
}


.uls-trigger {
.toc, .toccolours {
background-image: none;
    background-color: transparent !important;
    border: none !important;
}
}


/* Fix uls font selection */
.toc .toctitle {
html, body {
display: none;
    font-family: 'Roboto', sans-serif;
}
}

Latest revision as of 19:32, 21 February 2024

:root {
	--background-color-overlay: rgba(255,255,255,0.92)
}

:root.skin-citizen-dark {
	--background-color-dp-00: #171a1d;
	--background-color-dp-01: #222629;
	--background-color-dp-03: #292d31;
	--background-color-dp-04: #25282b;
	--background-color-dp-06: #292c2e;
	--background-color-dp-08: #25282b;
	--background-color-dp-12: #35393c;
	--background-color-dp-16: #393c3f;
	--background-color-dp-24: #25282b;
	--background-color-overlay: rgba(9, 10, 12, 0.88);
	--background-color-overlay--lighter: rgba(9, 10, 12, 0.6);
	--background-color-framed--active: #171a1d;
	--background-color-framed--hover: #292d31;
	--background-color-framed: #222629;
   	--background-color-primary--hover: #2a4b8d;
   	--background-color-primary--active: #26437f;
    
	--color-link: #5b8ad6;
	--color-primary: #3366cc;
   	--color-primary--hover: #5b84d6;
   	--color-primary--active: #2a4b8d;
  	--color-destructive: #dd3333;
   	--color-destructive--hover: #e35b5b;
   	--color-destructive--active: #b32424;
	
	--color-surface-0: var(--background-color-overlay);
	--color-surface-1: var(--background-color-dp-08);
	--color-surface-2: var(--background-color-framed);
	--color-surface-2--hover: var(--background-color-framed--hover);
   	--color-surface-2--active: var(--background-color-framed--active);
}

html {
	background: linear-gradient(0, var(--background-color-overlay), var(--background-color-overlay)), url(https://www.rtgame.co.uk/assets/images/bg.jpg);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	background-attachment: fixed;
}

body {
	background: none;
}

.skin-citizen-dark a {
    	--color-link: #5b8ad6;
    	--color-link--hover: #eaf3ff;
    	--color-link--active: #2a4b8d;
}

.citizen-body, .mw-body-content {
    max-width: var(--width-layout);
    margin-left: auto;
    margin-right: auto;
}

/* Footer colours */
.last-modified-bar {
    background: #1f2428;
}

.mw-footer {
	background-color: #171a1d;
	margin-top: calc(var(--padding-page) * 2);
}

#footer-bottom {
	background-color: #111416;
}

#footer-info ul {
	flex-direction: column;
}

#footer-info li {
	margin: 5px 0;
}

/* Preferences page */
.mw-prefs-tabs-wrapper.oo-ui-panelLayout-framed, .mw-prefs-tabs > .oo-ui-menuLayout-content > .oo-ui-indexLayout-stackLayout > .oo-ui-tabPanelLayout {
    background-color: var(--background-color-framed--active);
}

/* Fix popup background */
.mwe-popups .mwe-popups-container {
	background-color: transparent;
}

/* Fix multimedia viewer attribution warning */
.mw-mmv-download-dialog .mw-mmv-dialog-warning {
    padding: 20px 20px 10px;
}

.mw-mmv-dialog .mw-mmv-dialog-warning {
    background-color: transparent;
    color: var(--color-warning);
}

/* Fix white recent changes filter dropdown footer */
.mw-rcfilters-ui-menuSelectWidget-footer {
    background-color: var(--background-color-dp-16);
    border-top: none;
}

/* Buttons */
.mw-ui-button.mw-ui-progressive:disabled,
.mw-ui-button.mw-ui-progressive:disabled:hover,
.mw-ui-button.mw-ui-progressive:disabled:active {
    background-color: var(--background-color-framed--active);
    color: var(--color-base--subtle);
    cursor: not-allowed;
    border: var(--border-color-input);
}

/* Visual editor fixes */
.ve-ce-linkAnnotation.ve-ce-annotation-active {
    color: var(--color-link--active) !important;
}

.ve-ui-mwParameterResultWidget.oo-ui-optionWidget-highlighted,
.ve-ui-mwMoreParametersResultWidget.oo-ui-optionWidget-highlighted {
    background-color: var(--background-color-quiet--hover);
    color: var(--color-base--emphasized);
}

.ve-ui-mwParameterResultWidget.oo-ui-optionWidget-highlighted .ve-ui-mwParameterResultWidget-label {
	color: var(--color-base--emphasized);
}

.ve-ui-mwParameterResultWidget.oo-ui-optionWidget-highlighted  .ve-ui-mwParameterResultWidget-description {
	color: var(--color-base);
}

/* Fix codemirror link contrast */
.cm-mw-link-pagename, .cm-mw-link-ground, .cm-mw-extlink {
	color: var(--color-link--hover);
}

/* Fix visual diff contrast */
[data-diff-action="remove"] {
	background: var(--background-color-destructive) !important;
	border-color: var(--color-destructive) !important;
	color: var(--color-base--emphasized) !important;
	font-weight: bold;
	box-shadow: none;
}

[data-diff-action="insert"] {
	background: var(--background-color-success) !important;
	border-color: var(--color-success) !important;
	color: var(--color-base--emphasized) !important;
	font-weight: bold;
	box-shadow: none;
}

.oo-ui-tool.oo-ui-widget-enabled > .oo-ui-tool-link:active,
.oo-ui-tool.oo-ui-widget-enabled > .oo-ui-tool-link:active:focus,
.oo-ui-tool.oo-ui-widget-enabled.oo-ui-tool-active > .oo-ui-tool-link,
.oo-ui-tool.oo-ui-widget-enabled.oo-ui-popupToolGroup-active > .oo-ui-tool-link,
.oo-ui-popupToolGroup-tools .oo-ui-tool-active.oo-ui-widget-enabled .oo-ui-tool-link .oo-ui-tool-title,
.oo-ui-popupToolGroup.oo-ui-popupToolGroup-active > .oo-ui-popupToolGroup-handle:hover,
.oo-ui-popupToolGroup.oo-ui-popupToolGroup-active > .oo-ui-popupToolGroup-handle,
.oo-ui-outlineOptionWidget.oo-ui-optionWidget-selected,
.oo-ui-outlineOptionWidget.oo-ui-optionWidget-pressed,
.oo-ui-menuOptionWidget.oo-ui-optionWidget-selected.oo-ui-menuOptionWidget.oo-ui-optionWidget-highlighted,
.oo-ui-menuOptionWidget.oo-ui-optionWidget-pressed.oo-ui-menuOptionWidget.oo-ui-optionWidget-highlighted {
  color: var(--color-link--hover);
}

/* Fix ugly box shadow on file pages */
.fullImageLink > a > img {
	box-shadow: none;
}

#siteNotice {
    max-width: var(--width-layout);
    margin-left: auto;
    margin-right: auto;
}

.toc, .toccolours {
    background-color: transparent !important;
    border: none !important;
}

.toc .toctitle {
	display: none;
}