Want to contribute? Join the Discord and ask for the editor role.
MediaWiki:Citizen.css: Difference between revisions
MediaWiki interface page
No edit summary |
No edit summary |
||
(17 intermediate revisions by the same user 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. | --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:// | 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; | |||
} | } | ||
/* Footer colours */ | /* Footer colours */ | ||
.last-modified-bar { | |||
background: #1f2428; | background: #1f2428; | ||
} | } | ||
.mw-footer { | .mw-footer { | ||
background-color: var(--background-color | 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; | |||
} | } | ||
Line 76: | Line 108: | ||
} | } | ||
/* | /* Buttons */ | ||
. | .mw-ui-button.mw-ui-progressive:disabled, | ||
background-color: var(--background-color- | .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); | color: var(--color-base--emphasized); | ||
} | } | ||
. | .ve-ui-mwParameterResultWidget.oo-ui-optionWidget-highlighted .ve-ui-mwParameterResultWidget-description { | ||
color: var(--color-base); | color: var(--color-base); | ||
} | } | ||
. | /* Fix codemirror link contrast */ | ||
.cm-mw-link-pagename, .cm-mw-link-ground, .cm-mw-extlink { | |||
color: var(--color-link--hover); | |||
. | |||
color: var(--color- | |||
} | } | ||
/* Fix visual diff contrast */ | |||
color: var(--color-base--emphasized); | [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; | |||
background | border-color: var(--color-success) !important; | ||
color: var(--color-base--emphasized) !important; | |||
font-weight: bold; | |||
box-shadow: none; | |||
border-color: var(- | |||
color: var(--color-base--emphasized); | |||
} | } | ||
.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; | |||
} | } |
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;
}