User:Dr.Bryan/CodeHighlight.css

/* Меняет цвет выделения */
 * selection {background: rgb(var(--theme-link-color--rgb),.2);}

/* -- Хайлайт -- */ .mw-highlight { background: transparent; } .mw-parser-output > pre, .mw-parser-output > .mw-highlight > pre, .ns-8 .page__main:not(.page__main-is-edit) pre { white-space: pre-wrap; word-break: break-word; background: rgb(var(--theme-accent-color--rgb),.05); border: 1px dashed var(--theme-border-color); padding: 8px !important; line-height: 18px !important; } .mediawiki:not(.ns-8, .ns-10) .page-content pre {width: fit-content;} .mw-parser-output pre span {font-weight: normal !important;} code { background: rgb(var(--theme-accent-color--rgb),.1); padding: 0px 2px 2px; border-radius: 5px; border-style: dashed; }

pre .p {color: var(--theme-page-text-color) !important;} pre .nc {color: var(--pygments-c) !important;} /*pre .p+.p+.nn,.c+.p+.nn*/ pre .nn {color: var(--pygments-nl) !important;} pre .nt,.mi,.mf {color: var(--pygments-ne) !important;} pre .nf,.nb {color: var(--pygments-gd) !important;} pre .k {color: var(--pygments-sr) !important;} pre .kt {color: var(--pygments-cp) !important;} pre .kc {color: var(--pygments-na) !important;} pre .nd,.kp,.cp,.bp {color: var(--pygments-go) !important;} pre .o+.kc,.kc+.o,.n+.o,.p+.o,.o+.n {color: var(--pygments-m) !important;border-bottom: 1px dotted #ccc;}

/* -- Основной шаблон -- */ .cm-mw-template-ground { background-color: rgba(255,201,0,0.05) !important; background-image: none; color: var(--theme-article-text-color) !important; } .cm-mw-template-ground.cm-mw-template-argument-name { color: #007590 !important; } .cm-mw-template-ground.cm-mw-pagename { color: var(--theme-link-color) !important; } /* - Шаблон в шаблоне - */ .cm-mw-template2-ground { color: #80478e !important; background-color: hsla(289,100%,65%,0.05) !important; } .cm-mw-template2-ground.cm-mw-template-argument-name { color: #007590 !important; } .cm-mw-template2-ground.cm-mw-template { color: var(--accent-text-color) !important; }

.cm-mw-section-1 span, .cm-mw-section-2 span, .cm-mw-section-3 span, .cm-mw-section-4 span { background-color: rgba(76,89,236,0.13) !important; color: var(--accent-text-color) !important; } .cm-mw-ext-ref { background-color: rgba(3,141,0,0.05) !important; color: #1b7700 !important; } .cm-mw-ext-gallery { background-color: rgba(120,0,141,0.07); color: #8f1bc6 !important; }

/* Фон для кода модульных инфобоксов */ .portable-infobox pre.cm-mw-exttag { color: #859900 !important; background: #FFFCF2 !important; } /* Подсветка строки кода модульных инфобоксов */ .portable-infobox pre.cm-mw-exttag.CodeMirror-line:hover {background: #fcf5e0 !important;}

/* Подсветка всех строк кода */ .portable-infobox pre.CodeMirror-line:hover {background: #fffcf4 !important;}

/* == Вики-деятельность, заливка правок == */ .mw-special-Recentchanges { --main-color: #52c12a; --maim-color-bg: rgb(189 32 45 / 5%); --user-color-bg: rgb(140 0 255 / 8%); --new-color-bg: rgb(0 191 255 / 10%); --mediawiki-color-bg: rgb(189 32 45 / 5%); --template-color-bg: rgb(148 19 71 / 8%); --delete-color-bg: rgb(179 0 0 / 3%); --protect-color-bg: rgb(178 212 1 / 10%); --project-color: green; }

/*.wds-tabs.activity-tabs a {*/ /*	color: #3a3a3a;*/ /*}*/ /*.wds-tabs__tab.wds-is-current{*/ /*	box-shadow: inset 0 -2px 0 0 #3a3a3a !important;*/ /*}*/

table.mw-enhanced-rc { margin: 5px 0; padding: 0px 0px 5px 0; background-image: linear-gradient(to right, #d5ffb738, transparent); border-left-color: var(--main-color); }

table.mw-enhanced-rc::before { left: 10px; top: 10px; } span.mw-collapsible-toggle.mw-collapsible-arrow.mw-enhancedchanges-arrow.mw-enhancedchanges-arrow-space.mw-collapsible-toggle-expanded, .mw-icon-arrow-collapsed, .mw-collapsible-arrow.mw-collapsible-toggle-collapsed { left: 35px; top: 10px; }

.mw-changeslist-line-inner { padding-left: 40px !important; }

.mw-changeslist .mw-tag-marker, .mw-changeslist .mw-title, span.mw-changeslist-line-inner-articleLink { margin-bottom: 0px !important; }

/* правки */ table.mw-enhanced-rc.mw-changeslist-ns-8:not(.mw-changeslist-src-mw-new):not(.mw-collapsible), table[class*=' mw-changeslist-ns8-'], table[class^='mw-changeslist-ns8-'], table.mw-enhanced-rc.mw-changeslist-ns-9:not(.mw-changeslist-src-mw-new):not(.mw-collapsible), table[class*=' mw-changeslist-ns9-'], table[class^='mw-changeslist-ns9-'] { background-image: linear-gradient(to right, var(--maim-color-bg), transparent); }

/* Участник */ table.mw-enhanced-rc.mw-changeslist-ns-2:not(.mw-changeslist-src-mw-new):not(.mw-collapsible):not(.mw-changeslist-log-block), table[class*=' mw-changeslist-ns2-'], table[class^='mw-changeslist-ns2-'], table.mw-enhanced-rc.mw-changeslist-ns-3:not(.mw-changeslist-src-mw-new):not(.mw-collapsible), table[class*=' mw-changeslist-ns3-'], table[class^='mw-changeslist-ns3-'], table.mw-enhanced-rc.mw-changeslist-ns-1202:not(.mw-changeslist-src-mw-new):not(.mw-collapsible), table[class*=' mw-changeslist-ns1202-'], table[class^='mw-changeslist-ns1202-'] { border-left-color: var(--user-color); background-image: linear-gradient(to right, var(--user-color-bg), transparent); }

/* Новые страницы */ table.mw-enhanced-rc.mw-changeslist-src-mw-new, table.mw-enhanced-rc.mw-changeslist-ns-6, table[class*=' mw-changeslist-ns6-'], table[class^='mw-changeslist-ns6-'], table.mw-enhanced-rc.mw-changeslist-ns-7, table[class*=' mw-changeslist-ns7-'], table[class^='mw-changeslist-ns7-'], table.mw-enhanced-rc.mw-changeslist-log-upload { border-left-color: var(--new-color); background-image: linear-gradient(to right, var(--new-color-bg), transparent); }

/* MediaWiki */ table.mw-enhanced-rc.mw-changeslist-ns-8:not(.mw-changeslist-src-mw-new):not(.mw-collapsible), table[class*=' mw-changeslist-ns8-'], table[class^='mw-changeslist-ns8-'], table.mw-enhanced-rc.mw-changeslist-ns-9:not(.mw-changeslist-src-mw-new):not(.mw-collapsible), table[class*=' mw-changeslist-ns9-'], table[class^='mw-changeslist-ns9-'] { border-left-color: var(--mediawiki-color); background-image: linear-gradient(to right, var(--mediawiki-color-bg), transparent); }

/* Шаблоны */ table.mw-enhanced-rc.mw-changeslist-ns-10:not(.mw-changeslist-src-mw-new):not(.mw-collapsible), table[class*=' mw-changeslist-ns10-'], table[class^='mw-changeslist-ns10-'], table.mw-enhanced-rc.mw-changeslist-ns-11:not(.mw-changeslist-src-mw-new):not(.mw-collapsible), table[class*=' mw-changeslist-ns11-'], table[class^='mw-changeslist-ns11-'], table.mw-enhanced-rc.mw-changeslist-ns-828:not(.mw-changeslist-src-mw-new):not(.mw-collapsible), table[class*=' mw-changeslist-ns828-'], table[class^='mw-changeslist-ns828-'], table.mw-enhanced-rc.mw-changeslist-ns-829:not(.mw-changeslist-src-mw-new):not(.mw-collapsible), table[class*=' mw-changeslist-ns1829-'], table[class^='mw-changeslist-ns829-'] { border-left-color: var(--template-color); background-image: linear-gradient(to right, var(--template-color-bg), transparent); }

/* Защищена */ table.mw-enhanced-rc.mw-changeslist-log-move, table.mw-enhanced-rc.mw-changeslist-log-protect { border-left-color: var(--protect-color); background-image: linear-gradient(to right, var(--protect-color-bg), transparent); }

/* Удалена */ table.mw-enhanced-rc.mw-changeslist-log-delete, table.mw-enhanced-rc.mw-changeslist-log-block { border-left-color: var(--delete-color); background-image: linear-gradient(to right, var(--delete-color-bg), transparent); }

/* Project */ table.mw-enhanced-rc.mw-changeslist-ns-4:not(.mw-changeslist-src-mw-new):not(.mw-collapsible), table[class*=' mw-changeslist-ns4-'], table[class^='mw-changeslist-ns4-'], table.mw-enhanced-rc.mw-changeslist-ns-5:not(.mw-changeslist-src-mw-new):not(.mw-collapsible), table[class*=' mw-changeslist-ns5-'], table[class^='mw-changeslist-ns5-'] { border-left-color: var(--project-color); }

/* - "Откатить" в свежих правках - */ .mw-changeslist-line-inner-rollback { opacity: 0.2; position: absolute; right: 20px; bottom: 0; transition: 0.5s; } .mw-changeslist-line-inner-rollback:hover { opacity: 1; transition: 0.5s; }

/* - Фикс цвета имени и коммента - */ .mw-changeslist-line-inner-logEntry .comment, .mw-changeslist-line-inner-logEntry .comment a { color: gray; line-height: 15px; font-weight: normal !important; text-shadow: none; font-size: 14px; }