模板6:Linux终端样式:修订间差异
来自istudylinux
Istudylinux(讨论 | 贡献) 无编辑摘要 |
Istudylinux(讨论 | 贡献) (→源码) |
||
第6行: | 第6行: | ||
== 源码 == | == 源码 == | ||
{{TabbedWindowBegin}} | |||
=== 页面名称 === | |||
* 模板:Terminal | * 模板:Terminal | ||
* 模板:Terminal/styles.css | * 模板:Terminal/styles.css | ||
=== 模板:Terminal === | === 模板:Terminal === | ||
<syntaxhighlight lang="html" line="true"> | <syntaxhighlight lang="html" line="true"> |
2022年11月20日 (日) 00:30的最新版本
来源
https://www.mediawiki.org/wiki/Template:Terminal
依赖
- 扩展:TemplateStyles
源码
页面名称
- 模板:Terminal
- 模板:Terminal/styles.css
模板:Terminal
<templatestyles src="Terminal/styles.css" /><div class="tpl-terminal" {{#if:{{{style|}}}|style="{{{style}}}"}}>
<div class="tpl-terminal-title"><strong>{{{title|Terminal}}}</strong></div>
<pre<includeonly></includeonly> class="plainlinks tpl-terminal-content" style="{{#if:{{{height|}}}| max-height: {{{height}}} }}; {{{textstyle|}}}">
{{{text}}}
</pre></div>
模板:Terminal/styles.css
.tpl-terminal {
background-color: #222;
}
.tpl-terminal-title {
color: #fff;
padding: 0.5em 1em;
}
.tpl-terminal-content {
margin-top: 0; /* override `pre` skin style */
border: 0; /* override `pre` skin style */
border-top: 1px solid #bbb;
background-color: #111; /* override `pre` skin style */
padding: 1em;
color: #eee;
overflow: auto;
}