MediaWiki:Common.css:修订间差异
跳到导航
跳到搜索
无编辑摘要 |
无编辑摘要 |
||
第1行: | 第1行: | ||
/*引自萌娘百科( | /*引自萌娘百科(https://zh.moegirl.org.cn/MediaWiki:Gadget-desktop-styles.css)*/ | ||
/* 黑幕模板配合CSS*/ | /* Tabs */ | ||
.tab .TabLabelText { | |||
padding: 1px; | |||
background: #fff; | |||
cursor: pointer; | |||
flex: none; | |||
} | |||
.tab .TabLabel { | |||
z-index: 2; | |||
position: relative; | |||
-webkit-user-select: none; | |||
-moz-user-select: none; | |||
-ms-user-select: none; | |||
-o-user-select: none; | |||
user-select: none; | |||
display: flex; | |||
flex-wrap: wrap; | |||
} | |||
.tab .TabLabelText.selected { | |||
padding: 1px; | |||
background: white; | |||
} | |||
.tab .TabContent { | |||
background: white; | |||
padding: 20px 30px; | |||
position: relative; | |||
z-index: 1; | |||
border: 1px solid #aaa; | |||
} | |||
.tab .TabContentText { | |||
display: none; | |||
} | |||
.tab .TabContentText.selected { | |||
display: block; | |||
} | |||
.tab .tabLabelTop .TabLabelText { | |||
border-top: 3px solid transparent; | |||
border-left: 1px solid transparent; | |||
border-right: 1px solid transparent; | |||
} | |||
.tab .tabLabelTop .TabLabelText.selected { | |||
border-top: 3px solid green; | |||
border-left: 1px solid #aaa; | |||
border-right: 1px solid #aaa; | |||
} | |||
.tab .tabLabelTop.reverse .TabLabelText { | |||
border-bottom: 3px solid transparent; | |||
border-left: 1px solid transparent; | |||
border-right: 1px solid transparent; | |||
border-top: 1px solid transparent; | |||
} | |||
.tab .tabLabelTop.reverse .TabLabelText.selected { | |||
border-bottom: 3px solid green; | |||
border-left: 1px solid #aaa; | |||
border-right: 1px solid #aaa; | |||
border-top: 1px solid transparent; | |||
} | |||
.tab .tabLabelBottom .TabLabelText { | |||
border-bottom: 3px solid transparent; | |||
border-left: 1px solid transparent; | |||
border-right: 1px solid transparent; | |||
} | |||
.tab .tabLabelBottom .TabLabelText.selected { | |||
border-bottom: 3px solid green; | |||
border-left: 1px solid #aaa; | |||
border-right: 1px solid #aaa; | |||
} | |||
.tab .tabLabelBottom.reverse .TabLabelText { | |||
border-top: 3px solid transparent; | |||
border-left: 1px solid transparent; | |||
border-right: 1px solid transparent; | |||
border-bottom: 1px solid transparent; | |||
} | |||
.tab .tabLabelBottom.reverse .TabLabelText.selected { | |||
border-top: 3px solid green; | |||
border-left: 1px solid #aaa; | |||
border-right: 1px solid #aaa; | |||
border-bottom: 1px solid transparent; | |||
} | |||
.tab .tabLabelLeft .TabLabelText { | |||
border-left: 3px solid transparent; | |||
border-top: 1px solid transparent; | |||
border-bottom: 1px solid transparent; | |||
} | |||
.tab .tabLabelLeft .TabLabelText.selected { | |||
border-left: 3px solid green; | |||
border-top: 1px solid #aaa; | |||
border-bottom: 1px solid #aaa; | |||
} | |||
.tab .tabLabelLeft.reverse .TabLabelText { | |||
border-right: 3px solid transparent; | |||
border-top: 1px solid transparent; | |||
border-bottom: 1px solid transparent; | |||
border-left: 1px solid transparent; | |||
} | |||
.tab .tabLabelLeft.reverse .TabLabelText.selected { | |||
border-right: 3px solid green; | |||
border-top: 1px solid #aaa; | |||
border-bottom: 1px solid #aaa; | |||
border-left: 1px solid transparent; | |||
} | |||
.tab .tabLabelRight .TabLabelText { | |||
border-right: 3px solid transparent; | |||
border-top: 1px solid transparent; | |||
border-bottom: 1px solid transparent; | |||
} | |||
.tab .tabLabelRight .TabLabelText.selected { | |||
border-right: 3px solid green; | |||
border-top: 1px solid #aaa; | |||
border-bottom: 1px solid #aaa; | |||
} | |||
.tab .tabLabelRight.reverse .TabLabelText { | |||
border-left: 3px solid transparent; | |||
border-top: 1px solid transparent; | |||
border-bottom: 1px solid transparent; | |||
border-right: 1px solid transparent; | |||
} | |||
.tab .tabLabelRight.reverse .TabLabelText.selected { | |||
border-left: 3px solid green; | |||
border-top: 1px solid #aaa; | |||
border-bottom: 1px solid #aaa; | |||
border-right: 1px solid transparent; | |||
} | |||
.tab .Tabs .TabDivider { | |||
width: 100%; | |||
order: 2; | |||
} | |||
.tab .Tabs.reverse .TabDivider { | |||
height: 2px; | |||
} | |||
.tab .Tabs.tabLabelLeft .TabLabel, | |||
.tab .Tabs.tabLabelRight .TabContent { | |||
order: 1; | |||
} | |||
.tab .Tabs.tabLabelLeft .TabContent, | |||
.tab .Tabs.tabLabelRight .TabLabel { | |||
order: 3; | |||
} | |||
.tab .Tabs.tabLabelLeft, | |||
.tab .Tabs.tabLabelRight { | |||
display: flex; | |||
flex-wrap: nowrap; | |||
width: auto; | |||
} | |||
.tab .Tabs.tabLabelLeft .TabDivider, | |||
.tab .Tabs.tabLabelRight .TabDivider { | |||
height: 100%; | |||
width: 0; | |||
} | |||
.tab .Tabs.tabLabelLeft.reverse .TabDivider, | |||
.tab .Tabs.tabLabelRight.reverse .TabDivider { | |||
width: 1px; | |||
} | |||
.tab .Tabs.tabLabelLeft .TabLabel, | |||
.tab .Tabs.tabLabelRight .TabLabel { | |||
flex-direction: column; | |||
} | |||
.tab .Tabs.tabLabelLeft:not(.AutoWidth) .TabContent, | |||
.tab .Tabs.tabLabelRight:not(.AutoWidth) .TabContent { | |||
flex: 1; | |||
} | |||
.Tabs { | |||
max-width: 100%; | |||
} | |||
.Tabs.AutoWidth { | |||
width: max-content; | |||
display: flow-root; | |||
} | |||
.Tabs.FloatLeft { | |||
float: left; | |||
margin-right: 1em; | |||
} | |||
.Tabs.FloatRight { | |||
float: right; | |||
margin-left: 1em; | |||
} | |||
.Tabs .Tab { | |||
border-bottom: 1px solid #aaa; | |||
} | |||
.Tabs .Tab:first-child { | |||
border-top: 1px solid #aaa; | |||
} | |||
.Tabs .Tab .TabLabelText { | |||
padding: 7px; | |||
} | |||
.Tabs .Tab .TabContentText { | |||
padding: 3px; | |||
} | |||
.infotemplatebox>table td>.Tabs .TabLabel, | |||
.infotemplatebox>table td>.Tabs .TabContent { | |||
margin: 0 -1px; | |||
} | |||
/* | |||
* 感谢[[User:Great Brightstar]]的贡献,源码来自[[special:diff/834104]] | |||
* 以下是原注释: | |||
* 在这里使用 font-feature-settings 属性会让使用“lang”标签的元素强制使用 OpenType 技术显示本地化的变体字(通过激活 locl 标签,即便浏览器本身不直接激活)。 | |||
* 如果你使用思源黑体(非 CN、JP、KO、TW 版)、Noto Sans CJK 显示文字的话就有可能看到效果。 | |||
* 关于上述这个 CSS 属性的用法,参阅:https://developer.mozilla.org/en-US/docs/Web/CSS/font-feature-settings 注意:此文引用的 OpenType Feature Tags list 同样需要关注。 | |||
* 如有任何问题请即刻禁用之 | |||
* Nbdd0121: 将原来的[lang]改为span[lang],这样就不会影响非{{lang}}的[lang]了 (e.g. div#mw-content-text) | |||
*/ | |||
span[lang] { | |||
font-family: initial; | |||
font-feature-settings: "locl"on; | |||
-webkit-font-feature-settings: "locl"on; | |||
} | |||
[style*="font:"i] span[lang], | |||
[style*="font-family:"i] span[lang] { | |||
font-family: inherit; | |||
} | |||
/* 日语斜体 */ | |||
@font-face { | |||
font-family: JapaneseItalic; | |||
src: local(meiryo); | |||
} | |||
i span[lang=ja i], | |||
span[lang=ja i] i, | |||
[style*=italic i] span[lang=ja i], | |||
span[lang=ja i] [style*=italic i] { | |||
font-family: JapaneseItalic, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; | |||
} | |||
[style*="font:"i] i span[lang=ja i], | |||
[style*="font-family:"i] i span[lang=ja i], | |||
[style*="font:"i] span[lang=ja i] i, | |||
[style*="font-family:"i] span[lang=ja i] i, | |||
[style*="font:"i] [style*=italic i] span[lang=ja i], | |||
[style*="font-family:"i] [style*=italic i] span[lang=ja i], | |||
[style*="font:"i] span[lang=ja i] [style*=italic i], | |||
[style*="font-family:"i] span[lang=ja i] [style*=italic i] { | |||
font-family: inherit; | |||
} | |||
/* 黑幕模板配合CSS */ | |||
/* 把这几行单独拎出来写,否则会被Firefox合并到“.heimu a”这条规则,然后又被上面的“点过外链不变色”规则override */ | |||
.heimu, | .heimu, | ||
.heimu rt { | .heimu rt { |
2022年4月7日 (四) 09:37的版本
/*引自萌娘百科(https://zh.moegirl.org.cn/MediaWiki:Gadget-desktop-styles.css)*/
/* Tabs */
.tab .TabLabelText {
padding: 1px;
background: #fff;
cursor: pointer;
flex: none;
}
.tab .TabLabel {
z-index: 2;
position: relative;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
user-select: none;
display: flex;
flex-wrap: wrap;
}
.tab .TabLabelText.selected {
padding: 1px;
background: white;
}
.tab .TabContent {
background: white;
padding: 20px 30px;
position: relative;
z-index: 1;
border: 1px solid #aaa;
}
.tab .TabContentText {
display: none;
}
.tab .TabContentText.selected {
display: block;
}
.tab .tabLabelTop .TabLabelText {
border-top: 3px solid transparent;
border-left: 1px solid transparent;
border-right: 1px solid transparent;
}
.tab .tabLabelTop .TabLabelText.selected {
border-top: 3px solid green;
border-left: 1px solid #aaa;
border-right: 1px solid #aaa;
}
.tab .tabLabelTop.reverse .TabLabelText {
border-bottom: 3px solid transparent;
border-left: 1px solid transparent;
border-right: 1px solid transparent;
border-top: 1px solid transparent;
}
.tab .tabLabelTop.reverse .TabLabelText.selected {
border-bottom: 3px solid green;
border-left: 1px solid #aaa;
border-right: 1px solid #aaa;
border-top: 1px solid transparent;
}
.tab .tabLabelBottom .TabLabelText {
border-bottom: 3px solid transparent;
border-left: 1px solid transparent;
border-right: 1px solid transparent;
}
.tab .tabLabelBottom .TabLabelText.selected {
border-bottom: 3px solid green;
border-left: 1px solid #aaa;
border-right: 1px solid #aaa;
}
.tab .tabLabelBottom.reverse .TabLabelText {
border-top: 3px solid transparent;
border-left: 1px solid transparent;
border-right: 1px solid transparent;
border-bottom: 1px solid transparent;
}
.tab .tabLabelBottom.reverse .TabLabelText.selected {
border-top: 3px solid green;
border-left: 1px solid #aaa;
border-right: 1px solid #aaa;
border-bottom: 1px solid transparent;
}
.tab .tabLabelLeft .TabLabelText {
border-left: 3px solid transparent;
border-top: 1px solid transparent;
border-bottom: 1px solid transparent;
}
.tab .tabLabelLeft .TabLabelText.selected {
border-left: 3px solid green;
border-top: 1px solid #aaa;
border-bottom: 1px solid #aaa;
}
.tab .tabLabelLeft.reverse .TabLabelText {
border-right: 3px solid transparent;
border-top: 1px solid transparent;
border-bottom: 1px solid transparent;
border-left: 1px solid transparent;
}
.tab .tabLabelLeft.reverse .TabLabelText.selected {
border-right: 3px solid green;
border-top: 1px solid #aaa;
border-bottom: 1px solid #aaa;
border-left: 1px solid transparent;
}
.tab .tabLabelRight .TabLabelText {
border-right: 3px solid transparent;
border-top: 1px solid transparent;
border-bottom: 1px solid transparent;
}
.tab .tabLabelRight .TabLabelText.selected {
border-right: 3px solid green;
border-top: 1px solid #aaa;
border-bottom: 1px solid #aaa;
}
.tab .tabLabelRight.reverse .TabLabelText {
border-left: 3px solid transparent;
border-top: 1px solid transparent;
border-bottom: 1px solid transparent;
border-right: 1px solid transparent;
}
.tab .tabLabelRight.reverse .TabLabelText.selected {
border-left: 3px solid green;
border-top: 1px solid #aaa;
border-bottom: 1px solid #aaa;
border-right: 1px solid transparent;
}
.tab .Tabs .TabDivider {
width: 100%;
order: 2;
}
.tab .Tabs.reverse .TabDivider {
height: 2px;
}
.tab .Tabs.tabLabelLeft .TabLabel,
.tab .Tabs.tabLabelRight .TabContent {
order: 1;
}
.tab .Tabs.tabLabelLeft .TabContent,
.tab .Tabs.tabLabelRight .TabLabel {
order: 3;
}
.tab .Tabs.tabLabelLeft,
.tab .Tabs.tabLabelRight {
display: flex;
flex-wrap: nowrap;
width: auto;
}
.tab .Tabs.tabLabelLeft .TabDivider,
.tab .Tabs.tabLabelRight .TabDivider {
height: 100%;
width: 0;
}
.tab .Tabs.tabLabelLeft.reverse .TabDivider,
.tab .Tabs.tabLabelRight.reverse .TabDivider {
width: 1px;
}
.tab .Tabs.tabLabelLeft .TabLabel,
.tab .Tabs.tabLabelRight .TabLabel {
flex-direction: column;
}
.tab .Tabs.tabLabelLeft:not(.AutoWidth) .TabContent,
.tab .Tabs.tabLabelRight:not(.AutoWidth) .TabContent {
flex: 1;
}
.Tabs {
max-width: 100%;
}
.Tabs.AutoWidth {
width: max-content;
display: flow-root;
}
.Tabs.FloatLeft {
float: left;
margin-right: 1em;
}
.Tabs.FloatRight {
float: right;
margin-left: 1em;
}
.Tabs .Tab {
border-bottom: 1px solid #aaa;
}
.Tabs .Tab:first-child {
border-top: 1px solid #aaa;
}
.Tabs .Tab .TabLabelText {
padding: 7px;
}
.Tabs .Tab .TabContentText {
padding: 3px;
}
.infotemplatebox>table td>.Tabs .TabLabel,
.infotemplatebox>table td>.Tabs .TabContent {
margin: 0 -1px;
}
/*
* 感谢[[User:Great Brightstar]]的贡献,源码来自[[special:diff/834104]]
* 以下是原注释:
* 在这里使用 font-feature-settings 属性会让使用“lang”标签的元素强制使用 OpenType 技术显示本地化的变体字(通过激活 locl 标签,即便浏览器本身不直接激活)。
* 如果你使用思源黑体(非 CN、JP、KO、TW 版)、Noto Sans CJK 显示文字的话就有可能看到效果。
* 关于上述这个 CSS 属性的用法,参阅:https://developer.mozilla.org/en-US/docs/Web/CSS/font-feature-settings 注意:此文引用的 OpenType Feature Tags list 同样需要关注。
* 如有任何问题请即刻禁用之
* Nbdd0121: 将原来的[lang]改为span[lang],这样就不会影响非{{lang}}的[lang]了 (e.g. div#mw-content-text)
*/
span[lang] {
font-family: initial;
font-feature-settings: "locl"on;
-webkit-font-feature-settings: "locl"on;
}
[style*="font:"i] span[lang],
[style*="font-family:"i] span[lang] {
font-family: inherit;
}
/* 日语斜体 */
@font-face {
font-family: JapaneseItalic;
src: local(meiryo);
}
i span[lang=ja i],
span[lang=ja i] i,
[style*=italic i] span[lang=ja i],
span[lang=ja i] [style*=italic i] {
font-family: JapaneseItalic, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
[style*="font:"i] i span[lang=ja i],
[style*="font-family:"i] i span[lang=ja i],
[style*="font:"i] span[lang=ja i] i,
[style*="font-family:"i] span[lang=ja i] i,
[style*="font:"i] [style*=italic i] span[lang=ja i],
[style*="font-family:"i] [style*=italic i] span[lang=ja i],
[style*="font:"i] span[lang=ja i] [style*=italic i],
[style*="font-family:"i] span[lang=ja i] [style*=italic i] {
font-family: inherit;
}
/* 黑幕模板配合CSS */
/* 把这几行单独拎出来写,否则会被Firefox合并到“.heimu a”这条规则,然后又被上面的“点过外链不变色”规则override */
.heimu,
.heimu rt {
background-color: #252525;
}
span.heimu a.external,
span.heimu a.external:visited,
span.heimu a.extiw,
span.heimu a.extiw:visited {
color: #252525;
}
.heimu,
.heimu a,
a .heimu,
.heimu a.new {
color: #252525;
text-shadow: none;
}
body:not(.heimu_toggle_on) .heimu:hover,
body:not(.heimu_toggle_on) .heimu:active,
body:not(.heimu_toggle_on) .heimu.off {
transition: color .13s linear;
color: white;
}
body:not(.heimu_toggle_on) .heimu:hover a,
body:not(.heimu_toggle_on) a:hover .heimu,
body:not(.heimu_toggle_on) .heimu.off a,
body:not(.heimu_toggle_on) a:hover .heimu.off {
transition: color .13s linear;
color: lightblue;
}
body:not(.heimu_toggle_on) .heimu.off .new,
body:not(.heimu_toggle_on) .heimu.off .new:hover,
body:not(.heimu_toggle_on) .new:hover .heimu.off,
body:not(.heimu_toggle_on) .heimu:hover .new {
transition: color .13s linear;
color: #FCC;
}
/* 提升背景颜色纯度 */
div.vectorTabs ul li,
#mw-head div.vectorMenu {
background-image: none !important;
background-color: transparent !important;
}
div.vectorTabs,
div.vectorTabs span,
div.vectorTabs ul,
div#mw-head div.vectorMenu h3 {
background-image: none !important;
}
#left-navigation,
#right-navigation
/* {
background-image: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, .5) 30%, rgba(255, 255, 255, .75))!important;
background-color: transparent!important;
}*/
,
div.vectorTabs ul li.selected {
background-image: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, .3) 30%, rgba(255, 255, 255, .5)) !important;
background-color: transparent !important;
}
#left-navigation,
#right-navigation {
min-height: 40px;
}
/* 右上个人链接栏 */
div#p-personal {
background-color: rgba(255, 255, 255, 0.8);
padding: 5px 10px 5px 0;
box-shadow: #666 0 1px 5px;
}
/* 右上通知处奇怪的数字移除 */
#pt-notifications-alert .mw-echo-notifications-badge,
#pt-notifications-notice .mw-echo-notifications-badge {
text-indent: -99999px;
}
#pt-notifications-alert .mw-echo-notifications-badge:after,
#pt-notifications-notice .mw-echo-notifications-badge:after {
text-indent: 0;
}
/* MW自带10em宽度,应该是留给测试链接的吧萌百没有就去掉 */
#p-personal ul {
padding-left: 0;
}
/* 对齐搜索按钮 */
div#simpleSearch button#searchButton {
padding-top: .1em;
padding-bottom: .2em;
padding-right: .1em;
}
/* 2012年12月24日空想之梦做出的首页样式 */
#mainpage {
display: block;
width: 100%;
text-align: left;
margin: 0 auto;
/* 居中 */
max-width: 1030px;
}
.mainpage-title {
font-family: PingFang SC, sans-serif;
font-size: 1.618em;
color: #228b22;
margin: 0;
background: #deede0;
font-weight: 400;
/* 400 = normal */
height: 30px;
line-height: 30px;
text-align: center;
}