MediaWiki:Vector.css: различия между версиями
Ivan (обсуждение | вклад) Нет описания правки |
Ivan (обсуждение | вклад) Нет описания правки |
||
| (не показаны 23 промежуточные версии этого же участника) | |||
| Строка 7: | Строка 7: | ||
--vector-tabs: none; | --vector-tabs: none; | ||
--vector-tabs-first: none; | --vector-tabs-first: none; | ||
} | |||
.mw-parser-output a.external { | |||
padding-right: 0em; | |||
background-size: 0.0em; | |||
} | } | ||
.mw-parser-output a.external::after { | |||
content: ''; | |||
display: inline-block; | |||
width: 0.857em; | |||
height: 0.857em; | |||
background-color: var(--link-color); | |||
-webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%3E%3Cpath%20fill%3D%22black%22%20d%3D%22M6%201h5v5L8.86%203.85%204.7%208%204%207.3l4.15-4.16L6%201Z%20M2%203h2v1H2v6h6V8h1v2a1%201%200%200%201-1%201H2a1%201%200%200%201-1-1V4a1%201%200%200%201%201-1Z%22/%3E%3C/svg%3E"); | |||
mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%3E%3Cpath%20fill%3D%22black%22%20d%3D%22M6%201h5v5L8.86%203.85%204.7%208%204%207.3l4.15-4.16L6%201Z%20M2%203h2v1H2v6h6V8h1v2a1%201%200%200%201-1%201H2a1%201%200%200%201-1-1V4a1%201%200%200%201%201-1Z%22/%3E%3C/svg%3E"); | |||
-webkit-mask-size: cover; | |||
mask-size: cover; | |||
vertical-align: text-top; | |||
margin-top: 3px; | |||
margin-left: 0.143em; | |||
} | |||
/* Main page elements */ | /* Main page elements */ | ||
body { | body { | ||
background-color: var(--background-color | background-color: var(--site-background-color); | ||
color: var(--color-base); | color: var(--color-base); | ||
background-image: var(--header-background); | |||
background-repeat: repeat-x, repeat; | |||
background-position: top left, top left; | |||
background-size: auto 320px; | |||
} | } | ||
body.rootpage-Structorica_Wiki #firstHeading, | |||
body.rootpage-Main_Page #firstHeading, | |||
body.page-Main_Page #firstHeading { | |||
display: none; | |||
} | |||
body.rootpage-Structorica_Wiki #bodyContent, | |||
body.rootpage-Main_Page #bodyContent, | |||
body.page-Main_Page #bodyContent { | |||
clear: both; | |||
} | |||
body.rootpage-Structorica_Wiki .mw-indicators, | |||
body.rootpage-Main_Page .mw-indicators, | |||
body.page-Main_Page .mw-indicators{ | |||
margin-top: -15px; | |||
} | |||
| Строка 40: | Строка 75: | ||
#p-logo a { | #p-logo a { | ||
margin: auto; | margin: auto; | ||
background-size: contain; | |||
/*height: 140px; */ | /*height: 140px; */ | ||
} | } | ||
#p-logo { | #p-logo { | ||
margin-bottom: | margin-top: 2px; | ||
margin-bottom: 4px; | |||
height: 115px; | |||
} | } | ||
/* Hide 'Read' in Toolbar*/ | |||
#ca-view { | |||
display: none !important; | |||
} | |||
| Строка 56: | Строка 95: | ||
cursor: pointer; | cursor: pointer; | ||
} | } | ||
/* Set the tab link colours to black and bold */ | /* Set the tab link colours to black and bold */ | ||
| Строка 67: | Строка 107: | ||
} | } | ||
#p-namespaces .new a, | #p-namespaces .new a, | ||
| Строка 95: | Строка 127: | ||
} | } | ||
#footer { | #footer { | ||
margin-top: 10px; | |||
margin-right: 0px; | margin-right: 0px; | ||
padding: 8px 16px 8px 16px; | |||
} | } | ||
| Строка 140: | Строка 174: | ||
#mw-head .vector-menu-dropdown .vector-menu-heading { | #mw-head .vector-menu-dropdown .vector-menu-heading { | ||
margin: -2px -1px 0px 0px; | margin: -2px -1px 0px 0px; | ||
} | |||
#mw-head .vector-menu-dropdown .vector-menu-heading { | |||
color: var(--color-topbar-text); | |||
} | } | ||
| Строка 153: | Строка 190: | ||
--ca-background-color: var(--content-border-top-color); | --ca-background-color: var(--content-border-top-color); | ||
background: var(--ca-background-color); | background: var(--ca-background-color); | ||
position: relative; | position: relative; | ||
} | } | ||
| Строка 159: | Строка 195: | ||
background: var(--content-border-top-color); | background: var(--content-border-top-color); | ||
} | } | ||
nav.vector-menu-tabs ul li.selected{ | nav.vector-menu-tabs ul li.selected{ | ||
| Строка 189: | Строка 224: | ||
nav.vector-menu-dropdown .mw-list-item a { | |||
color: var(--link-color); | |||
} | |||
| Строка 235: | Строка 273: | ||
padding-right: 8px; | padding-right: 8px; | ||
height: 30px; | height: 30px; | ||
margin-right: -2px; | |||
} | } | ||
| Строка 268: | Строка 307: | ||
#footer a, | #footer a, | ||
.mw-notification a { | .mw-notification a { | ||
color: var(--color- | color: var(--color-siderbar-base) !important; | ||
} | } | ||
#footer { | |||
background-color: #252526; | |||
/*border: 2px #313233 solid;*/ | |||
} | |||
#footer-icons a { | |||
padding: 0px; | |||
background-color: #ffffff00; | |||
border: 0px; | |||
} | |||
#footer-icons li { | |||
padding: 0px; | |||
} | |||
#footer-icons { | |||
margin-top: 2px; | |||
height: 31px; | |||
} | |||
nav.mw-portlet.emptyPortlet { | nav.mw-portlet.emptyPortlet { | ||
display: none; | display: none; | ||
} | |||
#footer:after { | |||
content: ''; | |||
clear: both; | |||
display: block; | |||
} | } | ||
| Строка 398: | Строка 459: | ||
/* Style the simple search */ | /* Style the simple search */ | ||
#p-search { | #p-search { | ||
margin-left: | margin-left: -2px; | ||
} | } | ||
| Строка 430: | Строка 491: | ||
height: 30px; | height: 30px; | ||
padding-left: 13px; | padding-left: 13px; | ||
background-color: var(--simplesearch-background-color); | |||
} | } | ||
| Строка 438: | Строка 500: | ||
/* Style the simple search */ | /* Style the simple search */ | ||
#p-search { | #p-search { | ||
width: unset; | width: unset; | ||
min-width: unset; | min-width: unset; | ||
| Строка 483: | Строка 544: | ||
#p-search #searchform .cdx-text-input__input { | #p-search #searchform .cdx-text-input__input { | ||
background-color: | background-color: #3552e5; | ||
color: # | color: #fff; | ||
min-height: unset; | min-height: unset; | ||
padding: 5px 2.15384615em 5px 0.4em; | padding: 5px 2.15384615em 5px 0.4em; | ||
| Строка 514: | Строка 575: | ||
min-height: unset; | min-height: unset; | ||
} | } | ||
.cdx-button--size-large { | |||
min-height: unset; | |||
} | |||
#p-search #searchform > .cdx-search-input__end-button { | #p-search #searchform > .cdx-search-input__end-button { | ||
right: 5px; | right: 5px; | ||
| Строка 523: | Строка 586: | ||
background-color: var(--background-color-base); | background-color: var(--background-color-base); | ||
} | } | ||
.searchButton[name='go'] { | |||
background: no-repeat center / 1.23076923em url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%23fff' d='M12.2 13.6a7 7 0 1 1 1.4-1.4l5.4 5.4-1.4 1.4zM3 8a5 5 0 1 0 10 0A5 5 0 0 0 3 8z'/%3E%3C/svg%3E"); | |||
opacity: 0.9; | |||
} | |||
/* Fix placeholder text being too light in chrome */ | /* Fix placeholder text being too light in chrome */ | ||
::-webkit-input-placeholder { | ::-webkit-input-placeholder { | ||
color: inherit; | color: inherit; | ||
opacity: 0. | opacity: 0.8; | ||
} | } | ||
| Строка 599: | Строка 668: | ||
max-width: var(--fixed-width); /* Dynamicly changed by Hook */ | max-width: var(--fixed-width); /* Dynamicly changed by Hook */ | ||
margin: auto; | margin: auto; | ||
} | |||
} | |||
/* --------------------------- */ | |||
/* Discord Sidebar */ | |||
#n-Discord-\(En\) a, | |||
#n-Дискорд-\(Ru\) a { | |||
display: block; | |||
position: relative; | |||
width: 120px; | |||
height: 20px; | |||
color: #ffffff00; | |||
left: -0.25em; | |||
} | |||
#n-Discord-\(En\) a::before { | |||
position: absolute; | |||
width: 100%; | |||
height: 100%; | |||
top: 0; | |||
left: 0; | |||
content: ""; | |||
background: url('images/essentials/Discord_wiki_en.svg') no-repeat; | |||
background-size: contain; | |||
} | |||
#n-Дискорд-\(Ru\) a::before { | |||
position: absolute; | |||
width: 100%; | |||
height: 100%; | |||
top: 0; | |||
left: -0.25em; | |||
content: ""; | |||
background: url('images/essentials/Discord_wiki_ru.svg') no-repeat; | |||
background-size: contain; | |||
} | |||
/** Адаптации для узких экранов **/ | |||
@media screen and (max-width: 720px) { | |||
#mw-head { | |||
top: 13px; | |||
} | |||
.mw-body { | |||
margin-top: -2px; | |||
} | |||
#p-logo { | |||
margin-bottom: 0; | |||
height: 160px; | |||
} | |||
#p-logo, | |||
#p-logo a { | |||
margin: 0; | |||
} | |||
div#p-search form { | |||
background: none; | |||
border: none; | |||
margin: 0; | |||
} | |||
div#p-search form::before, | |||
div#p-search form::after { | |||
border: none; | |||
} | |||
div#simpleSearch::before { | |||
border-left-color: transparent; | |||
} | |||
div#simpleSearch::after { | |||
border-top-color: transparent; | |||
} | |||
div#mw-navigation div#mw-panel { | |||
position: static !important; /* position: relative may be added to inline styles by built-in JS after page load; it needs an !important to override */ | |||
} | |||
#left-navigation,#content { | |||
margin-left:10px | |||
} | |||
#footer { | |||
margin-left: 8px | |||
} | |||
#footer:before { | |||
content: none | |||
} | |||
#left-navigation,#right-navigation { | |||
margin-top: 40px | |||
} | |||
#p-personal { | |||
top: -8px | |||
} | |||
div#mw-navigation div#mw-panel { | |||
display: flex; | |||
flex-wrap: wrap; | |||
justify-content: space-evenly; | |||
width: 100% | |||
} | |||
.vector-legacy-sidebar .vector-menu-portal { | |||
width: 142px; | |||
flex-shrink: 0; | |||
display: var(--sidebar-display,flex); | |||
flex-direction: column | |||
} | |||
.vector-legacy-sidebar .vector-menu-portal .vector-menu-content { | |||
flex-grow: 1; | |||
display: block !important | |||
} | |||
#mw-panel nav.vector-menu-portal.collapsed h3:before { | |||
-webkit-transform: rotate(0deg); | |||
transform: rotate(0deg) | |||
} | |||
#p-search { | |||
float: none; | |||
position: absolute; | |||
right: 0; | |||
left: 0; | |||
margin: 0; | |||
bottom: -31px; | |||
margin-bottom: -1em | |||
} | |||
#p-search #searchform { | |||
margin: 0; | |||
padding-top: 0px; | |||
padding-right: calc(10px); | |||
padding-bottom: 0px; | |||
padding-left: calc(20px); | |||
} | |||
#p-search #searchform .cdx-search-input__input-wrapper { | |||
margin: 0; | |||
padding: 0; | |||
width: 100%; | |||
max-width: 100%; | |||
border-bottom: 3px solid var(--simplesearch-left-border-color); | |||
border-right: 3px solid var(--simplesearch-top-border-color) | |||
} | |||
#p-search #searchform .cdx-search-input__end-button { | |||
right: -2px | |||
} | |||
#p-search #searchform > .cdx-search-input__end-button { | |||
right: calc(1em + 14px) | |||
} | |||
.mw-body,.parsoid-body,div#content { | |||
padding-top: calc(2em + 33px); | |||
} | |||
#p-cactions { | |||
margin-right: -8px | |||
} | |||
.vector-menu-dropdown .vector-menu-content { | |||
left: unset; | |||
right: 7px | |||
} | |||
#p-search #searchform .cdx-search-input__input-wrapper:before,#p-search #searchform .cdx-search-input__input-wrapper:after,#mw-page-base::after { | |||
content: none | |||
} | |||
div#mw-panel { | |||
padding-top: 2.5em; | |||
padding-bottom: 1.5em; | |||
} | |||
.vector-search-box-inner{ | |||
width: auto; | |||
max-width: none; | |||
} | |||
} | |||
@media screen and (max-width: 500px) { | |||
/* TOC fix */ | |||
#mw-content-text > .mw-parser-output > div[style*="float"] { | |||
float: none !important; | |||
margin: 0 !important; | |||
} | } | ||
} | } | ||