“MediaWiki:Common.css”的版本间的差异
跳到导航
跳到搜索
LapisLazuli(讨论 | 贡献) (heimu) |
LapisLazuli33(讨论 | 贡献) |
||
第37行: | 第37行: | ||
transition: color .13s linear; | transition: color .13s linear; | ||
color: #BA0000; | color: #BA0000; | ||
+ | } | ||
+ | |||
+ | /* Tabs */ | ||
+ | .tab .TabLabelText { | ||
+ | display: inline-block; | ||
+ | padding: 1px; | ||
+ | cursor: pointer; | ||
+ | } | ||
+ | .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; | ||
+ | } | ||
+ | .tab .TabLabelText.selected { | ||
+ | border-top: 3px solid green; | ||
+ | padding: 1px; | ||
+ | background: white; | ||
+ | border-left: 1px solid #aaa; | ||
+ | border-right: 1px solid #aaa; | ||
+ | } | ||
+ | .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; | ||
+ | } | ||
+ | .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; | ||
} | } |
2019年4月27日 (六) 20:53的版本
/* 这里放置的CSS将应用于所有皮肤 */ /* 黑幕模板配合CSS */ /* 把这几行单独拎出来写,否则会被Firefox合并到“.heimu a”这条规则,然后又被上面的“点过外链不变色”规则override */ 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 { background-color: #252525; 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.off .new, body:not(.heimu_toggle_on) .heimu.off .new:hover, body:not(.heimu_toggle_on) .new:hover .heimu.off { transition: color .13s linear; color: #BA0000; } /* Tabs */ .tab .TabLabelText { display: inline-block; padding: 1px; cursor: pointer; } .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; } .tab .TabLabelText.selected { border-top: 3px solid green; padding: 1px; background: white; border-left: 1px solid #aaa; border-right: 1px solid #aaa; } .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; } .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; }