Apt install(留言 | 贡献) 创建页面,内容为“@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Rajdhani:wght@400;700&display=swap'); :root { --neon-blue: #0ff; --cyber-purple: #bc13fe; --matrix-green: #0f0; --dark-bg: #000000; --accent-color: #0ff; --border-glow: rgba(0, 255, 255, 0.35); } →页面主体(仅作者页): body.page-用户_Apt_install { background: var(--dark-bg) !important; color: #fff; font-family: 'Orbitron', 'Ra…” |
Apt install(留言 | 贡献) 无编辑摘要 |
||
| (未显示同一用户的2个中间版本) | |||
| 第1行: | 第1行: | ||
/* 中文后联网 —— 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; | |||
color: # | |||
} | } | ||
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 | |||
position: relative; | position: relative; | ||
padding-left: 25px; | padding-left: 25px; | ||
} | } | ||
h3::before { | |||
content: ">"; | content: ">"; | ||
color: | color: #0ff; | ||
position: absolute; | position: absolute; | ||
left: 0; | left: 0; | ||
text-shadow: 0 0 8px | text-shadow: 0 0 8px #0ff; | ||
} | } | ||
h2:hover::before, | |||
h3:hover::before { | |||
transform: translateX(0.2em); | transform: translateX(0.2em); | ||
opacity: 1; | opacity: 1; | ||
text-shadow: 0 0 12px | text-shadow: 0 0 12px #0ff; | ||
} | } | ||
/* | /* 代码块 */ | ||
pre, | |||
.mw-code { | |||
background: #00161f; | background: #00161f; | ||
border: 1px solid #004455; | border: 1px solid #004455; | ||
| 第115行: | 第68行: | ||
} | } | ||
pre { | |||
padding: 15px; | padding: 15px; | ||
overflow-x: auto; | overflow-x: auto; | ||
| 第121行: | 第74行: | ||
} | } | ||
pre::before { | |||
content: "CODE TERMINAL"; | content: "CODE TERMINAL"; | ||
position: absolute; | position: absolute; | ||
top: -20px; | top: -20px; | ||
left: 0; | left: 0; | ||
color: | color: #0ff; | ||
font-size: 0.8em; | font-size: 0.8em; | ||
} | } | ||
/* | /* 表格 */ | ||
table { | |||
border: 2px solid | border: 2px solid #0ff; | ||
background: rgba(0, 0, 0, 0.7); | background: rgba(0, 0, 0, 0.7); | ||
margin: 20px 0; | margin: 20px 0; | ||
} | } | ||
th { | |||
background: rgba(0, 255, 255, 0.1); | background: rgba(0, 255, 255, 0.1); | ||
text-transform: uppercase; | text-transform: uppercase; | ||
| 第143行: | 第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); | |||
border: 1px solid #0ff; | |||
background: linear-gradient(45deg, # | |||
border: 1px solid | |||
padding: 8px 20px; | padding: 8px 20px; | ||
color: # | color: #ffffff; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
transition: all 0.3s ease; | transition: all 0.3s ease; | ||
| 第181行: | 第113行: | ||
} | } | ||
.button:hover, | |||
.wds-button:hover { | |||
box-shadow: 0 0 15px | box-shadow: 0 0 15px #0ff; | ||
transform: translateY(-2px); | transform: translateY(-2px); | ||
} | } | ||
2026年8月6日 (四) 14:12的版本
/* 中文后联网 —— 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);
}