Apt install(留言 | 贡献) Apt install将页面模板:Internet.css的内容模型从“wikitext”更改为“已过滤的CSS” |
Apt install(留言 | 贡献) Apt install将页面模板:Internet.css的内容模型从“已过滤的CSS”更改为“CSS” |
||
| (未显示同一用户的1个中间版本) | |||
| 第1行: | 第1行: | ||
/* | /* 中文后联网 —— TemplateStyles 正文版 | ||
body.page- | 用途:粘贴到 模板:Internet.css(内容模型 sanitized-css) | ||
重要:TemplateStyles 会自动给所有选择器加 .mw-parser-output 前缀, | |||
所以这里【不要写 body.page-... 前缀】,直接写正文内元素即可。 | |||
只覆盖正文区域:链接、h2/h3、代码块、表格、按钮。 | |||
页面外围样式(黑背景、导航标签、右栏、标题、扫描线、字体) | |||
必须放 MediaWiki:Common.css(见 用户页_Apt_install_赛博主题.css 完整版)。 */ | |||
/* 正文链接 */ | |||
a { | |||
color: #0ff; | |||
text-decoration: none; | |||
position: relative; | |||
transition: color 0.3s ease; | |||
} | |||
a:hover { | |||
color: #ffffff; | color: #ffffff; | ||
} | } | ||
a::after { | |||
content: ""; | |||
position: absolute; | |||
width: 100%; | |||
height: 2px; | |||
transition: | background: #0ff; | ||
bottom: -2px; | |||
left: 0; | |||
transform: scaleX(0); | |||
transition: transform 0.3s ease; | |||
} | } | ||
a:hover::after { | |||
transform: scaleX(1); | |||
} | } | ||
/* | /* 正文标题(h1 通常指页面标题,在外层,这里只管 h2/h3) */ | ||
h2, | |||
h3 { | |||
text-shadow: 0 0 10px #0ff; | text-shadow: 0 0 10px #0ff; | ||
position: relative; | position: relative; | ||
| 第29行: | 第43行: | ||
} | } | ||
h3::before { | |||
content: ">"; | content: ">"; | ||
color: #0ff; | color: #0ff; | ||
| 第38行: | 第51行: | ||
} | } | ||
h2:hover::before, | |||
h3:hover::before { | |||
transform: translateX(0.2em); | transform: translateX(0.2em); | ||
opacity: 1; | opacity: 1; | ||
text-shadow: 0 0 12px #0ff; | text-shadow: 0 0 12px #0ff; | ||
} | } | ||
/* 代码块 */ | /* 代码块 */ | ||
pre, | |||
.mw-code { | |||
background: #00161f; | background: #00161f; | ||
border: 1px solid #004455; | border: 1px solid #004455; | ||
| 第104行: | 第68行: | ||
} | } | ||
pre { | |||
padding: 15px; | padding: 15px; | ||
overflow-x: auto; | overflow-x: auto; | ||
| 第110行: | 第74行: | ||
} | } | ||
pre::before { | |||
content: "CODE TERMINAL"; | content: "CODE TERMINAL"; | ||
position: absolute; | position: absolute; | ||
| 第120行: | 第84行: | ||
/* 表格 */ | /* 表格 */ | ||
table { | |||
border: 2px solid #0ff; | border: 2px solid #0ff; | ||
background: rgba(0, 0, 0, 0.7); | background: rgba(0, 0, 0, 0.7); | ||
| 第126行: | 第90行: | ||
} | } | ||
th { | |||
background: rgba(0, 255, 255, 0.1); | background: rgba(0, 255, 255, 0.1); | ||
text-transform: uppercase; | text-transform: uppercase; | ||
| 第132行: | 第96行: | ||
} | } | ||
td { | |||
border-bottom: 1px solid rgba(0, 255, 255, 0.1); | border-bottom: 1px solid rgba(0, 255, 255, 0.1); | ||
padding: 12px; | padding: 12px; | ||
} | } | ||
/* | /* 正文内按钮 */ | ||
.button, | |||
.wds-button { | |||
background: linear-gradient(45deg, #000000, #0ff); | background: linear-gradient(45deg, #000000, #0ff); | ||
border: 1px solid #0ff; | border: 1px solid #0ff; | ||
| 第149行: | 第113行: | ||
} | } | ||
.button:hover, | |||
.wds-button:hover { | |||
box-shadow: 0 0 15px #0ff; | box-shadow: 0 0 15px #0ff; | ||
transform: translateY(-2px); | transform: translateY(-2px); | ||
} | } | ||
2026年8月6日 (四) 16:15的最新版本
/* 中文后联网 —— TemplateStyles 正文版
用途:粘贴到 模板:Internet.css(内容模型 sanitized-css)
重要:TemplateStyles 会自动给所有选择器加 .mw-parser-output 前缀,
所以这里【不要写 body.page-... 前缀】,直接写正文内元素即可。
只覆盖正文区域:链接、h2/h3、代码块、表格、按钮。
页面外围样式(黑背景、导航标签、右栏、标题、扫描线、字体)
必须放 MediaWiki:Common.css(见 用户页_Apt_install_赛博主题.css 完整版)。 */
/* 正文链接 */
a {
color: #0ff;
text-decoration: none;
position: relative;
transition: color 0.3s ease;
}
a:hover {
color: #ffffff;
}
a::after {
content: "";
position: absolute;
width: 100%;
height: 2px;
background: #0ff;
bottom: -2px;
left: 0;
transform: scaleX(0);
transition: transform 0.3s ease;
}
a:hover::after {
transform: scaleX(1);
}
/* 正文标题(h1 通常指页面标题,在外层,这里只管 h2/h3) */
h2,
h3 {
text-shadow: 0 0 10px #0ff;
position: relative;
padding-left: 25px;
}
h3::before {
content: ">";
color: #0ff;
position: absolute;
left: 0;
text-shadow: 0 0 8px #0ff;
}
h2:hover::before,
h3:hover::before {
transform: translateX(0.2em);
opacity: 1;
text-shadow: 0 0 12px #0ff;
}
/* 代码块 */
pre,
.mw-code {
background: #00161f;
border: 1px solid #004455;
box-shadow: inset 0 0 10px #002233;
color: #6cffeb;
font-family: 'Space Mono', monospace;
}
pre {
padding: 15px;
overflow-x: auto;
position: relative;
}
pre::before {
content: "CODE TERMINAL";
position: absolute;
top: -20px;
left: 0;
color: #0ff;
font-size: 0.8em;
}
/* 表格 */
table {
border: 2px solid #0ff;
background: rgba(0, 0, 0, 0.7);
margin: 20px 0;
}
th {
background: rgba(0, 255, 255, 0.1);
text-transform: uppercase;
letter-spacing: 2px;
}
td {
border-bottom: 1px solid rgba(0, 255, 255, 0.1);
padding: 12px;
}
/* 正文内按钮 */
.button,
.wds-button {
background: linear-gradient(45deg, #000000, #0ff);
border: 1px solid #0ff;
padding: 8px 20px;
color: #ffffff;
text-transform: uppercase;
transition: all 0.3s ease;
cursor: pointer;
}
.button:hover,
.wds-button:hover {
box-shadow: 0 0 15px #0ff;
transform: translateY(-2px);
}