MediaWiki:Common.css: Difference between revisions

From Structorica Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Tag: Reverted
Line 1: Line 1:
/* CSS placed here will apply to all skins */
/* Structorica Vector Theme */


/*** BASE STYLES AND SETTINGS ***/
:root {
    /* Width control */
    --fixed-width: 1200px; /* Dynamicly changed by Hook */
       
    --vector-tabs: none;
    --vector-tabs-first: none;
}


/** Color variables that could be changed by various skin themes */


/* LIGHT THEME - default */
:root {
:root,
     --external-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2390c0fe' d='M6 1h5v5L8.86 3.85 4.7 8 4 7.3l4.15-4.16L6 1Z M2 3h2v1H2v6h6V8h1v2a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E");
.skin-invert,
}
.notheme {
     --font-sans: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;


.mw-parser-output a.external {
    background-image: var(--external-icon);
    background-size: 0.857em;
    padding-right: 1em;
}


    --site-background-color: #303031;
    --content-background-color: #ebeef2;
   
    --color-siderbar-base: #f8f9fa;
    --color-siderbar-links: #88a3e8;
    --color-topbar-text: #f8f9fa;
       
    --link-color: #0645ad;
    --redlink-color: #BA0000;


   
/* Main page elements */
     --content-border-top-color: #678002;
body {
     --content-border-top-color-hovered: #7b9904;
     background-color: var(--site-background-color);
 
     color: var(--color-base);
--simplesearch-top-border-color: #FFFFFF;
}
--simplesearch-left-border-color: #888888;
 
--simplesearch-topright-grass-color: #6BA41E;
--searchinput-placeholder-color: #72777D;


#mw-page-base {
background: none;
height: 85px;
}


    /* Переменные системы дизайна Codex */
/* Remove excess spacing between the sidebar and the logo */
    --color-base: #202122;
div#mw-panel {
    --color-base-fixed: #202122;
padding-top: 0;
    --color-base--hover: #404244;
padding-bottom: 10px;
    --color-emphasized: #101418;
}
    --color-subtle: #54595d;
    --color-placeholder: #72777d;
    --color-disabled: #72777d;
    --color-inverted: #fff;
    --color-inverted-fixed: #fff; /* The same as color-inverted in light mode, but does not change in dark mode. Use this for things that should be white in both modes. */
    --color-progressive: #36c; /* 'Progressive' Color and states */
    --color-progressive--hover: #4b77d6;
    --color-progressive--active: #233566;
    --color-progressive--focus: #36c;
    --color-destructive: #d73333; /* 'Destructive' Color and states */
    --color-destructive--hover: #fc493b;
    --color-destructive--active: #9f3526;
    --color-destructive--focus: #36c;
    --color-visited: #6a60b0; /* 'Visited' color. In combination with progressive. Used for default links. */
    --color-destructive--visited: #9f5555; /* Red link 'Visited' color. Used for visited red links. */
    --color-error: #d73333;
    --color-warning: #eeb533; /* Note, this is only meant for warning icon for contrast reasons. */
    --color-success: #177860; /* Note, this needs to use a tone darker than Red and Yellow for contrast reasons with background White. */
    --color-notice: #202122;
    --color-content-added: #006400;
    --color-content-removed: #8b0000;
    --filter-invert-icon: 0;
    --filter-invert-primary-button-icon: 1;
    --box-shadow-color-base: #000;
    --box-shadow-color-progressive--active: #233566;
    --box-shadow-color-progressive--focus: #36c;
    --box-shadow-color-progressive-selected: #36c;
    --box-shadow-color-progressive-selected--hover: #4b77d6;
    --box-shadow-color-progressive-selected--active: #233566;
    --box-shadow-color-destructive--focus: #36c;
    --box-shadow-color-inverted: #fff;
    --box-shadow-color-transparent: transparent;
    --background-color-base: #fff; /* Background Colors for static elements (for page layout, sections, etc.) from here on. */
    --background-color-base-fixed: #fff; /* The same as background-color-base in light mode, but does not change in dark mode. Use this for things that should be white in both modes. */
    --background-color-neutral: #eaecf0;
    --background-color-neutral-subtle: #f8f9fa;
    --background-color-interactive: #eaecf0;
    --background-color-interactive-subtle: #f8f9fa;
    --background-color-disabled: #c8ccd1; /* Components like Buttons, Checkboxes, Radios, ProgressBars…. */
    --background-color-disabled-subtle: #eaecf0; /* Components like TextInputs, Selects…. */
    --background-color-inverted: #101418;
    --background-color-progressive: #36c;
    --background-color-progressive--hover: #4b77d6;
    --background-color-progressive--active: #233566;
    --background-color-progressive--focus: #36c;
    --background-color-progressive-subtle: #f1f4fd;
    --background-color-destructive: #d73333;
    --background-color-destructive--hover: #fc493b;
    --background-color-destructive--active: #9f3526;
    --background-color-destructive--focus: #36c;
    --background-color-destructive-subtle: #ffe9e5;
    --background-color-error: #d73333;
    --background-color-error--hover: #fc493b;
    --background-color-error--active: #9f3526;
    --background-color-error-subtle: #ffe9e5;
    --background-color-warning-subtle: #fdf2d5;
    --background-color-success-subtle: #dff2eb;
    --background-color-notice-subtle: #eaecf0;
    --background-color-content-added: #a3d3ff;
    --background-color-content-removed: #ffe49c;
    --background-color-transparent: transparent;
    --background-color-backdrop-light: rgba( 255, 255, 255, 0.65 ); /* Backdrop is the term used by CSS Fullscreen API and is used to dim the background when a modal Dialog is open. Also known as overlay mask. */
    --background-color-backdrop-dark: rgba( 0, 0, 0, 0.65 );
    --background-color-button-quiet--hover: rgba( 0, 24, 73, 0.027 );
    --background-color-button-quiet--active: rgba( 0, 24, 73, 0.082 );
    --background-color-input-binary--checked: #36c;
    --background-color-tab-list-item-framed--hover: rgba( 255, 255, 255, 0.3 );
    --background-color-tab-list-item-framed--active: rgba( 255, 255, 255, 0.65 );
    --opacity-icon-base: 0.87;
    --opacity-icon-base--hover: 0.74;
    --opacity-icon-base--selected: 1;
    --opacity-icon-base--disabled: 0.51;
    --opacity-icon-placeholder: 0.51;
    --opacity-icon-subtle: 0.67;
    --border-color-base: #a2a9b1;
    --border-color-subtle: #c8ccd1;
    --border-color-muted: #dadde3;
    --border-color-interactive: #72777d;
    --border-color-disabled: #c8ccd1;
    --border-color-inverted: #fff;
    --border-color-progressive: #36c;
    --border-color-progressive--hover: #4b77d6;
    --border-color-progressive--active: #233566;
    --border-color-progressive--focus: #36c;
    --border-color-destructive: #d73333;
    --border-color-destructive--hover: #fc493b;
    --border-color-destructive--active: #9f3526;
    --border-color-destructive--focus: #36c;
    --border-color-error: #9f3526;
    --border-color-error--hover: #fc493b;
    --border-color-warning: #987027;
    --border-color-success: #196551;
    --border-color-notice: #54595d;
    --border-color-content-added: #a3d3ff;
    --border-color-content-removed: #ffe49c;
    --border-color-transparent: transparent;
    --border-color-divider: #a2a9b1;
    --outline-color-progressive--focus: #36c; /* Use in places where no more customized focus styles are provided, for example on generic `:focus`. */
    --color-link-red: var( --color-destructive ); /* Red ('new') Link color and states */
    --color-link-red--hover: var( --color-destructive--hover );
    --color-link-red--active: var( --color-destructive--active );
    --color-link-red--focus: var( --color-destructive--focus );
    --color-link-red--visited: var( --color-destructive--visited );
    --border-color-input--hover: var( --border-color-interactive );
    --border-color-input-binary: var( --border-color-interactive );
    --border-color-input-binary--hover: var( --border-color-progressive--hover );
    --border-color-input-binary--active: var( --border-color-progressive--active );
    --border-color-input-binary--focus: var( --border-color-progressive--focus );
    --border-color-input-binary--checked: var( --border-color-progressive );


    /* Навигационные панели */
#p-logo,
    --navbox-background-color: #FFF;
#p-logo a {
    --navbox-border-color: #CCC;
margin: auto;
    --navbox-header-color: #CCC;
/*height: 140px; */
    --navbox-secondary-header-color: #DDD;
}
    --navbox-tertiary-header-color: #EEE;
#p-logo {
     --navbox-section-color: #EEE;
     margin-bottom: 0;
}
}


/* DARK THEME - Structorica Dark Theme */
:root .stw-theme-dark {
    --site-background-color: #161618;
    --content-background-color: #2b2f39;
    --color-siderbar-base: #f8f9fa;
    --color-siderbar-links: #88a3e8;
    --color-topbar-text: #f8f9fa;


    --link-color: #90c0fe;
    --redlink-color: #ba0000;
   
   
    --content-border-top-color: #678002;
    --content-border-top-color-hovered: #7b9904;
 
--simplesearch-top-border-color: #FFFFFF;
--simplesearch-left-border-color: #888888;
--simplesearch-topright-grass-color: #6BA41E;
--searchinput-placeholder-color: #72777D;




    /* Переменные Codex */
 
    --color-base: #f8f5f4;
 
    --color-base--hover: #f8f9fa;
 
    --color-emphasized: #f8f9fa;
#mw-panel h3 {
    --color-subtle: #a2a9b1;
text-decoration: none !important;
    --color-inverted: #101418;
cursor: pointer;
    --color-progressive: #88a3e8; /* 'Progressive' Color and states */
}
    --color-progressive--hover: #b0c1f0;
 
    --color-progressive--active: #cbd6f6;
/* Set the tab link colours to black and bold */
    --color-destructive: #fd7865; /* 'Destructive' Color and states */
#p-namespaces a,
    --color-destructive--hover: #fea898;
#p-views a,
    --color-destructive--active: #ffc8bd;
#p-cactions-label span,
    --color-visited: #a799cd; /* 'Visited' color. In combination with progressive. Used for default links. */
div#mw-head div.vectorMenu h4,
    --color-destructive--visited: #c99391; /* Red link 'Visited' color. Used for visited red links. */
div#p-variants.vectorMenu #mw-vector-current-variant {
    --color-error: #fd7865;
font-weight: 600;
    --color-warning: #fecc44; /* Note, this is only meant for warning icon for contrast reasons. */
text-decoration: none;
    --color-success: #2cb491; /* Note, this needs to use a tone darker than Red and Yellow for contrast reasons with background White. */
    --color-notice: #f8f9fa;
    --color-content-added: #80cdb3;
    --color-content-removed: #fd7865;
    --color-base--subtle: #a2a9b1;
    --box-shadow-color-base: #fff;
    --box-shadow-color-progressive--focus: #6b8edf;
    --box-shadow-color-destructive--focus: #6b8edf;
    --box-shadow-color-inverted: #000;
    --background-color-base: #101418; /* Background Colors for static elements (for page layout, sections, etc.) from here on. */
    --background-color-neutral: #27292d;
    --background-color-neutral-subtle: #202122;
    --background-color-interactive: #27292d;
    --background-color-interactive-subtle: #202122;
    --background-color-disabled: #54595d; /* Components like Buttons, Checkboxes, Radios, ProgressBars…. */
    --background-color-disabled-subtle: #404244; /* Components like TextInputs, Selects…. */
    --background-color-inverted: #f8f9fa;
    --background-color-progressive--focus: #6b8edf;
    --background-color-progressive-subtle: #233566;
    --background-color-destructive--focus: #6b8edf;
    --background-color-destructive-subtle: #612419;
    --background-color-error: #fc493b;
    --background-color-error--hover: #fd7865;
    --background-color-error--active: #fea898;
    --background-color-error-subtle: #612419;
    --background-color-warning-subtle: #453217;
    --background-color-success-subtle: #153d31;
    --background-color-notice-subtle: #27292d;
    --background-color-content-added: #233566;
    --background-color-content-removed: #453217;
    --background-color-backdrop-light: rgba( 0, 0, 0, 0.65 ); /* Backdrop is the term used by CSS Fullscreen API and is used to dim the background when a modal Dialog is open. Also known as overlay mask. */
    --background-color-backdrop-dark: rgba( 255, 255, 255, 0.65 );
    --border-color-base: #72777d;
    --border-color-subtle: #54595d;
    --border-color-muted: #404244;
    --border-color-interactive: #a2a9b1;
    --border-color-disabled: #54595d;
    --border-color-inverted: #101418;
    --border-color-progressive--focus: #6b8edf;
    --border-color-destructive--focus: #6b8edf;
    --border-color-error: #fc493b;
    --border-color-error--hover: #fd7865;
    --border-color-warning: #fecc44;
    --border-color-success: #2cb491;
    --border-color-notice: #c8ccd1;
    --border-color-content-added: #233566;
    --border-color-content-removed: #987027;
   
        /* Навигационные панели */
        --navbox-background-color: #333;
        --navbox-border-color: #444;
        --navbox-header-color: #111;
        --navbox-secondary-header-color: #181818;
        --navbox-tertiary-header-color: #222;
        --navbox-section-color: #222;
}
}




html, body, #root,
#p-namespaces .new a,
.mw-body h1,
#p-views .new a {
.mw-body-content h1,
color: #e1e6cc;
.mw-body-content h2,
.mw-body-content h3,
.mw-body-content h4,
.mw-body-content h5,
.mw-body-content h6 {
    font-family: var(--font-sans);
}
}






/* Img */
 
.img-responsive,
 
.img-responsive img {
 
    max-width: 100%;
 
    height: auto;
 
 
 
#right-navigation,
#content {
margin-right: 0px;
}
#footer {
margin-right: 0px;
}
}


/** Оформление всего текста
/* Position the tabs */
    Styles for all text    **/
#left-navigation,
body {
#right-navigation {
    /* Нормализация размеров табуляции */
margin-top: 60px;
    -moz-tab-size: 4;
     height: 30px;
    -o-tab-size: 4;
     tab-size: 4;
}
}


/** Заглавие / Title **/
#mw-head-base {
/* Отделяет название пространства имён от остального названия страницы
height: 80px;
    Separate the namespace from the rest of the page’s name */
margin-top: -80px;
    .mw-page-title-separator::after {
    content: ' ';
}
}


/** Позволяет скрывать части оглавления
.mw-body {
    Hideable TOC elements              **/
margin-top: 5px;
/* Уровни разделов */
.toc-hidelevel2 .toclevel-1 ul,
.toc-hidelevel3 .toclevel-2 ul,
.toc-hidelevel4 .toclevel-3 ul,
/* Нумерация */
.toc-nonumbers .tocnumber {
    display: none;
}
}




/* Tabs styling */
nav.vector-menu-tabs,
nav.vector-menu-dropdown {
    background: none;
    padding: 0;
    height: 30px;
}


nav.vector-menu-tabs li a {
    box-sizing: unset;
}


nav.vector-menu-tabs,
nav.vector-menu-tabs a,
.vector-menu-portal .vector-menu-heading,
nav.vector-menu-tabs ul,
nav.vector-menu-tabs ul li.selected,
#mw-head .vector-menu-dropdown .vector-menu-heading {
    background: none;
}
.vector-legacy-sidebar .vector-menu-portal .vector-menu-heading{
    background-size: 100% 0px;
}
#mw-head .vector-menu-dropdown .vector-menu-heading {
    margin: -2px -1px 0px 0px;
}
#mw-head .vector-menu-dropdown .vector-menu-heading {
    color: var(--color-topbar-text);
}




a {
nav.vector-menu-tabs ul li,
     color: var(--link-color);
nav.vector-menu-tabs ul li.selected,
nav.vector-menu-tabs ul li:hover,
nav.vector-menu-tabs ul li:focus,
nav.vector-menu-dropdown,
nav.vector-menu-dropdown:hover,
nav.vector-menu-dropdown:focus {
     --ca-background-image: var(--vector-tabs);
    --ca-background-color: var(--content-border-top-color);
    background: var(--ca-background-color);
    position: relative;
}
nav.vector-menu-tabs {
    background: var(--content-border-top-color);
}
}


a:visited,
nav.vector-menu-tabs ul li.selected{
a:active {
     --ca-background-color: var(--content-background-color);
     color: var(--link-color);
    background-position-y: bottom, 0px;
}
}


a.new {
nav.vector-menu-tabs ul li:hover:not(.selected),
     color: var(--redlink-color);
nav.vector-menu-tabs ul li:focus:not(.selected),
nav.vector-menu-dropdown:hover,
nav.vector-menu-dropdown:focus {
     --ca-background-color: var(--content-border-top-color-hovered);
}
}


a.new:visited {
nav.vector-menu-tabs ul li:before,
     color: var(--redlink-color);
nav.vector-menu-dropdown:before {
     content: "";
    position: absolute;
    left: 0;
    background: var(--ca-background-image) var(--content-border-top-color) no-repeat left top;
    width: 0px;
    height: 100%;
    pointer-events: none;
}
#left-navigation nav.vector-menu-tabs li:first-child:before {
    background: var(--vector-tabs-first) no-repeat left top;
    height: 93px
}
}




#p-cactions div.vector-menu-content li a,
nav.vector-menu-dropdown .mw-list-item a {
#mw-panel .portal .vector-menu-content li a,
#p-cactions div.vector-menu-content li a:visited,
#p-cactions div.vector-menu-content li a:active,
#mw-panel .portal .vector-menu-content li a:visited {
     color: var(--link-color);
     color: var(--link-color);
}
}


nav.vector-menu-tabs li a,
 
nav.vector-menu-tabs li a:active,
nav.vector-menu-tabs li a {
nav.vector-menu-tabs li a:visited,
    padding: 9px 13px 0px 13px;
#mw-panel .portal .vector-menu-content li a:active {
    height: 21px;
    color: var(--color-topbar-text);
    line-height: 1.1em;
}
 
nav.vector-menu-dropdown label {
padding: 9px 13px 0px 13px !important;
}
}


nav.vector-menu-tabs li.new a,
 
nav.vector-menu-tabs li.new a:visited,
.vector-menu-tabs .mw-watchlink.icon {
nav.vector-menu-tabs li.new a:active,
/* Force font-size when using the icon */
#p-cactions div.vector-menu-content li.new a,
    font-size: 16px !important;
#mw-panel .portal .vector-menu-content li.new a,
#p-cactions div.vector-menu-content li.new a:visited,
#mw-panel .portal .vector-menu-content li.new a:visited,
#p-cactions div.vector-menu-content li.new a:active,
#mw-panel .portal .vector-menu-content li.new a:active {
    color: var(--redlink-color);
}
}


.mw-parser-output a.extiw,
.vector-menu-tabs .mw-watchlink.icon a {
.mw-parser-output a.external {
     width: 45px;
     color: var(--link-color);
    margin-right: 0px;
    margin-bottom: -10px;
}
}


.mw-parser-output a.extiw:visited,
.vector-menu-tabs .mw-watchlink.icon a:before {
.mw-parser-output a.external:visited,
left: 1.17em;
.mw-parser-output a.extiw:active,
     top: 0.60em;
.mw-parser-output a.external:active {
     color: var(--link-color);
}
}


.mw-parser-output .tweet-name a.external {
 
    color: var(--color-base);
 
nav.vector-menu-dropdown .vector-menu-content {
transition: none;
min-width: calc(100% - 14px); /* Subtract 14px from the minimum width so that it doesn't cross the grass border */
}
}


.mw-parser-output .tweet-handle a.external,
nav.vector-menu {
.mw-parser-output .tweet-date a.external {
    margin: 0 8px 0 6px;
     color: #4c4c4c;
}
#p-views,
#p-cactions {
margin: 0;
}
#p-cactions {
padding-right: 8px;
     height: 30px;
}
}


.jsPurgeLink a.external {
#left-navigation nav.vector-menu {
    color: var(--link-color);
margin-left: 0;
}
}


nav.vector-menu h3 span {
    padding-left: 0px;
    font-weight: bold;
}


nav.vector-menu h3 a {
    height: 30px;
    margin-right: 0px;
}


nav.vector-menu div.vector-menu-content {
    top: 30px;
}




/* Set the outer content link colours to light gray and white */
#mw-panel *:not(h3) > a:not(:hover):not(:focus),
#footer a:not(:hover):not(:focus),
.mw-notification a:not(:hover):not(:focus) {
color: var( --color-siderbar-links)  !important;
}


#mw-panel h3,
#mw-panel a,
#footer li,
#footer a,
.mw-notification a {
color: var(--color-siderbar-base) !important;
}




/** Оформление WikiEditor **/
nav.mw-portlet.emptyPortlet {
.wikiEditor-ui-top {
display: none;
    border: 0 !important;
}
}
.wikiEditor-ui-toolbar {
 
    border-bottom: 1px solid silver;
.mw-body, .parsoid-body,
div#content {
background-color: var(--content-background-color);
border-top: 0px solid var(--content-background-color);
border-bottom: 0px solid var(--content-background-color);
border-left: 0px solid var(--content-background-color);
border-right: 0px solid var(--content-background-color);
}
}
.wikiEditor-ui-text {
.oo-ui-windowManager-modal > .oo-ui-dialog > .oo-ui-window-frame {
    background-color: var(--background-color-base);
background-color: var(--content-background-color);
}
}
.wikiEditor-ui-text textarea {
#preferences .mw-htmlform-submit-buttons {
    background-color: transparent;
background-color: var(--content-background-color);
}
}


Line 405: Line 300:




/* Fix wikiEditor spacing */
#upload_container {
    margin-top: -1px;
}
#upload_div {
    margin: 0;
    width: auto;
    border-width: 1px 0;
    box-shadow: none;
}


/* Prevent page jump from the toolbar loading */
.client-js #editform {
    /* To disable margin collapsing */
    overflow: hidden;
}
.client-js .mw-editform > #wpTextbox1 {
    margin-top: 73px;
}


/** Стили для Панели быстрой вставки **/
#userButtons {
    background-color: transparent;
    border: 1px solid #76FF76;
    font-size: 95%;
    width: 100%;
    border-collapse: collapse;
    color: black;
    margin: 1px 0px 1em;
    }


#userButtons tr th, table#userButtons * tr th {
    background-color: #BBFFBB;
    border: 1px solid #76FF76;
    font-size: 95%;
    padding: 2px;
    text-align: center;
    }


#userButtons tr td, table#userButtons * tr td {
/* Style the personal links */
     border: 1px solid #76FF76;
#p-personal {
     padding: 5px;
     right: 10px;
     }
     top: 5px;
     margin-right: 0;
    margin-left: 10px;
}
 
#p-personal a {
    color: white;
}


#userButtons tr td p, table#userButtons * tr td p {
.mw-echo-alert {
     margin-top:0;
    background-color: #8e721c;
     margin-bottom:0;
    border: 1px solid #fff;
    }
     border-radius: 4px;
     font-weight: bold;
}


#userButtons.collapsible tr th, table#userButtons.collapsible * tr th {
#p-personal .vector-menu-content-list {
    padding-left: 6.5em;
padding: 1px 0.5em 1px 0;
    }
}


/* Отступ перед ПБВ */
.vector-user-menu-legacy li {
.editOptions {
    padding-top: 0.3em;
        padding-bottom:0px;
    padding-bottom: 0.3em;
        margin-bottom:0px;
}
        }


/* Стиль разделителей ПБВ */
.oo-ui-icon-bell, .mw-ui-icon-bell::before,
#userButtons * hr {  
.oo-ui-icon-tray, .mw-ui-icon-tray::before {
     background-color: #76FF76;
    filter: invert(1);
     width: 100%;
}
     float: left; /* без этого разделители начинались примерно в центре страницы */
.vector-user-menu-legacy #pt-anonuserpage,
.vector-user-menu-legacy #pt-tmpuserpage,
.vector-user-menu-legacy #pt-userpage a {
     filter: invert(1);
    padding-top: 0;
     background-size: 14px;
     background-position: unset;
}
}


.userButtonsAddons {
.vector-user-menu-legacy #pt-anonuserpage span,
    border: 1px dotted #aaaaaa !important;
.vector-user-menu-legacy #pt-tmpuserpage span,
    padding: 2px;
.vector-user-menu-legacy #pt-userpage a span {
    font-size: 95%;
     color: white;
    background-color: transparent !important;
     filter: invert(1);
    width: 49%;
    border-collapse: collapse;
    color: black;
    margin-bottom: 1em;
    margin-left: 0px;
     margin-right: 0px;
     margin-top: 1em;
}
}


.userButtonsAddons * th, .userButtonsAddons * td {
.skin-vector-legacy #p-personal #pt-notifications-notice,
    border:1px dotted #aaaaaa !important;
.skin-vector-legacy #p-personal #pt-notifications-alert {
    padding:2px;
margin-right: 0;
    background-color:transparent !important;
    padding: 0.2em;
}
}


.userButtonsAddons * th {
.skin-vector-legacy #pt-notifications-notice .mw-echo-notifications-badge,
     text-align:center;
.skin-vector-legacy #pt-notifications-alert .mw-echo-notifications-badge {
     top: 0;
    width: 14px;
    height: 14px;
    background-size: 14px 14px;
    margin-right: 8px;
}
}


/* Скрытие блоков в панели быстрой вставки. Блоки предназначенные для обсуждений не отображаются на обычных страницах, и наоборот. */
.skin-vector-legacy #pt-notifications-notice .mw-echo-notifications-badge.mw-echo-notifications-badge-all-read,
.ns-talk * .userButtons-subject {
.skin-vector-legacy #pt-notifications-alert .mw-echo-notifications-badge.mw-echo-notifications-badge-all-read {
     display: none;
     margin-right: 2px;
}
}


.ns-subject * .userButtons-talk,
.skin-vector-legacy #pt-notifications-notice .mw-echo-notifications-badge:after,
.ns-subject * #userButtonsSignature {
.skin-vector-legacy #pt-notifications-alert .mw-echo-notifications-badge:after {
     display: none;
     top: 4px;
    filter: invert(1);
border-color: var(--color-inverted-fixed);
color: var(--color-inverted-fixed);
}
}
/** Конец стилей Панели быстрой вставки **/




Line 519: Line 391:




/*** СТАНДАРТНЫЕ КЛАССЫ
        STANDARD CLASSES  ***/


/** Пиксельное масштабирование изображений и иконок пользователей **/
 
.pixel-image,
 
.sprite,
/* Style the simple search */
.sprite img,
#p-search {
.mw-userlink,
margin-left: 0;
.invslot,
}
.ns-special .gallerybox img,
 
.ns-14 .gallerybox img,
#p-search form {
.filehistory a img,
position: relative;
.mcui,
padding: 0 0px 0 1px;
.gui {
height: 30px;
    image-rendering: optimizeSpeed;
}
    image-rendering: -webkit-optimize-contrast;
 
    image-rendering: optimize-contrast;
#simpleSearch {
    image-rendering: -moz-crisp-edges;
border: 0;
    image-rendering: -o-crisp-edges;
background-color: #D0CFCF;
    image-rendering: crisp-edges;
background-image: -webkit-linear-gradient(#C3C3C3, #DBDBDB);
    image-rendering: pixelated;
background-image: linear-gradient(#C3C3C3, #DBDBDB);
    -ms-interpolation-mode: nearest-neighbor;
-webkit-transition: none !important;
-moz-transition: none !important;
transition: none !important;
}
}


/** Отключить разрыв строки на пробелах **/
.vector-search-box,
.nowrap {
.vector-search-box form {
     white-space: nowrap;
     margin: 0;
}
}


/** Hide noscript only elements **/
/* Remove border of search bar */
.noscript {
#simpleSearch .vector-search-box-input {
     display: none;
     border: none;
    border-radius: 0;
    outline: none;
    box-shadow: none;
    height: 30px;
    padding-left: 13px;
}
}


/** Скрытие от простых смертных ненужных элементов **/
.vector-search-box-input::placeholder {
.admin_only,
color: var(--searchinput-placeholder-color);
.admin_only_inline,
.admin_only_block,
.admin_only_flex {
    display: none !important;
}
}


/** Только для средств чтения с экрана **/
/* Style the simple search */
.sr-only:not(:focus):not(:active) {
#p-search {
    clip: rect(0 0 0 0);  
margin-left: 0;
    clip-path: inset(50%);
width: unset;
    height: 1px;
min-width: unset;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}
}


#p-search #searchform {
position: relative;
padding: 0 0px 0 1px;
}


/* Unstyle codex search */
#p-search #searchform .cdx-text-input__input,
#p-search #searchform .cdx-search-input,
#p-search #searchform {
background: none;
display: block;
    border: none;
    border-radius: 0;
    outline: none;
    box-shadow: none;
    height: 30px;
}


/* Keep old vector default styles */
#p-search #searchform .cdx-search-input__input-wrapper {
    height: 100%;
    min-width: 6.5em;
    width: 20vw;
    max-width: 26em;
    margin: 0;
}


#p-search #searchform .cdx-search-input__input-wrapper {
position: relative;
border: 0;
background-color: #D0CFCF;
background-image: -webkit-linear-gradient(#C3C3C3, #DBDBDB);
background-image: linear-gradient(#C3C3C3, #DBDBDB);
-webkit-transition: none !important;
-moz-transition: none !important;
transition: none !important;
}




/** Имитация стилей для ссылок, работающих только через JS **/
#p-search #searchform .cdx-text-input__input {
.jslink {
     background-color: rgba(255, 255, 255, 0.5);
     color: #0645AD;
     color: #000;
     -webkit-user-select: none;
    min-height: unset;
        -moz-user-select: none;
     padding: 5px 2.15384615em 5px 0.4em;
        -ms-user-select: none;
     outline: none;
}
}
body .jslink {  
 
    color: #90c0fe;
#p-search #searchform .cdx-text-input__input::placeholder {
color: var(--searchinput-placeholder-color);
}
}
.jslink:hover {
 
     text-decoration: underline;
#p-search #searchform .cdx-search-input__end-button {
display: block;
    position: absolute;
    top: 1px;
    bottom: 1px;
    right: 1px;
     min-width: 28px;
    width: 2.15384615em;
    border: 0;
    padding: 0;
     cursor: pointer;
     cursor: pointer;
    direction: ltr;
    text-indent: -99999px;
    white-space: nowrap;
    overflow: hidden;
    z-index: 1;
    background: no-repeat center / 1.23076923em url(/skins/Vector/resources/skins.vector.styles.legacy/images/search.svg?ac00d);
    opacity: 0.67;
    margin: 0;
    min-height: unset;
}
}
.jslink:active {
 
    color: #FAA700;
#p-search #searchform > .cdx-search-input__end-button {
right: 5px;
}
 
#p-search #searchform .cdx-thumbnail__placeholder,
#p-search #searchform .cdx-thumbnail__image {
background-color: var(--background-color-base);
}
 
/* Fix placeholder text being too light in chrome */
::-webkit-input-placeholder {
color: inherit;
opacity: 0.54;
}
 
/* The suggestions shown under the search bar */
.suggestions.searchbar {
margin-right: -1px;
}
 
.suggestions.searchbar > .suggestions-results,
.suggestions.searchbar > .mw-searchSuggest-link {
display: block;
margin-left: 1px;
}
 
.suggestions.searchbar .suggestions-results,
.suggestions.searchbar .suggestions-special,
.suggestions .suggestions-results,
.suggestions .suggestions-special {
background-color: #DBDADA !important;
border-color: #3C3B3B !important;
}
 
.suggestions.searchbar .suggestions-result-current,
.suggestions .suggestions-result-current {
background-color: #0078D7 !important;
}
}


Line 604: Line 560:




/** Чередующиеся ячейки и строки таблиц
 
    Alternating table cells and rows    **/
 
/*
 
     .alternatecells:nth-child(odd) {
 
         background-color: #F9F9F9;
 
 
 
 
 
 
/* ------------------------------------------- */
 
/* Theme and Width toggle buttons styling */
.theme-toggle-button,
.width-toggle-button {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    margin: 4px 0;
}
body.stw-theme-dark .theme-toggle-button:hover,
body.stw-theme-dark .width-toggle-button:hover,
#p-personal .theme-toggle-button,
#p-personal .width-toggle-button {
    display: inline-block;
    margin: 0 0 0 10px;
     padding: 0.5em;
    font-size: 0.875em;
    line-height: 1;
}
/* Width control */
@media screen and (min-width: 1200px) {
    body {
         max-width: var(--fixed-width); /* Dynamicly changed by Hook */
        margin: auto;
     }
     }
    body.wgl-theme-dark .alternatecells:nth-child(odd) {
}
        background-color: #222;
    }
   
    .alternaterows tr:nth-child(even) {
        background-color: #F9F9F9;
    }
    body.wgl-theme-dark .alternaterows tr:nth-child(even) {
        background-color: #222;
    }
*/

Revision as of 05:26, 7 January 2026

/* Structorica Vector Theme */

:root {
    /* Width control */
    --fixed-width: 1200px; /* Dynamicly changed by Hook */
        
    --vector-tabs: none;
    --vector-tabs-first: none;
}


:root {
    --external-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2390c0fe' d='M6 1h5v5L8.86 3.85 4.7 8 4 7.3l4.15-4.16L6 1Z M2 3h2v1H2v6h6V8h1v2a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E");
}

.mw-parser-output a.external {
    background-image: var(--external-icon);
    background-size: 0.857em;
    padding-right: 1em;
}


/* Main page elements */
body {
    background-color: var(--site-background-color);
    color: var(--color-base);
}


#mw-page-base {
	background: none;
	height: 85px;
}

/* Remove excess spacing between the sidebar and the logo */
div#mw-panel {
	padding-top: 0;
	padding-bottom: 10px;
}

#p-logo,
#p-logo a {
	margin: auto;
	/*height: 140px; */
}
#p-logo {
    margin-bottom: 0;
}







#mw-panel h3 {
	text-decoration: none !important;
	cursor: pointer;
}

/* Set the tab link colours to black and bold */
#p-namespaces a,
#p-views a,
#p-cactions-label span,
div#mw-head div.vectorMenu h4,
div#p-variants.vectorMenu #mw-vector-current-variant {
	font-weight: 600;
	text-decoration: none;
}


#p-namespaces .new a,
#p-views .new a {
	color: #e1e6cc;
}










#right-navigation,
#content {
	margin-right: 0px;
}
#footer {
	margin-right: 0px;
}

/* Position the tabs */
#left-navigation,
#right-navigation {
	margin-top: 60px;
    height: 30px;
}

#mw-head-base {
	height: 80px;
	margin-top: -80px;
}

.mw-body {
	margin-top: 5px;
}


/* Tabs styling */
nav.vector-menu-tabs,
nav.vector-menu-dropdown {
    background: none;
    padding: 0;
    height: 30px;
}

nav.vector-menu-tabs li a {
    box-sizing: unset;
}

nav.vector-menu-tabs,
nav.vector-menu-tabs a,
.vector-menu-portal .vector-menu-heading,
nav.vector-menu-tabs ul,
nav.vector-menu-tabs ul li.selected,
#mw-head .vector-menu-dropdown .vector-menu-heading {
    background: none;
}
.vector-legacy-sidebar .vector-menu-portal .vector-menu-heading{
    background-size: 100% 0px;
}
#mw-head .vector-menu-dropdown .vector-menu-heading {
    margin: -2px -1px 0px 0px;
}
#mw-head .vector-menu-dropdown .vector-menu-heading {
    color: var(--color-topbar-text);
}


nav.vector-menu-tabs ul li,
nav.vector-menu-tabs ul li.selected,
nav.vector-menu-tabs ul li:hover,
nav.vector-menu-tabs ul li:focus,
nav.vector-menu-dropdown,
nav.vector-menu-dropdown:hover,
nav.vector-menu-dropdown:focus {
    --ca-background-image: var(--vector-tabs);
    --ca-background-color: var(--content-border-top-color);
    background: var(--ca-background-color);
    position: relative;
}
nav.vector-menu-tabs {
    background: var(--content-border-top-color);
}

nav.vector-menu-tabs ul li.selected{
    --ca-background-color: var(--content-background-color);
    background-position-y: bottom, 0px;
}

nav.vector-menu-tabs ul li:hover:not(.selected),
nav.vector-menu-tabs ul li:focus:not(.selected),
nav.vector-menu-dropdown:hover,
nav.vector-menu-dropdown:focus {
    --ca-background-color: var(--content-border-top-color-hovered);
}

nav.vector-menu-tabs ul li:before,
nav.vector-menu-dropdown:before {
    content: "";
    position: absolute;
    left: 0;
    background: var(--ca-background-image) var(--content-border-top-color) no-repeat left top;
    width: 0px;
    height: 100%;
    pointer-events: none;
}
#left-navigation nav.vector-menu-tabs li:first-child:before {
    background: var(--vector-tabs-first) no-repeat left top;
    height: 93px
}


nav.vector-menu-dropdown .mw-list-item a {
    color: var(--link-color);
}


nav.vector-menu-tabs li a {
    padding: 9px 13px 0px 13px;
    height: 21px;
    line-height: 1.1em;
}

nav.vector-menu-dropdown label {
	padding: 9px 13px 0px 13px !important;
}


.vector-menu-tabs .mw-watchlink.icon {
	/* Force font-size when using the icon */
    font-size: 16px !important;
}

.vector-menu-tabs .mw-watchlink.icon a {
    width: 45px;
    margin-right: 0px;
    margin-bottom: -10px;
}

.vector-menu-tabs .mw-watchlink.icon a:before {
	left: 1.17em;
    top: 0.60em;
}



nav.vector-menu-dropdown .vector-menu-content {
	transition: none;
	min-width: calc(100% - 14px); /* Subtract 14px from the minimum width so that it doesn't cross the grass border */
}

nav.vector-menu {
    margin: 0 8px 0 6px;
}
#p-views,
#p-cactions {
	margin: 0;
}
#p-cactions {
	padding-right: 8px;
    height: 30px;
}

#left-navigation nav.vector-menu {
	margin-left: 0;
}

nav.vector-menu h3 span {
    padding-left: 0px;
    font-weight: bold;
}

nav.vector-menu h3 a {
    height: 30px;
    margin-right: 0px;
}

nav.vector-menu div.vector-menu-content {
    top: 30px;
}


/* Set the outer content link colours to light gray and white */
#mw-panel *:not(h3) > a:not(:hover):not(:focus),
#footer a:not(:hover):not(:focus),
.mw-notification a:not(:hover):not(:focus) {
	color: var( --color-siderbar-links)  !important;
}

#mw-panel h3,
#mw-panel a,
#footer li,
#footer a,
.mw-notification a {
	color: var(--color-siderbar-base) !important;
}


nav.mw-portlet.emptyPortlet {
	display: none;
}

.mw-body, .parsoid-body,
div#content {
	background-color: var(--content-background-color);
	border-top: 0px solid var(--content-background-color);
	border-bottom: 0px solid var(--content-background-color);
	border-left: 0px solid var(--content-background-color);
	border-right: 0px solid var(--content-background-color);
}
.oo-ui-windowManager-modal > .oo-ui-dialog > .oo-ui-window-frame {
	background-color: var(--content-background-color);
}
#preferences .mw-htmlform-submit-buttons {
	background-color: var(--content-background-color);
}
















/* Style the personal links */
#p-personal {
    right: 10px;
    top: 5px;
    margin-right: 0;
    margin-left: 10px;
}

#p-personal a {
    color: white;
}

.mw-echo-alert {
    background-color: #8e721c;
    border: 1px solid #fff;
    border-radius: 4px;
    font-weight: bold;
}

#p-personal .vector-menu-content-list {
	padding: 1px 0.5em 1px 0;
}

.vector-user-menu-legacy li {
    padding-top: 0.3em;
    padding-bottom: 0.3em;
}

.oo-ui-icon-bell, .mw-ui-icon-bell::before,
.oo-ui-icon-tray, .mw-ui-icon-tray::before {
    filter: invert(1);
}
.vector-user-menu-legacy #pt-anonuserpage,
.vector-user-menu-legacy #pt-tmpuserpage,
.vector-user-menu-legacy #pt-userpage a {
    filter: invert(1);
    padding-top: 0;
    background-size: 14px;
    background-position: unset;
}

.vector-user-menu-legacy #pt-anonuserpage span,
.vector-user-menu-legacy #pt-tmpuserpage span,
.vector-user-menu-legacy #pt-userpage a span {
    color: white;
    filter: invert(1);
}

.skin-vector-legacy #p-personal #pt-notifications-notice,
.skin-vector-legacy #p-personal #pt-notifications-alert {
	margin-right: 0;
}

.skin-vector-legacy #pt-notifications-notice .mw-echo-notifications-badge,
.skin-vector-legacy #pt-notifications-alert .mw-echo-notifications-badge {
    top: 0;
    width: 14px;
    height: 14px;
    background-size: 14px 14px;
    margin-right: 8px;
}

.skin-vector-legacy #pt-notifications-notice .mw-echo-notifications-badge.mw-echo-notifications-badge-all-read,
.skin-vector-legacy #pt-notifications-alert .mw-echo-notifications-badge.mw-echo-notifications-badge-all-read {
    margin-right: 2px;
}

.skin-vector-legacy #pt-notifications-notice .mw-echo-notifications-badge:after,
.skin-vector-legacy #pt-notifications-alert .mw-echo-notifications-badge:after {
    top: 4px;
    filter: invert(1);
	border-color: var(--color-inverted-fixed);
	color: var(--color-inverted-fixed);
}
















/* Style the simple search */
#p-search {
	margin-left: 0;
}

#p-search form {
	position: relative;
	padding: 0 0px 0 1px;
	height: 30px;
}

#simpleSearch {
	border: 0;
	background-color: #D0CFCF;
	background-image: -webkit-linear-gradient(#C3C3C3, #DBDBDB);
	background-image: linear-gradient(#C3C3C3, #DBDBDB);
	-webkit-transition: none !important;
	-moz-transition: none !important;
	transition: none !important;
}

.vector-search-box,
.vector-search-box form {
    margin: 0;
}

/* Remove border of search bar */
#simpleSearch .vector-search-box-input {
    border: none;
    border-radius: 0;
    outline: none;
    box-shadow: none;
    height: 30px;
    padding-left: 13px;
}

.vector-search-box-input::placeholder {
	color: var(--searchinput-placeholder-color);
}

/* Style the simple search */
#p-search {
	margin-left: 0;
	width: unset;
	min-width: unset;
}

#p-search #searchform {
	position: relative;
	padding: 0 0px 0 1px;
}

/* Unstyle codex search */
#p-search #searchform .cdx-text-input__input,
#p-search #searchform .cdx-search-input,
#p-search #searchform {
	background: none;
	display: block;
    border: none;
    border-radius: 0;
    outline: none;
    box-shadow: none;
    height: 30px;
}

/* Keep old vector default styles */
#p-search #searchform .cdx-search-input__input-wrapper {
    height: 100%;
    min-width: 6.5em;
    width: 20vw;
    max-width: 26em;
    margin: 0;
}

#p-search #searchform .cdx-search-input__input-wrapper {
	position: relative;
	border: 0;
	background-color: #D0CFCF;
	background-image: -webkit-linear-gradient(#C3C3C3, #DBDBDB);
	background-image: linear-gradient(#C3C3C3, #DBDBDB);
	-webkit-transition: none !important;
	-moz-transition: none !important;
	transition: none !important;
}


#p-search #searchform .cdx-text-input__input {
    background-color: rgba(255, 255, 255, 0.5);
    color: #000;
    min-height: unset;
    padding: 5px 2.15384615em 5px 0.4em;
}

#p-search #searchform .cdx-text-input__input::placeholder {
	color: var(--searchinput-placeholder-color);
}

#p-search #searchform .cdx-search-input__end-button {
	display: block;
    position: absolute;
    top: 1px;
    bottom: 1px;
    right: 1px;
    min-width: 28px;
    width: 2.15384615em;
    border: 0;
    padding: 0;
    cursor: pointer;
    direction: ltr;
    text-indent: -99999px;
    white-space: nowrap;
    overflow: hidden;
    z-index: 1;
    background: no-repeat center / 1.23076923em url(/skins/Vector/resources/skins.vector.styles.legacy/images/search.svg?ac00d);
    opacity: 0.67;
    margin: 0;
    min-height: unset;
}

#p-search #searchform > .cdx-search-input__end-button {
	right: 5px;
}

#p-search #searchform .cdx-thumbnail__placeholder,
#p-search #searchform .cdx-thumbnail__image {
	background-color: var(--background-color-base);
}

/* Fix placeholder text being too light in chrome */
::-webkit-input-placeholder {
	color: inherit;
	opacity: 0.54;
}

/* The suggestions shown under the search bar */
.suggestions.searchbar {
	margin-right: -1px;
}

.suggestions.searchbar > .suggestions-results,
.suggestions.searchbar > .mw-searchSuggest-link {
	display: block;
	margin-left: 1px;
}

.suggestions.searchbar .suggestions-results,
.suggestions.searchbar .suggestions-special,
.suggestions .suggestions-results,
.suggestions .suggestions-special {
	background-color: #DBDADA !important;
	border-color: #3C3B3B !important;
}

.suggestions.searchbar .suggestions-result-current,
.suggestions .suggestions-result-current {
	background-color: #0078D7 !important;
}



















/* ------------------------------------------- */

/* Theme and Width toggle buttons styling */
.theme-toggle-button,
.width-toggle-button {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    margin: 4px 0;
}
body.stw-theme-dark .theme-toggle-button:hover,
body.stw-theme-dark .width-toggle-button:hover,
#p-personal .theme-toggle-button,
#p-personal .width-toggle-button {
    display: inline-block;
    margin: 0 0 0 10px;
    padding: 0.5em;
    font-size: 0.875em;
    line-height: 1;
}
/* Width control */
@media screen and (min-width: 1200px) {
    body {
        max-width: var(--fixed-width); /* Dynamicly changed by Hook */
        margin: auto;
    }
}