The editors' meeting has been canceled for technical reasons.
MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 30: | Line 30: | ||
background-image: none; | background-image: none; | ||
} | } | ||
.mw-body { | .mw-body { | ||
margin-top: -1px; | margin-top: -1px; | ||
Line 39: | Line 38: | ||
/*侧边栏*/ | /*侧边栏*/ | ||
#mw-panel { | |||
position: absolute; | |||
font-weight: bold; | |||
top: 0; | |||
width: 10em; | |||
left: 0; | |||
} | |||
#mw-panel .portal { | |||
margin: 0 0 -5px 0; | |||
padding: 0; | |||
direction: ltr; | |||
background-position: top left; | |||
background-repeat: no-repeat; | |||
} | |||
#mw-panel .portal h3 { | |||
margin: 0; | margin: 0; | ||
padding: | cursor: default; | ||
font-size: | border: 0; | ||
padding: 5px 6px !important; | |||
background-color: var(--twitch-purple); | |||
font-size: 20px; | |||
margin-top: 8px; | |||
color: #fff !important; | |||
} | |||
#mw-panel .portal h3::after { | |||
content: ""; | |||
width: 6px; | |||
height: 6px; | |||
background-color: #fff; | background-color: #fff; | ||
position: absolute; | |||
margin-top: 5px; | |||
margin-left: 4px; | |||
} | |||
#mw-panel .portal .vector-menu-content { | |||
margin: -5px 0 0 0; | |||
} | |||
#mw-panel .portal .vector-menu-content .vector-menu-content-list li a { | |||
display: block; | |||
font-weight: normal; | |||
color: #000; | |||
transition: all 0.15s ease-in; | |||
font-size: 0.9rem; | |||
background-color: #f7f7f8; | |||
text-decoration: none; | |||
margin: -2.5px 0 -2.5px 0; | |||
padding: 5px 0 5px 18px; | |||
box-shadow: 0 2px 0 rgba(210, 210, 211, 0.8); | |||
} | |||
#mw-panel .portal .vector-menu-content .vector-menu-content-list li a:hover { | |||
color: #fff; | |||
background-color: var(--twitch-purple-2); | |||
margin: -2.5px 0 -2.5px 5px; | |||
padding: 5px 0 5px 25px; | |||
} | } | ||
/*标签*/ | /*标签*/ | ||
.vector-menu-tabs, .vector-menu-tabs a, #mw-head .vector-menu-dropdown .vector-menu-heading { | .vector-menu-tabs, .vector-menu-tabs a, #mw-head .vector-menu-dropdown .vector-menu-heading { | ||
Line 54: | Line 98: | ||
.vector-menu-tabs-legacy li { | .vector-menu-tabs-legacy li { | ||
background-image: none; | background-image: none; | ||
background-color:var(--twitch- | background-color:var(--twitch-purple); | ||
background-position: left bottom; | background-position: left bottom; | ||
background-repeat: repeat-x; | background-repeat: repeat-x; | ||
Line 75: | Line 119: | ||
position: absolute; | position: absolute; | ||
/* border: 2px solid #9e7b67; */ | /* border: 2px solid #9e7b67; */ | ||
background: var(--twitch- | background: var(--twitch-purple); | ||
padding: 3px; | padding: 3px; | ||
padding-right: 22px; | padding-right: 22px; | ||
Line 98: | Line 142: | ||
:root { | :root { | ||
--font-weight-semibold: 600; | --font-weight-semibold: 600; | ||
--twitch- | --twitch-purple: #9147ff; | ||
--back-color-1:rgba(247, 247, 248,0. | --twitch-purple-2:#772ce8; | ||
--back-color-1:rgba(247, 247, 248,0.95); | |||
--border-color-1:#FF66B2; | --border-color-1:#FF66B2; | ||
} | } |
Revision as of 22:39, 24 October 2024
body { background-color:#efeff1; } body::before { position: absolute; content: ""; top: 0; left: 0; width: 100%; height: 930px; /* 限制背景图片的显示高度 */ background-image: linear-gradient(to bottom, transparent 25%, #efeff1 70%), url('https://www.neuro-book.com/mediawiki/resources/assets/vector.jpg'); background-size: cover; background-repeat: no-repeat; background-position: center top; z-index: -1; /* 确保在其他内容下方 */ pointer-events: none; /* 允许鼠标事件穿透 */ } #mw-head { position: absolute; top: 0; right: 0; width: 100%; background-color: transparent; } #mw-page-base { background-color: transparent; background-image: none; } .mw-body { margin-top: -1px; border: 2px solid var(--border-color-1); border-right-width: 0; background-color: var(--back-color-1); } /*侧边栏*/ #mw-panel { position: absolute; font-weight: bold; top: 0; width: 10em; left: 0; } #mw-panel .portal { margin: 0 0 -5px 0; padding: 0; direction: ltr; background-position: top left; background-repeat: no-repeat; } #mw-panel .portal h3 { margin: 0; cursor: default; border: 0; padding: 5px 6px !important; background-color: var(--twitch-purple); font-size: 20px; margin-top: 8px; color: #fff !important; } #mw-panel .portal h3::after { content: ""; width: 6px; height: 6px; background-color: #fff; position: absolute; margin-top: 5px; margin-left: 4px; } #mw-panel .portal .vector-menu-content { margin: -5px 0 0 0; } #mw-panel .portal .vector-menu-content .vector-menu-content-list li a { display: block; font-weight: normal; color: #000; transition: all 0.15s ease-in; font-size: 0.9rem; background-color: #f7f7f8; text-decoration: none; margin: -2.5px 0 -2.5px 0; padding: 5px 0 5px 18px; box-shadow: 0 2px 0 rgba(210, 210, 211, 0.8); } #mw-panel .portal .vector-menu-content .vector-menu-content-list li a:hover { color: #fff; background-color: var(--twitch-purple-2); margin: -2.5px 0 -2.5px 5px; padding: 5px 0 5px 25px; } /*标签*/ .vector-menu-tabs, .vector-menu-tabs a, #mw-head .vector-menu-dropdown .vector-menu-heading { background-image: none; } .vector-menu-tabs-legacy li { background-image: none; background-color:var(--twitch-purple); background-position: left bottom; background-repeat: repeat-x; } .vector-menu-tabs-legacy li a{ color:#fff; } .vector-menu-tabs-legacy .new a, .vector-menu-tabs-legacy .new a:visited{ color:#CCC; } .vector-menu-tabs-legacy .selected {/*选择的标签*/ background: var(--back-color-1); border: 2px solid var(--border-color-1); border-bottom: 0 solid #fff; margin: -1.5px 0 0 0; } /*用户栏*/ #p-personal{ position: absolute; /* border: 2px solid #9e7b67; */ background: var(--twitch-purple); padding: 3px; padding-right: 22px; top:0; right:0; width:100%; font: inherit; font-weight: var(--font-weight-semibold); } #mw-head #p-personal .vector-menu-content .vector-menu-content-list a{ color:#fff; } #mw-head #p-personal .vector-menu-content .vector-menu-content-list a.new{ color:#CCC; } /*?*/ #mw-panel{ margin: 40px 0 0 0; } /*色表格*/ :root { --font-weight-semibold: 600; --twitch-purple: #9147ff; --twitch-purple-2:#772ce8; --back-color-1:rgba(247, 247, 248,0.95); --border-color-1:#FF66B2; }