MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
Line 48: | Line 48: | ||
transition: color .13s linear; | transition: color .13s linear; | ||
color: #BA0000; | color: #BA0000; | ||
} | |||
.top { | |||
--offset: 50px; | |||
position: sticky; | |||
bottom: 20px; | |||
margin-right:10px; | |||
place-self: end; | |||
margin-top: calc(100vh + var(--offset)); | |||
/* visual styling */ | |||
text-decoration: none; | |||
padding: 10px; | |||
font-family: sans-serif; | |||
color: #fff; | |||
background: #000; | |||
border-radius: 100px; | |||
white-space: nowrap; | |||
} | |||
p { | |||
font-size: 25px; | |||
} | |||
/* remove the below if you don't want smooth scrolling */ | |||
html, | |||
body { | |||
scroll-behavior: smooth; | |||
} | } |
Revision as of 12:05, 22 December 2022
/* CSS placed here will be applied to all skins */
body {
padding-top: 0px;
padding-bottom: 20px;
zoom: 100%;
}
/* 隐藏MW的English选项框 */
#p-variants{
visibility: hidden;
}
/* 黑幕模板配合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;
}
.top {
--offset: 50px;
position: sticky;
bottom: 20px;
margin-right:10px;
place-self: end;
margin-top: calc(100vh + var(--offset));
/* visual styling */
text-decoration: none;
padding: 10px;
font-family: sans-serif;
color: #fff;
background: #000;
border-radius: 100px;
white-space: nowrap;
}
p {
font-size: 25px;
}
/* remove the below if you don't want smooth scrolling */
html,
body {
scroll-behavior: smooth;
}