User:Canadabonk/common.css: Difference between revisions
Content deleted Content added
Canadabonk (talk | contribs) No edit summary |
Canadabonk (talk | contribs) No edit summary |
||
Line 1,495: | Line 1,495: | ||
padding: 5px; |
padding: 5px; |
||
margin-right:15px; |
margin-right:15px; |
||
color: |
color:var(--banner-text-color); |
||
font-size: 1.2rem; |
font-size: 1.2rem; |
||
} |
} |
Revision as of 19:01, 26 June 2024
/*
canada's cosmostweaks
last updated: 22 june 2024
refer to [[CosmosTweaks]] on dev.miraheze.org
*/
:root {
color-scheme:light;
--main-font: trebuchet ms;
/* ----------------------------------- vvv replace this part vvv--------------------------------------------------*/
--main-background-color: lightgrey;
--content-background-color: rgb(255, 255, 255);
--text-color:#222;
--link-color: rgb(6, 69, 173);
--banner-color: rgb(192, 192, 192);
--banner-text-color: #222;
--header-color: rgb(192, 192, 192);
--header-text-color: #222;
--button-color: rgb(192, 192, 192);
--button-text-color: #222;
--footer-color: rgba(192, 192, 192, 0.9);
/* -------------------------------------^^^ replace this part ^^^ ------------------------------------------------*/
--dropdown-background: var(--content-background-color);
/*--background-img: url(https://static.miraheze.org/yohajiwiki/9/92/Background-light.jpg);*/
}
.cosmostweaks-darkmode {
color-scheme:dark;
--main-background-color: #444;
--content-background-color: #222;
--text-color: #ddd;
--link-color: #69bce4;
--banner-color: #364076;
--banner-text-color: #fff;
--header-color: #364076;
--header-text-color: #fff;
--button-color: #364076;
--button-text-color: #fff;
--footer-color: #333;
/*--background-img: url(https://static.miraheze.org/yohajiwiki/0/0c/Background-dark.png);*/
}
/* ---- do not change these unless you know what you're doing ----- */
:root {
scroll-behavior: smooth;
--transparent-white: rgba(255,255,255,0.2);
--transparent-grey: rgba(150,150,150,0.2);
--transparent-black: rgba(0,0,0,0.2);
--transparent-grey-img: linear-gradient(rgba(150,150,150,0.3),rgba(150,150,150,0.3));
}
/* --------------------------- font fix ---------------------------*/
body * {
font-family:unset;
}
body, .skin-cosmos h1, .skin-cosmos h2, .skin-cosmos h3, .skin-cosmos h4, .skin-cosmos h5, .skin-cosmos h6 {
font-family: var(--main-font);
}
pre, code {
font-family:monospace;
}
/* -------------------------- layout tweaks ------------------------- */
body > #mw-content-container {
padding-top:50px;
}
#cosmos-articleHeader-actions {
flex-wrap:nowrap;
}
.cosmos-button {
font-size:0.8rem;
padding: 5px 10px;
}
#mw-content {
box-shadow: 0 0 30px -10px black;
}
.table-scroll {
overflow:auto;
}
/* -------------------------- general ------------------------- */
body {
background-color: var(--main-background-color);
}
@media screen and (min-width: 850px) {
body {
background-image: var(--background-img);
background-attachment:fixed;
background-size:cover;
background-repeat:no-repeat;
}
}
body::after {
background-image: none;
}
#mw-content,
.mw-prefs-buttons,
#managewiki .managewiki-submit-formfields,
.cosmos-modal-content,
.mw-search-profile-tabs {
background-color:var(--content-background-color);
}
#catlinks {
background-color:unset;
}
#mw-content h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body #mw-content,
body #mw-content-text,
#mw-content .tocnumber,
body .oo-ui-tabOptionWidget,
#mw-content-subtitle, #contentSub2,
#mw-content .selflink.mw-selflink,
#mw-content .mw-editsection-bracket,
.editOptions,
.diff-context,
.wds-input__field,
.oo-ui-labelWidget.oo-ui-inline-help {
color:var(--text-color);
}
.codeEditor-status {
color:black;
}
.cosmos-button-primary {
background-color: var(--button-color);
color: var(--button-text-color);
stroke: var(--button-text-color);
}
.cosmos-button.cosmos-button-secondary {
color: var(--text-color);
stroke: var(--text-color);
}
a:not(.new),
#mw-content a:not(.new) {
color: var(--link-color);
}
#cosmos-footer {
background-color: var(--footer-color);
}
#cosmos-footer * {
color: white;
}
body .mw-notification {
background-color: var(--content-background-color);
}
#mw-content .mw-changeslist-legend {
background-color: var(--content-background-color);
color:var(--text-color);
}
/* -------------- table things -------------------------*/
.ts-container .wikitable {
background-color:rgba(255,255,255,0.1);
color:var(--text-color);
}
.ts-container .wikitable tr td, .ts-container .wikitable tr th {
background-color: unset;
color: unset;
}
.cosmostweaks-darkmode .wikitable,
.cosmostweaks-darkmode .wikitable td,
.cosmostweaks-darkmode .wikitable th {
border-color: var(--transparent-white);
}
.jquery-tablesorter .headerSort,
.jquery-tablesorter .headerSortUp,
.jquery-tablesorter .headerSortDown {
background-image:unset;
position:relative;
}
.jquery-tablesorter .headerSort::after,
.jquery-tablesorter .headerSortUp::after,
.jquery-tablesorter .headerSortDown::after {
content:"";
display:block;
width:100%;
height:100%;
position:absolute;
top:0;
left:0;
background-color:currentcolor;
mask-position:center right;
mask-repeat: no-repeat
}
.jquery-tablesorter .headerSort::after {
mask-image: url(/1.41/resources/src/jquery.tablesorter.styles/images/sort_both.svg?0e440);
}
.jquery-tablesorter .headerSortUp::after {
mask-image: url(/1.41/resources/src/jquery.tablesorter.styles/images/sort_up.svg?2ff5c);
}
.jquery-tablesorter .headerSortDown::after {
mask-image: url(/1.41/resources/src/jquery.tablesorter.styles/images/sort_down.svg?4b69e);
}
/* ---------------------- header ------------------------- */
.cosmos-header {
background-color: var(--header-color);
}
.cosmos-header::before {
display:none;
}
.cosmos-header .cosmos-header__counter,
.cosmos-header .wds-tabs .wds-tabs__tab-label a,
.cosmos-header .wds-tabs .wds-tabs__tab:hover .wds-tabs__tab-label a,
.cosmos-header__sitename a:any-link {
color:var(--header-text-color);
}
/* ---------------- dropdowns ---------------*/
.cosmos-dropdown-list,
.skin-cosmos .wds-dropdown__content,
.skin-cosmos .wds-dropdown__content .wds-list.wds-is-linked .wds-dropdown-level-2 .wds-dropdown-level-2__content {
background-color:var(--dropdown-background);
}
#cosmos-banner .wds-dropdown__content a:hover,
#cosmos-actionsList-list a:hover {
color: var(--link-color);
}
#mw-content-block .wds-dropdown__content a,
#cosmos-banner .wds-dropdown__content a,
#cosmos-banner .cosmos-dropdown-list a,
body #cosmos-banner .cosmos-dropdown-list a.new,
#cosmos-actionsList-list a,
body #wds-icons-menu-control-tiny path {
color: var(--text-color);
}
#cosmos-actionsList-dropdownIcon {
fill: var(--button-text-color);
}
#cosmos-actionsList-list a:hover {
background-color: var(--transparent-grey);
}
.cosmostweaks-darkmode #mw-content-block .wds-dropdown__content a:hover,
.cosmostweaks-darkmode #cosmos-banner .wds-dropdown__content a:hover,
.cosmostweaks-darkmode #cosmos-banner .cosmos-dropdown-list a:hover,
.cosmostweaks-darkmode #cosmos-actionsList-list a:hover {
color: var(--link-color);
background-color: var(--transparent-grey);
}
/* -------------------------------- banner ----------------------------- */
#cosmos-banner {
background-color: var(--banner-color);
height: unset;
}
#cosmos-banner-content {
justify-content: flex-end;
}
.cosmos-bannerOption-dropdownIcon,
.cosmos-bannerOption:hover .cosmos-bannerOption-dropdownIcon {
fill: var(--banner-text-color);
stroke: var(--banner-text-color);
}
#cosmos-banner .cosmos-userButton-label,
.cosmos-userOptions-personalTools:hover .cosmos-userButton-label {
color: var(--banner-text-color);
}
/* search bar */
#p-search {
display:flex;
justify-content:right;
width:unset;
flex: 1 1 300px;
transition:margin 0.2s;
margin:0;
margin-right: 5px;
}
#searchform {
justify-content:right;
}
#p-search .cosmos-typeahead-search, #p-search #simpleSearch {
background-color: var(--transparent-white);
border-radius: 5px;
display:flex;
justify-content:flex-end;
align-items:unset;
transition: all 0.2s;
height:30px;
align-self:center;
flex:0 1 300px;
overflow:hidden;
margin:3px 0;
}
#p-search .cosmos-typeahead-search:focus-within {
background-color: rgba(255,255,255,0.8);
}
.cdx-search-input {
border-radius: 50px;
overflow:hidden;
height:100%;
}
.cdx-text-input {
min-width: unset;
height:100%;
}
#cosmos-banner .cosmos-typeahead-search--active {
margin: 7px 0;
flex-basis: 350px;
}
#searchform input {
background-color:unset;
padding: 0 10px;
height:unset;
min-height:unset;
}
#searchform input:focus {
background-color:unset;
}
#searchform input::placeholder {
color: var(--banner-text-color);
font-size:12px;
}
#searchform input:focus::placeholder {
color: #555;
}
#searchform .cdx-button.cdx-search-input__end-button {
min-height:unset;
padding:0 7px;
margin:5px;
border-radius: 10px;
text-transform: uppercase;
font-size: 0.7em;
color: #555;
background-color: white;
}
#cosmos-banner-userOptions, .cdx-search-input--has-end-button .cdx-search-input__input-wrapper {
margin:0;
}
.cdx-search-input--has-end-button, .cdx-text-input {
display:flex;
}
#cosmos-search-buttonContainer {
margin-left:unset;
height:unset;
}
#cosmos-search-buttonIcon svg {
height: 22px;
stroke-width:3px;
stroke: var(--banner-text-color);
}
/* bell and tray icon */
#cosmos-banner #cosmos-notifsButton-icon > li > a {
border-radius: 5px;
opacity: 1;
width:30px;
height:30px;
display:flex;
justify-content:center;
align-items:center;
margin:0;
background:none;
}
#cosmos-banner #cosmos-notifsButton-icon > li > a:hover {
opacity:0.7;
}
#pt-notifications-alert a::before,
#pt-notifications-notice a::before {
content:"";
display:block;
position:absolute;
width:100%;
height:100%;
top:0;
left:0;
mask-repeat: no-repeat;
mask-position:center;
background-color:var(--banner-text-color);
}
#pt-notifications-alert a::before {
mask-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E%3Ctitle%3E bell %3C/title%3E%3Cpath d=%22M16 7a5.38 5.38 0 0 0-4.46-4.85C11.6 1.46 11.53 0 10 0S8.4 1.46 8.46 2.15A5.38 5.38 0 0 0 4 7v6l-2 2v1h16v-1l-2-2zm-6 13a3 3 0 0 0 3-3H7a3 3 0 0 0 3 3z%22/%3E%3C/svg%3E");
}
#pt-notifications-notice a::before {
mask-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E%3Ctitle%3E tray %3C/title%3E%3Cpath d=%22M3 1a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2zm14 12h-4l-1 2H8l-1-2H3V3h14z%22/%3E%3C/svg%3E");
}
#cosmos-notifsButton-icon {
column-gap:4px;
}
#cosmos-notification-icons #pt-notifications-notice {
padding-left:0;
}
#cosmos-notification-icons li {
margin: 0;
}
#cosmos-notification-icons {
padding:0;
}
#cosmos-banner #cosmos-notifsButton-icon > li > a::after {
top:unset;
left:unset;
bottom:-4px;
right:-4px;
border-radius:5px;
background-color: var(--button-color);
color: var(--button-text-color);
}
#cosmos-banner .ct-darkmode svg {
stroke-width:0;
fill:var(--banner-text-color);
width:20px;
height:20px;
}
/* user button */
#cosmos-userButton-avatar svg {
height: 25px;
fill: var(--banner-text-color);
stroke-width: 0;
}
#cosmos-personalTools-userButton {
padding: 0 10px 0 5px;
margin-left: 5px;
}
#cosmos-userButton-avatar {
margin-right: 5px;
}
#cosmos-userButton-avatar > img {
border:none ;
}
.cosmos-userButton-label {
margin-top:0;
font-size: 0.9rem;
}
/* banner navigation */
#cosmos-banner .cosmos-header__local-navigation {
height:unset;
transition:transform 0.5s;
}
#cosmos-banner .wds-tabs .wds-tabs__tab:hover .wds-tabs__tab-label > a, #cosmos-banner .wds-tabs__tab-label > a {
color: var(--banner-text-color);
}
#cosmos-banner .wds-tabs__tab-label {
padding:0 8px;
margin:0;
}
@media screen and (min-width:1084px) {
#cosmos-banner .wds-tabs .wds-tabs__tab:hover .wds-tabs__tab-label {
background-color:var(--transparent-white);
}
}
/* --------------------------------- oo-ui -------------------------*/
.oo-ui-labelElement, .oo-ui-labelWidget.oo-ui-inline-help {
color: unset;
}
.editOptions .oo-ui-fieldLayout-body .oo-ui-labelElement-label {
color: var(--text-color);
}
body .oo-ui-tabSelectWidget-framed {
background-color: var(--transparent-grey);
}
.oo-ui-panelLayout .oo-ui-fieldLayout-header .oo-ui-labelElement-label,
.oo-ui-panelLayout .oo-ui-fieldsetLayout-header .oo-ui-labelElement-label {
color: var(--text-color);
}
.cosmostweaks-darkmode .oo-ui-fieldsetLayout-header .oo-ui-iconElement-icon {
filter:invert(1);
}
.oo-ui-flaggedElement-destructive a {
color: #ff4242;
}
#mw-content-container .oo-ui-widget.oo-ui-buttonElement-framed .oo-ui-buttonElement-button,
.oo-ui-popupWidget-popup .oo-ui-widget.oo-ui-buttonElement-framed .oo-ui-buttonElement-button,
.oo-ui-buttonElement-framed.oo-ui-widget-enabled > .oo-ui-buttonElement-button,
.cdx-button:enabled, .cdx-button:enabled:hover {
background-color: unset;
color: var(--text-color);
border-color: rgba(150, 150, 150, 0.5);
border-width: 2px;
}
div:not(.oo-ui-buttonSelectWidget) .oo-ui-buttonElement-button {
border-radius: 5px;
}
.oo-ui-widget.oo-ui-buttonElement-framed .oo-ui-buttonElement-button:hover {
background-color:unset;
}
.oo-ui-buttonElement .oo-ui-buttonElement-button:hover,
.cdx-button:enabled:hover {
opacity: 0.7;
}
#mw-content-container .oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary.oo-ui-flaggedElement-progressive .oo-ui-buttonElement-button,
.oo-ui-widget.oo-ui-buttonElement-framed.oo-ui-buttonElement-active .oo-ui-buttonElement-button {
background-color: var(--button-color);
color: var(--button-text-color);
border-color: var(--button-color);
}
.oo-ui-buttonElement-framed.oo-ui-flaggedElement-primary.oo-ui-flaggedElement-progressive .oo-ui-buttonElement-button .oo-ui-labelElement-label {
color: var(--button-text-color);
}
.oo-ui-textInputWidget .oo-ui-inputWidget-input,
#mw-content-container .oo-ui-dropdownWidget-handle,
#mw-content-container .oo-ui-dropdownInputWidget,
.mw-widget-dateInputWidget-handle {
background-color: unset;
color: var(--text-color);
}
.mw-widget-calendarWidget-day {
color: unset;
}
#mw-content-container .oo-ui-widget-disabled * {
text-shadow: unset;
}
#mw-content-container .oo-ui-widget-disabled .oo-ui-dropdownWidget-handle,
#mw-content-container .oo-ui-widget-disabled .oo-ui-buttonElement-button,
#mw-content-container .oo-ui-widget-disabled .oo-ui-inputWidget-input {
background-color: rgba(150, 150, 150, 0.5);
opacity: 0.7;
border-color: transparent;
color: var(--text-color);
-webkit-text-fill-color: unset;
}
.cosmostweaks-darkmode .oo-ui-indicatorElement-indicator,
.cosmostweaks-darkmode .oo-ui-textInputWidget .oo-ui-iconElement-icon,
.cosmostweaks-darkmode .oo-ui-buttonElement:not(.oo-ui-flaggedElement-progressive) .oo-ui-iconElement-icon,
.cosmostweaks-darkmode .oo-ui-popupWidget-head .oo-ui-iconElement-icon,
.oo-ui-buttonElement-button .oo-ui-image-invert {
filter: invert(1);
}
.cosmostweaks-darkmode .oo-ui-buttonElement-button .oo-ui-iconElement-icon.oo-ui-image-invert,
#editform .wikiEditor-ui .oo-ui-iconElement-icon {
filter: invert(0);
}
.oo-ui-widget-disabled.oo-ui-checkboxInputWidget span.oo-ui-checkboxInputWidget-checkIcon,
.oo-ui-widget-disabled.oo-ui-checkboxInputWidget.oo-ui-widget-disabled span.oo-ui-checkboxInputWidget-checkIcon {
background-color: unset;
background-image: none;
}
.oo-ui-menuSelectWidget,
.oo-ui-floatableElement-floatable {
background-color: var(--content-background-color);
}
.oo-ui-popupWidget .oo-ui-popupWidget-popup {
background-color: var(--transparent-grey);
}
.oo-ui-popupWidget .oo-ui-popupWidget-popup .oo-ui-popupWidget-head,
.oo-ui-popupWidget .oo-ui-popupWidget-popup .oo-ui-popupWidget-footer {
border: none;
background-color: var(--transparent-white);
}
.mw-echo-ui-notificationBadgeButtonPopupWidget-popup > .oo-ui-popupWidget-popup > .oo-ui-popupWidget-footer .mw-echo-ui-notificationBadgeButtonPopupWidget-footer-buttons .oo-ui-buttonElement:last-child {
border:0;
}
.oo-ui-fieldLayout-header,
.oo-ui-widget.oo-ui-widget .oo-ui-labelElement-label {
color: var(--text-color);
}
.mw-echo-ui-notificationBadgeButtonPopupWidget-popup * {
color: var(--text-color);
background-color:unset;
}
.mw-echo-ui-notificationItemWidget:hover {
background-color: var(--transparent-grey);
}
.mw-echo-ui-notificationItemWidget {
border-color: var(--transparent-white);
}
.oo-ui-menuOptionWidget.oo-ui-optionWidget-highlighted,
.oo-ui-menuOptionWidget.oo-ui-optionWidget-selected {
background-color: var(--transparent-grey);
}
/* ---------------------------- recentchanges -------------------------*/
body .mw-changeslist-line,
.oo-ui-labelElement-label.oo-ui-labelElement-label .mw-rcfilters-ui-itemMenuOptionWidget-label-desc {
color: var(--text-color);
}
.mw-rcfilters-ui-itemMenuOptionWidget.oo-ui-optionWidget-selected,
.mw-rcfilters-ui-itemMenuOptionWidget:hover {
background-color: var(--transparent-grey)
}
.mw-rcfilters-ui-filterMenuOptionWidget.oo-ui-flaggedElement-muted:not(.oo-ui-optionWidget-selected) {
background-color: var(--transparent-grey);
opacity: 0.5;
}
.mw-rcfilters-ui-filterMenuHeaderWidget-header,
.mw-rcfilters-ui-filterMenuSectionOptionWidget,
.mw-rcfilters-ui-menuSelectWidget-footer {
background-color: rgba(150,150,150,0.4);
}
.mw-rcfilters-ui-table .oo-ui-inputWidget-input {
background-color:var(--transparent-grey);
}
.mw-rcfilters-ui-filterTagMultiselectWidget.oo-ui-widget-enabled .oo-ui-tagMultiselectWidget-handle,
.mw-rcfilters-ui-filterTagMultiselectWidget-views-select-widget.oo-ui-widget,
.oo-ui-widget.oo-ui-widget.oo-ui-widget.oo-ui-widget.oo-ui-tagItemWidget {
background-color:unset;
}
.oo-ui-widget.oo-ui-tagMultiselectWidget.oo-ui-widget-enabled {
background-color: transparent;
}
.oo-ui-widget.oo-ui-tagMultiselectWidget input {
color: var(--text-color);
}
.mw-rcfilters-ui-itemMenuOptionWidget:not(:last-child):not(.mw-rcfilters-ui-itemMenuOptionWidget-identifier-talk) {
border:0;
}
.cosmostweaks-darkmode .mw-changesList-watchlistExpiry {
filter:invert(1);
}
.oo-ui-iconElement-icon.oo-ui-iconElement-icon.mw-rcfilters-ui-filterItemHighlightButton-circle {
filter:invert(0);
}
/* ------------------------- sidetools -------------------------- */
.ct-sidetools-wrapper {
position:absolute;
left:0;
top:50px;
height:100%;
z-index:40000;
transform: translateX(-50%);
padding-bottom:500px;
box-sizing:border-box;
}
.ct-sidetools {
position: sticky;
top: 50px;
}
.ct-sidetools > div {
margin: 10px 0;
}
.ct-sidetools-button {
background: var(--content-background-color);
width: 40px;
height: 40px;
border-radius: 50%;
position:relative;
display: flex;
justify-content: center;
align-items:center;
box-shadow:0 3px 5px var(--transparent-black);
cursor:pointer;
color:inherit;
transition:filter 0.2s;
}
.ct-sidetools-button svg {
width: 20px;
fill: var(--link-color);
z-index:1;
}
.ct-edit .ct-sidetools-button[title~="Edit"] svg {
fill:none;
stroke:var(--link-color);
stroke-width:2.5px;
}
.ct-sidetools-button::before {
content: "";
background-color:var(--link-color);
position:absolute;
height:100%;
width:100%;
border-radius:50%;
opacity:0.1;
}
.ct-sidetools-button:hover {
filter:brightness(110%);
}
.ct-sidetools-button:after {
content: attr(title);
color: var(--text-color);
padding: 5px 10px;
width:max-content;
font-size:0.9em;
font-weight:bold;
background-color: inherit;
border-radius: 5px;
position:absolute;
top:50%;
transform:translateY(-50%);
left: 130%;
display:none;
box-shadow: 0 3px 5px var(--transparent-black);
}
.ct-sidetools-button:hover:after {
display:block;
}
.ct-stickytoc {
position:absolute;
min-width:200px;
max-width:250px;
width:max-content;
top:0;
left:60px;
box-shadow:0 3px 10px rgba(0,0,0,0.3);
background: var(--content-background-color);
border-radius: 5px;
}
.ct-stickytoc div {
border-bottom:1px solid currentcolor;
padding:10px 0;
margin: 0 15px;
display:flex;
justify-content:space-between;
align-items:baseline;
}
.ct-sidetools .ct-stickytoc h3 {
margin:0;
padding:0;
}
.ct-toc-move {
font-size: 0.8em;
padding: 2px 6px;
border-radius: 5px;
background-color:var(--transparent-grey);
user-select:none;
cursor:pointer;
}
.ct-toc-move:hover {
opacity:0.9;
}
.ct-stickytoc ul, .ct-railtoc ul {
list-style:none;
}
.ct-stickytoc > ul {
overflow:scroll;
max-height:400px;
margin:0;
padding:10px;
font-size:95%;
}
.ct-stickytoc li {
margin-bottom:0;
}
.ct-stickytoc li a {
display:block;
padding:0.3em;
border-radius: 3px;
}
.ct-stickytoc li a:hover, .ct-railtoc li a:hover {
background-color: var(--transparent-grey);
}
.ct-stickytoc .tocnumber:after, .ct-railtoc .tocnumber:after {
content: ".";
}
body .ct-stickytoc a {
color:inherit;
}
.ct-railtoc > div:first-child {
display:flex;
justify-content:space-between;
align-items:center;
}
#CosmosRail .module.ct-railtoc h3 {
border-bottom:none;
margin: 0;
padding: 0;
}
.module.ct-railtoc {
position:sticky;
top:40px;
}
.ct-railtoc > ul {
margin-left:0;
max-height: calc(100vh - 160px);
overflow: auto;
padding-right:10px;
font-size:0.9em;
box-sizing: border-box;
}
.ct-railtoc li a {
display:block;
padding: 0.2em;
}
.ct-railtoc .ct-toc-move {
display:none;
}
.ct-railtoc > div:first-child:hover > .ct-toc-move {
display:block;
}
@media screen and (max-width: 850px) {
.ct-railtoc {
display:none;
}
}
.ct-fullwide svg {
transform: scaleY(80%);
padding-top:2px;
}
/* ------------------------- fullwide -------------------------- */
.fullwide #mw-content-block {
padding: 0 1.5em;
}
.fullwide #mw-content-wrapper {
width:100%;
max-width: unset;
padding:0;
}
.fullwide-animate #mw-content-wrapper {
transition: width 0.3s;
}
/* ------------------------- back to top button -------------------------- */
.ct-top {
position:fixed;
bottom: 70px;
right: 60px;
width: 50px;
height: 50px;
background-color: var(--button-color);
color: var(--button-text-color);
border-radius: 50%;
transition: all 0.5s;
display:flex;
align-items:center;
justify-content:center;
padding-top:10px;
box-sizing:border-box;
z-index:1;
box-shadow: 0 5px 10px var(--transparent-black);
cursor:pointer;
}
.ct-top:hover {
filter: brightness(120%);
animation: backtotop-bounce 1s ease-in-out infinite ;
}
.ct-top-arrow {
transform: rotate(45deg);
border: 3px solid;
border-width: 3.5px 0 0 3.5px;
width:16px;
height: 16px;
border-radius:3px;
}
@keyframes backtotop-bounce {
0% {transform: translateY(0);}
50% {transform: translateY(-10px);}
100% {transform: translateY(0);}
}
/* ---------------------------- portable infobox -----------------------------*/
:root {
--pi-secondary-background: var(--button-color);
}
body #mw-content .portable-infobox {
color: var(--text-color);
background-color:var(--transparent-grey);
}
.portable-infobox .pi-media-collection-tabs {
background-color:var(--transparent-white);
}
.portable-infobox .pi-media-collection-tabs .current {
background-color:var(--pi-secondary-background);
color: var(--button-text-color);
mix-blend-mode: overlay;
}
.portable-infobox .pi-header, .portable-infobox .pi-title {
color: var(--button-text-color);
}
.cosmostweaks-darkmode .pi-image-thumbnail {
background-color: rgba(255,255,255,0.5);
}
/*------------------------------------------------------------------ commentstream ----------------------------------*/
.cs-comments {
box-sizing: border-box;
display: flex;
flex-flow: column;
font-family: inherit;
}
.cs-comments::before {
content: "Comments";
font-family: var(--main-font);
font-weight: bold;
font-size: 1.5rem;
width: 100%;
border-bottom: 1px solid lightgrey;
margin: 10px 0;
display: block;
box-sizing: border-box;
order: -2;
}
/* new comment edit box */
.cs-comments input {
border: 0;
}
.cs-comments .cs-edit-box .ve-ce-documentNode {
background-color: #fff;
text-align: left;
border: 0;
}
.cs-comments .ve-ce-documentNode,
.cs-comments input,
.cs-comments textarea {
font-family: unset;
}
.cosmostweaks-darkmode .cs-comments .ve-ce-documentNode,
.cosmostweaks-darkmode .cs-comments input,
.cosmostweaks-darkmode .cs-comments textarea {
background-color: rgba(0, 0, 0, 0.4);
}
.cs-comments textarea {
resize: vertical;
}
.cs-footer {
text-align: right;
order: -1;
margin-bottom: 1em;
}
#mw-content .cs-footer .oo-ui-buttonElement-framed .oo-ui-buttonElement-button,
#mw-content .cs-stream-footer .oo-ui-buttonElement-button {
background-color: var(--button-color);
color: var(--button-text-color);
border: 0;
display: flex;
align-items: center;
justify-content: center;
padding: 0 10px;
column-gap: 5px;
transition: all 0.2s;
}
#mw-content .cs-footer .oo-ui-buttonElement-framed .oo-ui-buttonElement-button .oo-ui-labelElement-label {
color: var(--button-text-color);
}
.cs-footer .oo-ui-buttonElement-framed,
.cs-footer .oo-ui-buttonElement-framed .oo-ui-buttonElement-button {
width: 100%;
transition: height 0.5s;
overflow: hidden;
height: 2.5em;
}
.cs-footer .oo-ui-buttonElement-framed.oo-ui-widget-disabled {
height: 0;
}
#mw-content .cs-footer .oo-ui-buttonElement-framed .oo-ui-buttonElement-button {
opacity: 0.7;
}
#mw-content .cs-footer .oo-ui-buttonElement-framed .oo-ui-buttonElement-button:hover {
opacity: 1;
}
#mw-content .cs-stream-footer .oo-ui-buttonElement {
position: absolute;
top: -10px;
right: 10px;
transform: translate(0, -100%);
}
#mw-content .cs-stream-footer .oo-ui-buttonElement.oo-ui-widget-disabled {
display: none;
}
.cs-comments .oo-ui-buttonElement .oo-ui-iconElement-icon {
position: static;
}
.cs-comments .oo-ui-buttonElement .oo-ui-icon-ellipsis {
position: absolute;
}
.cosmostweaks-darkmode .cs-footer .oo-ui-icon-speechBubbleAdd,
.cosmostweaks-darkmode .cs-stream-footer .oo-ui-icon-ongoingConversation,
.cosmostweaks-darkmode .cs-comment-header-right .oo-ui-icon-ellipsis {
filter: invert(1);
}
.cs-edit-box {
background: var(--transparent-grey);
padding: 10px;
border-width: 0;
border-radius: 5px;
text-align: right;
margin-bottom: 0;
border-bottom:3px solid rgba(150,150,150,0.5);
}
.ve-area-wrapper .oo-ui-toolbar-bar {
text-align: left;
margin-bottom: 5px;
}
/* edit toolbar - submit and cancel buttons */
.cs-edit-box > .oo-ui-buttonElement-frameless .oo-ui-buttonElement-button {
display: flex;
align-items: center;
padding: 0 10px;
column-gap: 2px;
background-color: #fff;
border: 0;
}
.cs-edit-box>.oo-ui-buttonElement-frameless .oo-ui-buttonElement-button:hover {
background-color: #ddd;
}
.cs-edit-box>.oo-ui-buttonElement-frameless .oo-ui-iconElement-icon {
position: static;
}
.cs-comments a[title="submit"]::after {
content: "Post";
display: block;
color: #3f64b6;
}
.cs-comments a[title="cancel"]::after {
content: "Cancel";
display: block;
color: #d83434;
}
.cs-comments span.oo-ui-indicatorElement-indicator.oo-ui-indicator-down {
margin: 0;
}
/* the actual comments */
.cs-comment {
display: flex;
align-items: flex-start;
padding: 0;
}
.cs-comment .cs-comment-header {
background-color: unset;
border-top: none;
display: flex;
flex-flow: row wrap;
width: 150px;
max-width: 150px;
line-height: 1.2em;
margin-right: 10px;
}
.cs-comment-header-left,
.cs-comment-header-center {
display: contents;
}
.cs-avatar {
width: 30px;
border-radius:20%;
}
.cs-comment-author {
max-width: 100px;
order: 1;
display:flex;
align-items:center;
}
.cs-comment-title {
order: 2;
flex:100%;
}
.cs-comment-details {
order: 3;
}
.cs-comment-body {
flex: 1;
margin: 0;
align-self: stretch;
background-color: var(--transparent-grey);
border-radius: 10px;
padding:0 10px;
padding-right: 50px;
border-bottom:3px solid rgba(150,150,150,0.5);
}
.cs-reply-edit-box {
max-width: 600px;
margin-left: auto;
}
.cs-stream-footer {
text-align: right;
position: relative;
}
.cosmostweaks-darkmode .cs-comment-details {
color: var(--text-color);
}
.cs-comment-header-right {
position: absolute;
top:0;
right:5px;
}
@media screen and (min-width:720px) {
.cs-stream.cs-collapsed .cs-comment-header {
max-width:unset;
flex:1;
margin-right:0;
background-color: var(--transparent-grey);
padding:10px;
border-radius:10px;
border-bottom: 3px solid rgba(150,150,150,.5);
align-items:flex-start;
}
.cs-stream.cs-collapsed .cs-comment-header-center {
display:flex;
flex-flow:row wrap;
}
.cs-stream.cs-collapsed .cs-comment-title {
order:-1;
}
}
@media screen and (max-width:720px) {
.cs-comment {
flex-flow:column;
background-color:var(--transparent-grey);
padding:10px;
border:3px solid rgba(150,150,150,0.5);
border-width: 0 0 2px;
}
.cs-comment:first-child {
border-top-left-radius: 10px;
border-top-right-radius: 10px;
}
.cs-comment:nth-last-child(2) {
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
}
.cs-comment .cs-comment-header {
width:unset;
max-width:unset;
flex-flow:row;
}
.cs-comment-header-center {
display:flex;
flex-flow:row wrap;
column-gap:3px;
flex:1;
align-items:center;
}
.cs-comment-title {
order: 0;
flex:100%;
}
.cs-comment-header-left {
display:block;
}
.cs-avatar {
width:40px;
padding:0;
}
.cs-comment-body {
background:unset;
border-bottom:0;
padding:0;
}
.cs-reply-comment {
margin:0;
}
#mw-content .cs-stream-footer .oo-ui-buttonElement {
position:relative;
transform:unset;
top:unset;
right:unset;
margin-top:5px;
}
}
/* ------------------------------------------- rail hiding -------------------------------------- */
#CosmosRailWrapper {
width:340px;
margin-right:-40px;
transition: width 0.3s;
background-color:var(--transparent-grey);
}
#CosmosRail {
min-width:340px;
}
.ct-railhidden #CosmosRailWrapper {
width: 20px;
}
.ct-railhidden #CosmosRail {
display:none;
}
#cosmos-pageBody-content {
transition: width 0.3s;
}
.ct-railhidden #cosmos-pageBody-content {
width:100%;
}
.ct-railtoggle {
position: absolute;
top:10px;
right:-40px;
width: 40px;
height:40px;
border-radius: 20px 0 0 20px;
z-index:10;
transition: all 0.2s;
display:flex;
align-items:center;
justify-content:center;
cursor:pointer;
background-image: var(--transparent-grey-img);
box-shadow:0 3px 5px rgba(0,0,0,0.1);
}
.ct-railhidden .ct-railtoggle {
background-color:var(--content-background-color);
}
.ct-railtoggle::before {
content: "Hide rail";
position:absolute;
top:100%;
right:-10px;
padding: 5px 8px;
font-size: 0.9rem;
border-radius: 5px;
background-color: var(--content-background-color);
background-image: inherit;
white-space: nowrap;
margin-top:10px;
box-shadow:inherit;
display:none;
}
.ct-railhidden .ct-railtoggle::before {
content: "Show rail";
}
.ct-railtoggle:hover::before {
display:block;
}
.ct-railtoggle:hover {
padding-right: 10px;
}
.ct-railtoggle::after {
content: "";
width: 12px;
height:12px;
display:block;
border: 3px solid light-dark(black, white);
box-sizing:border-box;
border-width: 0 0 3px 3px;
transform: rotate(225deg);
transition: transform 0.3s;
}
.ct-railhidden .ct-railtoggle::after {
transform: rotate(45deg) translate(3px, -3px);
}
@media only screen and (max-width: 1024px) {
.ct-railtoggle {
display:none;
}
#CosmosRail .module {
width: 100%;
margin-top:0;
}
#mw-content #CosmosRailWrapper {
margin-right:unset;
width:unset;
display:flex;
justify-content:center;
margin:0 -40px -10px;
}
#mw-content #CosmosRail {
display:block;
column-count: 2;
column-gap: 0;
padding: 20px 0;
}
}
@media only screen and (max-width: 720px) {
#mw-content #CosmosRail {
display:flex;
column-count: 1;
padding:20px;
}
}
/* ------------------------- darkmode -------------------------- */
.cosmostweaks-darkmode a.new {
color:#ff6c6c;
}
.cosmostweaks-darkmode .gallerybox .thumb {
background-color: var(--transparent-grey);
border-color: var(--transparent-white);
}
.cosmostweaks-darkmode .toc,
#pagehistory li.selected {
background-color: var(--transparent-grey);
color: var(--text-color);
}
.cosmostweaks-darkmode #mw-content .wikiEditor-ui-toolbar,
.cosmostweaks-darkmode #mw-content .wikiEditor-ui-toolbar a,
.cosmostweaks-darkmode #mw-content .wikiEditor-ui-toolbar .oo-ui-labelElement-label {
color:#555;
}
.cosmostweaks-darkmode .mw-rcfilters-highlighted {
color: #555;
}
/* difference between revisions - inserts */
.diff-addedline {
background-color:rgba(158, 212, 127, 0.4);
}
.diff-addedline .diffchange {
color:white;
}
.cosmostweaks-darkmode .mw-diff-table-prefix .mw-diff-inline-legend .mw-diff-inline-legend-ins, .cosmostweaks-darkmode .mw-diff-inline-added ins, .cosmostweaks-darkmode .mw-diff-inline-changed ins, .cosmostweaks-darkmode .mw-diff-inline-moved ins {
background-color: #4e750a;
}
.cosmostweaks-darkmode .mw-plusminus-pos {
color:limegreen;
}
/* difference between revisions - deletions */
.diff-deletedline {
background-color:rgba(233, 150, 150, 0.4);
}
.cosmostweaks-darkmode .mw-diff-table-prefix .mw-diff-inline-legend .mw-diff-inline-legend-del, .cosmostweaks-darkmode .mw-diff-inline-deleted del, .cosmostweaks-darkmode .mw-diff-inline-changed del, .cosmostweaks-darkmode .mw-diff-inline-moved del {
background-color: #a54f35;
}
.mw-diff-movedpara-left::after, .mw-diff-movedpara-right::after {
color: white;
margin-left: 5px;
}
.cosmostweaks-darkmode .mw-plusminus-neg {
color:red ;
}
#filetoc,
.mw_metadata td {
background-color:var(--transparent-white);
}
.cosmostweaks-darkmode .oo-ui-window-frame .wikitable td {
color:black;
background-color:unset;
border-color:initial;
}
/* ------------------------- tablet and mobile -------------------------- */
@media screen and (max-width: 850px) {
.skin-cosmos #mw-content-container {
padding-top:0;
}
#mw-content-wrapper {
overflow:hidden;
}
#mw-content-block {
padding: 0 !important;
}
#mw-content {
padding-top: 10px;
}
.toc {
width:40%;
}
.thumb {
align-items:center;
}
.client-js .mw-changeslist ul, .client-js .mw-changeslist table.mw-enhanced-rc {
margin-left:unset;
}
.cosmos-header {
display:flex;
flex-flow:row wrap;
justify-content:center;
align-items:center;
border-bottom: 5px solid var(--header-color);
padding-top:40px;
}
.cosmos-header::before {
content: '';
position:absolute;
display:block;
top:0;
width:100%;
height:100%;
mask-image: linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.2));
background-image: var(--background-img);
background-repeat: no-repeat;
background-attachment: fixed;
background-size:100%;
background-position:0 -120px;
}
.cosmos-header__wordmark {
display:block;
margin:10px;
}
.cosmos-header__top-container {
align-items:center;
}
.cosmos-header__counter {
margin:0 10px 0 0;
text-align:center;
}
.cosmos-header__wiki-buttons {
margin: 0;
}
.parent-tab-container {
margin-top:0;
}
.cosmos-header__sitename {
display:none;
}
#cosmos-banner {
position:fixed;
height:auto;
width:100%;
padding:0;
border-radius:0;
}
#p-search:not(:focus) .cdx-button {
display:none;
}
#p-search:focus+#cosmos-banner-userOptions {
display:none;
}
#cosmos-banner .cosmos-typeahead-search {
flex:1;
}
#cosmos-banner .cosmos-mobile-menu-button {
border-radius: 0;
padding: 5px;
margin-right:15px;
color:var(--banner-text-color);
font-size: 1.2rem;
}
.wds-tabs {
background-color: var(--dropdown-background);
}
.cosmos-mobile-navigation ul.wds-has-bolded-items {
display:flex;
flex-flow:row wrap;
margin-left:5px;
}
.cosmos-mobile-navigation ul.wds-has-bolded-items > li {
flex: 1 1 40%;
margin:0;
}
#cosmos-banner .cosmos-mobile-navigation .wds-tabs__tab-label {
background-color: var(--header-color);
margin:0 -10px;
padding:10px 15px;
border-bottom:unset;
}
.cosmos-mobile-navigation .wds-tabs__tab-label span {
color: var(--header-text-color);
}
#cosmos-banner .wds-dropdown__content a {
color: var(--link-color);
}
#cosmos-banner .cosmos-mobile-navigation .wds-dropdown-level-2__toggle,
#cosmos-banner .wds-has-bolded-items > li:first-child > a {
background-color: var(--button-color);
padding: 7px 12px;
color: var(--button-text-color);
margin: 3px;
border-radius:50px;
}
.cosmos-mobile-navigation ul.wds-has-bolded-items > .wds-is-sticked-to-parent:first-child {
flex: 1 1 100%;
}
#p-Explore-label svg {
display:none;
}
#cosmos-banner .wds-dropdown-level-2__content {
top:-8px;
}
#cosmos-toolbar {
max-width:unset;
}
#cosmos-toolbar ul {
display:flex;
flex-flow:row wrap;
}
}
@media screen and (max-width: 720px) {
.toc {
width:100%;
}
body:not(.mw-special-ManageWiki):not(.mw-special-Preferences) #cosmos-pageBody-content {
overflow:unset;
}
#cosmos-articleHeader-actions {
margin:auto;
}
.cosmos-header__top-container {
margin-top:-15px;
}
.cosmos-header::before {
background-position:0 0;
}
}