基岩是一个由 EstrellaYoshte、
Liryn 以及
Placeholder McD 制作的美学基础版式,特别感谢
aismallard 在 GitHub 上的协助,感谢
Woedenaz 协助制作了编辑区域的按钮 SVG 以及一些常规的咨询。
此版式作为玄武岩 2.0 的基础架构存在。
若需在某页面中使用,请添加以下代码:
[[include :scp-wiki-cn:theme:bedrock]]
示例
可通过四个连字符 “----”1 创建水平分割线。若它未被放在其他部件(诸如引用块)中,则会左右延伸贯穿页面。这种将文件分割为多个部分的线就是分割线。
插图方块。
标题可通过在一行字起始处输入 1 至 6 个加号“+”来创建。
此为分页(tab view)。
看,这有更多文字。
多么精巧绝伦。
这是一个长的 tab,它有很多文字。
这是一个长的 tab,它有很多文字。
这是一个长的 tab,它有很多文字。
这是一个长的 tab,它有很多文字。
这是一个长的 tab,它有很多文字。
这是一个长的 tab,它有很多文字。
这是一个长的 tab,它有很多文字。
这是一个长的 tab,它有很多文字。
这是一个长的 tab,它有很多文字。
这是一个长的 tab,它有很多文字。
这是一个长的 tab,它有很多文字。
这是一个长的 tab,它有很多文字。
这是一个引用块,在一行字的起始处加上“> ”来创建。
更多文字
一条分割线
嵌套引用块
| 这是 | 表格 |
|---|---|
| 你应该老早 | 就知道怎么 |
| 做这个了吧 | |
标题字体为 Lexend / 思源黑体简中。
正文字体为 Inter / 思源黑体简中。
用户界面字体为 Jost / 思源黑体简中。
等宽字体为 JetBrains Mono / 思源宋体简中
CSS 变量
基岩内置了一系列的 CSS 变量,可以被修改以改变其外观。某些顶级变量如下:
:root { --basalt-primary-color: 254,254,254; --basalt-secondary-color: 247,248,250; --basalt-tertiary-color: 218,219,222; --basalt-main-text-color: 20,20,20; --basalt-overtone: 50,50,50; --basalt-undertone: 61,71,202; --basalt-bright-element-color: 16,76,184; --basalt-dark-element-color: 18,20,150; --basalt-alternate-color: 255,132,0; --basalt-positive-color: 24,163,20; --basalt-negative-color: 255,48,48; --basalt-cancel-color: var(--basalt-negative-color); --basalt-sub-text-color: 155,154,162; --basalt-light-text-color: var(--basalt-primary-color); --basalt-UI-dark-palette: var(--basalt-overtone); --basalt-focus-color: var(--basalt-undertone); --basalt-background-color: var(--basalt-primary-color); }
颜色变量为 RGB 格式。
:root { --header-font-primary: 'Lexend'; --UI-font-primary: 'Jost'; --body-font-primary: 'Inter'; --mono-font-primary: 'JetBrains Mono'; } :root:lang(cn) { --body-font-fallback: "Noto Sans SC", Verdana, "Microsoft YaHei", "微软雅黑", Geneva, sans-serif, STXihei, "华文细黑"; --UI-font-fallback: "Noto Sans SC", "方体", "PingFang SC", "黑体", "Heiti SC", "Microsoft JhengHei UI", "Microsoft JhengHei", Roboto, Noto, "Noto Sans CJK SC", sans-serif; --header-font-fallback: var(--body-font-fallback); --mono-font-fallback: "Noto Serif SC", "Microsoft YaHei", "微软雅黑", "Courier New", Courier, monospace, STXihei, "华文细黑"; }
这是四个被基岩所使用的字体种类。
:root { --header-logo: url('https://cdn.scpwiki.com/theme/en/basalt/basaltlogo.svg'); --header-title: 'SCP Foundation'; --header-subtitle: 'SECURE - CONTAIN - PROTECT'; --title-size: 1.5rem; --subtitle-size: 0.825rem; --base-font-size: 1rem; --main-content-width: 67.5rem; --side-bar-width: 19rem; } :root:lang(cn) { --header-title: 'SCP基金会'; --header-subtitle: '控制 - 收容 - 保护'; }
注意由于 CSS 的 calc() 函数机制,任何有长度单位的变量,比如 rem 或是 px,其单位都不应被省略,即使其值被设定为 0,比如 --subtitle-size: 0rem; 能使副标题消失,且亦不会使 calc() 功能无效。
--main-content-width 不应被以 % 单位设定。若需使主区域占据整个屏幕的宽度,则使用任意高的 rem 值即可。
其它
该版式的源代码可以在我们的 GitHub 页面中找到。
基岩目前与常规版式并不兼容。
流明冲击是一个由 EstrellaYoshte 制作的基于基岩的版式,供个人使用。
若需将该版式引用至你的页面中,请将以下文本放置在页面的任何位置:
[[include :scp-wiki-cn:theme:bedrock]]
[[include :scp-wiki-cn:theme:lumina]]
流明冲击并非开箱即用的一种简单版式——它可能会破坏掉某些预设版式的布局。
#page-content 已经被转换为 grid(网格)布局,并带有下面列出的纵轨:
content(内容)
breakout-start(突出-开头)
breakout-end(突出-结尾)
breakout(突出)
full-width-start(全宽-开头)
full-width-end(全宽-结尾)
full-width(全宽)
默认设置下,#page-content 的子元素会分布在内容区域里。若需改变 grid 轨道,只需分别添加上述的类名即可。
为如正常版式般取得最大兼容性,你可以将所有东西都包裹在一个封套 div 内,并可选用上面的 class。不然的话,你可以等着出现一大堆需要手动调样式的情况。
自定义语法
[[div class="filebox" data-title="人事档案"]]
数角究治以并两家,利车热如工值,铁马否品新。流自青极张消步率低据指治历十,头者号个程活蠢史省专程。低象维天史便人周,细县全前也利术,委雨作折岗。积即又众根前百,置场色没走,感不利私。想满商能位格因转京议二指,下速七等号称科打量位,毛设状杠越回对构精。
动山心去满省队后,动支相火解工得,元单更理造作,罐心属强。结九改理干山信那,听且任养见期,才主江权。多果引受美情却山经己区会历身适,自车任求住近定极治租老斗。进工共之思真思表,种中没满高好民,深认复研节。
页眉字体为 Space Grotesk / 思源黑体。
正文字体为 Inter / 思源黑体。
用户界面字体为 Barlow Semi Condensed / 思源黑体。
等宽字体为 JetBrains Mono / 思源宋体。
源代码
/* Lumina Crash Theme [2023 Wikidot Theme] By EstrellaYoshte Based on: Generic Space Theme by EstrellaYoshte */ @import url('https://api.fonts.coollabs.io/css2?family=Barlow+Semi+Condensed:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap'); @import url('https://api.fonts.coollabs.io/css2?family=Space+Grotesk:wght@300;400;700&display=swap'); :root { --header-font-primary: 'Space Grotesk'; --UI-font-primary: 'Barlow Semi Condensed'; --basalt-primary-color: 20,28,34; --basalt-secondary-color: 102,114,130,.1325; --basalt-tertiary-color: 18,22,24; --basalt-main-text-color: 248,248,248; --basalt-sub-text-color: 190,213,216; --basalt-undertone: 252,248,222; --basalt-overtone: 16,17,19; --basalt-bright-element-color: 72,182,255; --basalt-dark-element-color: 20,120,233; --basalt-UI-opacity: .375; --basalt-UI-blur: .1125rem; --base-header-height: min(calc(14.5rem + 16.5vmin), 27.5rem); --header-border-width: 0rem; --search-button-width: 2.325rem; --user-button-width: 3.25rem; --top-bar-link-color-hover: var(--basalt-undertone); --login-status-text-color: var(--basalt-main-text-color); --login-status-text-color-hover: var(--basalt-light-text-color); --search-icon-color-hover: var(--basalt-light-text-color); --side-bar-background-color: var(--basalt-secondary-color); --side-bar-button-color-hover: var(--basalt-undertone); --side-bar-button-background-hover: var(--basalt-tertiary-color),.375; --side-bar-heading-text-color: var(--basalt-undertone); --side-bar-button-width: 3.625rem; --main-content-width: 500rem; --main-content-side-margin: calc(1.5rem + 2.5vw); --main-content-bottom-margin: .325rem; --code-background-color: var(--basalt-tertiary-color); --rate-module-background-color: var(--basalt-primary-color); --rate-module-info-icon-color: var(--basalt-undertone); --rate-module-cancel-color: var(--basalt-undertone); --tab-focus-text-color: var(--basalt-focus-color); --tab-background-color: initial; --footnote-background-color: var(--basalt-background-color),.875; --bottom-area-background-color: var(--basalt-tertiary-color); --license-area-font-size: calc(var(--true-font-size) *.875); --button-background-color: var(--basalt-tertiary-color); --lumina-background: url(https://scp-wiki.wdfiles.com/local--files/theme%3Alumina/bg-galaxy.jpg); --lumina-header-image: url(https://scp-wiki.wdfiles.com/local--files/theme%3Alumina/moon.png); --lumina-header-top-gap: 1.5rem; --lumina-top-bar-height: 3.75rem; --lumina-footer-image: url(https://scp-wiki.wdfiles.com/local--files/theme%3Alumina/earth.png); --header-title: "LUNAR AREA-32"; --header-subtitle: "Database Archive"; --title-size: min(calc(1.5rem + 3.75vw), 4.25rem); --subtitle-size: min(calc(1.25rem + 2.75vw), 3.75rem); --header-logo: var(--lumina-header-image); --side-bar-button-mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' data-name='Layer 1' viewBox='0 0 419.8 419.8'%3E%3Cpath d='M209.9 300.6c0-44-46.7-90.8-90.7-90.8 44 0 90.7-46.6 90.7-90.5 0 44 46.7 90.6 90.7 90.6-44 0-90.8 46.7-90.8 90.7z'/%3E%3C/svg%3E"); } body::before { content: ""; position: fixed; top: 50%; left: 50%; width: 100lvw; height: 100lvh; transform: translate(-50%, -50%); background: var(--lumina-background) no-repeat center; background-size: cover; opacity: .575; z-index: -1; pointer-events: none; } /*----------------------------------*/ /*-------- HEADER --------*/ /*----------------------------------*/ #header { contain: initial; height: auto; min-height: var(--header-final-height); position: static; background-color: transparent; grid-template-areas: '. . . . .' '. search line top-bar user' 'h-link h-link h-link h-link h-link'; grid-template-columns: var(--side-bar-button-width) var(--search-button-width) 1fr max-content var(--user-button-width); grid-template-rows: var(--lumina-header-top-gap) var(--lumina-top-bar-height) 1fr; } #header h1 { grid-template-columns: minmax(0,1fr); } #header h1 a { justify-content: center; width: auto; height: auto; flex-wrap: wrap; pointer-events: none; gap: 1rem calc(var(--base-header-height) *.125); padding: 1rem; box-sizing: border-box; } #header h1 a::before, #header h1 a span { height: auto; pointer-events: auto; } #header h1 a::before { width: calc(var(--base-header-height) *.75); aspect-ratio: 1; min-width: unset; max-width: 100%; -webkit-mask-image: linear-gradient(45deg, transparent 20%, white 70%); mask-image: linear-gradient(45deg, transparent 20%, white 70%); } #header h1 a span::before { font-weight: 300; } #header h1 a span::after{ font-weight: 700; } #header-extra-div-1 { grid-area: line; height: .025rem; background-color: rgb(var(--basalt-main-text-color),.575); align-self: center; } #login-status span.printuser>a { background-color: rgb(var(--basalt-overtone),.325); -webkit-backdrop-filter: blur(var(--basalt-UI-blur)); backdrop-filter: blur(var(--basalt-UI-blur)); } #login-status a:is(.login-status-create-account,.login-status-sign-in):is(:hover,:focus) { color: rgb(var(--basalt-light-text-color)); } #top-bar div[class*=top-bar]>ul { justify-content: flex-end; position: relative; z-index: 4; } #top-bar div[class*=top-bar]>ul::before { content: ""; position: absolute; inset: 0; width: 100%; height: 100%; background-color: rgb(var(--header-background-color)); -webkit-backdrop-filter: blur(var(--basalt-UI-blur)); backdrop-filter: blur(var(--basalt-UI-blur)); } #top-bar div[class*=top-bar]>ul>li>a { padding-inline: calc(var(--header-UI-font-size) *1.875); font-weight: normal; font-size: 1.05em; } #top-bar div[class*=top-bar]>ul>li>a::after {display: none; } #top-bar div[class*=top-bar]>ul>li>a::before { top: initial; bottom: 0; left: initial; right: 0; width: 0; height: .175rem; transition: width var(--header-link-transition-2nd); } #top-bar div[class*=top-bar]>ul>li.sfhover>a::before, #top-bar div[class*=top-bar]>ul>li:focus-within>a::before, #top-bar div[class*=top-bar]>ul>li>a:focus::before, #top-bar div[class*=top-bar]>ul>li>a:hover::before { width: 100%; height: .175rem; transition: width var(--header-link-transition-2nd); } #top-bar div[class*=top-bar] ul li ul { right: 0; left: unset; } #top-bar div[class*=top-bar]>ul>li>ul::before { all: unset; } #top-bar div[class*=top-bar] ul li ul li a::before { all: unset; } /*----------------------------------*/ /*-------- SIDEBAR --------*/ /*----------------------------------*/ @media not screen and (max-width: 1024px) { #side-bar { height: 100%; margin-top: 0; } #side-bar::before, #side-bar::after { inset: initial; left: 0; top: var(--lumina-header-top-gap); height: var(--lumina-top-bar-height); transition: left var(--side-bar-transition); } #side-bar::before { -webkit-backdrop-filter: blur(var(--basalt-UI-blur)); backdrop-filter: blur(var(--basalt-UI-blur)); } #side-bar:is(:hover,:focus-within)::before { height: var(--lumina-top-bar-height); } #side-bar:is(:hover,:focus-within)::before, #side-bar:is(:hover,:focus-within)::after { left: var(--side-bar-width); } } #top-bar div.mobile-top-bar>.open-menu { z-index: 8; } :is(#side-bar,#interwiki) .side-block { -webkit-backdrop-filter: blur(calc(var(--basalt-UI-blur)*3.5)); backdrop-filter: blur(calc(var(--basalt-UI-blur)*3.5)); } :is(#side-bar,#interwiki) .heading { background-color: transparent; display: flex; padding: .5em; gap: .375em; font-size: 1.05em; } :is(#side-bar,#interwiki) .heading::after { content: ""; display: block; background-color: currentColor; flex-grow: 1; height: .05rem; align-self: center; } #interwiki {background: transparent; } #interwiki body::before { all: unset; } /*----------------------------------*/ /*-------- MAIN --------*/ /*----------------------------------*/ #main-content, body.print-body #main-content { max-width: 100%; } #breadcrumbs, .pseudocrumbs { --_gap: .875rem; position: relative; font-family: var(--UI-font); font-size: 1.05em; width: max-content; gap: var(--_gap); padding: var(--_gap); margin-inline-start: var(--main-content-side-margin); box-sizing: border-box; max-width: calc(100% - var(--main-content-side-margin)*2)!important; } :is(#breadcrumbs, .pseudocrumbs)::before { content: ""; position: absolute; inset: 0; background-color: rgb(var(--basalt-secondary-color)); -webkit-backdrop-filter: blur(var(--basalt-UI-blur)); backdrop-filter: blur(var(--basalt-UI-blur)); z-index: -1; } :is(#breadcrumbs, .pseudocrumbs)::after { content: ""; position: absolute; inset-inline-end: 100%; display: block; background-color: rgb(var(--basalt-main-text-color),.575); width: var(--main-content-side-margin); height: .05rem; } :is(#breadcrumbs,.pseudocrumbs) a { display: block; position: relative; text-decoration: none; } :is(#breadcrumbs,.pseudocrumbs) a::before { content: ""; position: absolute; width: 0; height: .175rem; background-color: currentColor; inset-inline-start: 0; inset-block-end: calc(var(--_gap)*-1); transition: width .125s ease-out; } :is(#breadcrumbs,.pseudocrumbs) a:is(:hover,:focus)::before { width: 100%; } #page-title { display: none; } #page-content { display: grid; grid-template-columns: [full-width-start] var(--main-content-side-margin) [breakout-start] minmax(0,1fr) [content-start] minmax(0,4.5fr) [content-end] minmax(0,1fr) [breakout-end] var(--main-content-side-margin) [full-width-end]; min-height: unset; } :where(#page-content) > * { grid-column: content; } :where(#page-content) > p { margin-block: .5em; } .breakout-start { grid-column-start: breakout-start; } .breakout-end { grid-column-end: breakout-end; } .breakout { grid-column: breakout; } .full-width { grid-column: full-width; } .full-width-start { grid-column-start: full-width-start; } .full-width-end { grid-column-end: full-width-end; } /*----------------------------------*/ /*-------- PAGE ELEMENTS --------*/ /*----------------------------------*/ div.creditButtonStandalone>p>a:is(:hover,:focus)::after, div.rate-box-with-credit-button .creditButton>p>a:is(:hover,:focus)::after { background-color: rgb(var(--basalt-light-text-color)); } :is(#u-credit-view,div#u-credit-otherwise) .modalbox { --basalt-light-text-color: var(--basalt-main-text-color); } /*----------------------------------*/ :where(#page-content) :is(h1, h2, h3, h4, h5, h6) { margin-block: .675em; } :where(#page-content) :is(h1, h2, h3, h4, h5, h6)::before { content: ""; display: inline-block; width: 1.325em; height: 1.325em; box-sizing: border-box; border: solid .1rem rgb(var(--basalt-main-text-color),.75); position: relative; top: -.125em; vertical-align: middle; margin-inline: -.6em -.725em; transform: rotate(45deg); -webkit-mask-image: linear-gradient(45deg, white 15%, transparent 75%); mask-image: linear-gradient(45deg, white 15%, transparent 75%); } blockquote, div.blockquote { background: transparent; border: none; border-inline-start: solid 0.175rem rgb(var(--basalt-undertone)); width: 100%; } hr { background-color: rgb(var(--basalt-main-text-color),.575); height: .05rem; margin: 1rem 0; } .image-block, .scp-image-block { background: rgb(var(--image-caption-background-color),.325); -webkit-backdrop-filter: blur(var(--basalt-UI-blur)); backdrop-filter: blur(var(--basalt-UI-blur)); } :is(.image-block,.scp-image-block) :is(.image-caption,.scp-image-caption) { background: transparent; } :is(:where(#page-content) table:not(.form),table.wiki-content-table) th { color: rgb(var(--basalt-undertone)); } :is(:where(#page-content) table:not(.form),table.wiki-content-table) tr { background-color: rgb(var(--basalt-secondary-color)); } :is(:where(#page-content) table:not(.form),table.wiki-content-table) tr:where(:nth-child(2n)) { background-color: rgb(var(--basalt-background-color),.125); } /*----------------------------------*/ .yui-navset.yui-navset-top>ul.yui-nav { background: none; gap: 0; font-family: var(--UI-font); font-size: 1.25em; } .yui-navset.yui-navset-top>ul.yui-nav li { flex-grow: 0; } .yui-navset.yui-navset-top>ul.yui-nav li::before, .yui-navset.yui-navset-top>ul.yui-nav li.selected::after { all: unset; } .yui-navset.yui-navset-top>ul.yui-nav li a { position: relative; padding: .75em; } .yui-navset.yui-navset-top>ul.yui-nav li a::before { content: ""; position: absolute; width: 0; height: .175rem; inset-block-end: 0; inset-inline-start: 0; background-color: currentColor; transition: width .175s ease-out; } .yui-navset.yui-navset-top>ul.yui-nav li a:is(:hover,:focus)::before, .yui-navset.yui-navset-top>ul.yui-nav li.selected a::before { width: 100%; } .yui-navset.yui-navset-top .yui-content { border: none; padding-inline: 0; } /*----------------------------------*/ .hovertip { --general-border-color: 0,0,0,0; -webkit-backdrop-filter: blur(var(--basalt-UI-blur)); backdrop-filter: blur(var(--basalt-UI-blur)); } .bibitems .title, .footnotes-footer .title, .hovertip .content .footnote .f-heading, .hovertip .content .reference .r-heading { font-family: var(--mono-font); --basalt-light-text-color: var(--basalt-main-text-color); } /*-------- CODE COLORS --------*/ .code { --_special: 106,152,255; --_string: 106,152,255; --_number: var(--basalt-negative-color); --_var: var(--basalt-positive-color); --_reserved: var(--basalt-undertone); } /*----------------------------------*/ .filebox { --dir: to right; position: relative; padding: .5rem 1.75rem; margin-block: .75rem; } .filebox::before { content: attr(data-title); position: absolute; background-color: rgb(var(--basalt-overtone)); font-family: var(--UI-font); font-size: 1rem; text-transform: uppercase; letter-spacing: .01em; padding: .125em .5em; inset-inline-start: 0; inset-block-end: 100%; transform: translateY(50%); } .filebox::after { content: ""; position: absolute; inset: 0; background-color: rgb(var(--basalt-secondary-color)); -webkit-backdrop-filter: blur(.25rem); backdrop-filter: blur(.25rem); -webkit-mask-image: linear-gradient(var(--dir), white 40%, transparent); mask-image: linear-gradient(var(--dir), white 40%, transparent); z-index: -1; } /*----------------------------------*/ #main-content > .page-tags { flex-direction: row-reverse; margin-block: 1rem; } #main-content>.page-tags>span { align-items: center; padding: .5rem; gap: .5rem; box-sizing: border-box; max-width: calc(100% - var(--main-content-side-margin)*2); background-color: rgb(var(--header-background-color)); -webkit-backdrop-filter: blur(var(--basalt-UI-blur)); backdrop-filter: blur(var(--basalt-UI-blur)); } #main-content > .page-tags::before { content: ""; display: block; background-color: rgb(var(--basalt-main-text-color),.575); min-width: var(--main-content-side-margin); height: .05rem; align-self: center; } /*----------------------------------*/ /*-------- BOTTOM AREA --------*/ /*----------------------------------*/ #more-options-button { color: rgb(var(--basalt-main-text-color)); } #action-area, #page-options-container { width: auto; margin-inline: var(--main-content-side-margin); } #history-form-1>table.form>tbody>tr:first-child>td:first-child, #revision-list .page-history tr[id*=revision-row] td:first-child, .diff-box table.page-compare th { --basalt-light-text-color: var(--basalt-main-text-color); } #main-content .pager { --basalt-light-text-color: var(--basalt-main-text-color); } #action-area .page-source { background: rgb(var(--code-background-color)); padding: .75em 1em; } .owindow { --basalt-light-text-color: var(--basalt-main-text-color); } /*-----------------------------*/ #footer { --_img-ratio: 2.8125; background: transparent; position: relative; overflow: visible; padding-top: calc(100vw/var(--_img-ratio) - 2.25em); } #footer::before { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; aspect-ratio: var(--_img-ratio); background-image: linear-gradient(to bottom, transparent calc(50% - 1.5rem), rgb(var(--bottom-area-background-color)) calc(100% - .75rem)), var(--lumina-footer-image); background-size: cover; background-position: top; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, transparent 12.5%, white 32.5%); mask-image: linear-gradient(to bottom, transparent 12.5%, white 32.5%); z-index: -1; } div#license-area { font-family: var(--mono-font); padding: var(--bottom-area-padding); } #license-area::before, #license-area::after { all: unset; } /*----------------------------------*/ /*-------- MOBILE QUERY --------*/ /*----------------------------------*/ @media only screen and (max-width: 1024px) { :root { --lumina-header-top-gap: 0rem; --main-content-side-margin: calc(0.25rem + 2.25vw); } #header { grid-template-areas: '. search . user' 'h-link h-link h-link h-link' 'top-bar top-bar top-bar top-bar'; grid-template-columns: var(--side-bar-button-width) var(--search-button-width) 1fr var(--user-button-width); grid-template-rows: var(--lumina-top-bar-height) 1fr var(--lumina-top-bar-height); } #login-status span.printuser>a { background: transparent; } #header-extra-div-1 { all:unset; } #top-bar div[class*=top-bar]>ul::before { all: unset; } #top-bar div.mobile-top-bar>.open-menu { position: fixed; left: 0; top: var(--lumina-header-top-gap); width: var(--side-bar-button-width); height: var(--lumina-top-bar-height); } #top-bar div[class*=top-bar]>ul>li>a { padding-inline: var(--header-UI-font-size); } #header div.open-menu a::before { height: 100%; -webkit-backdrop-filter: blur(var(--basalt-UI-blur)); backdrop-filter: blur(var(--basalt-UI-blur)); } #page-content { grid-template-columns: [full-width-start] var(--main-content-side-margin) [breakout-start] minmax(0,1fr) [content-start] minmax(0,12fr) [content-end] minmax(0,1fr) [breakout-end] var(--main-content-side-margin) [full-width-end]; min-height: unset; } }
信息
沦敦版式是为受淹之城沦敦Londrown所制作的主题版式,基于流明冲击。
若需将该版式引用至你的页面中,请将以下文本放置在页面的任何位置:
[[include :scp-wiki-mc:theme:londrown]]
版头LOGO由Lxv37-wttoae绘制,版式背景图片来自
Minecraftzswj的游戏截图,均已获得本人授权。
自定义样式
因为流明冲击版式将#page-content 转换为 grid(网格)布局,能会破坏掉某些预设版式的布局。因此不建议结合其他改变布局的东西,或者你可以参照原版式说明自行设计。
微调过的人事档案
[[div class="filebox" data-title="人事档案"]]
一些文字
一些文字
[[/div]]
面包屑与反向面包屑
面包屑(全宽)
面包屑
反向面包屑(全宽)
反向面包屑
[[div class="pseudocrumbs full-width"]]
面包屑(全宽)
[[/div]]
[[div class="pseudocrumbs"]]
面包屑
[[/div]]
[[div class="pseudocrumbs-right full-width"]]
反向面包屑(全宽)
[[/div]]
[[div class="pseudocrumbs-right"]]
反向面包屑
[[/div]]
悬浮切换
这是,悬浮
切换。
出于换行考虑,"original-text"文本长度尽量长于"hovered-text"文本。
[[div class="hover-text"]]
[[div class="original-text"]]
这是,悬浮
[[/div]]
[[div class="hovered-text"]]
切换。
[[/div]]
[[/div]]
页眉字体为Comforter / 钟齐流江毛草。
标题字体字体为 Noto Serif SC。
正文字体为 Inter / 思源黑体。
用户界面字体为 LXGW WenKai GB / 霞鹜文楷。
等宽字体为 JetBrains Mono / 思源宋体。
源代码
@import url(https://fonts.bunny.net/css?family=comforter:400|liu-jian-mao-cao:400|noto-serif-sc:900); @font-face { font-family:'LXGW WenKai GB'; font-style: normal; font-weight: 400;font-display: swap; src: url('https://fastly.jsdelivr.net/gh/Etinjat/Fonts@main/FONT_LXGWWenKaiMonoGB-Regular.woff2') format('woff2'); } /*==沦敦版式,基于流明冲击==*/ :root { --basalt-secondary-color: 102,114,130,0.2325; --basalt-sub-text-color: 195, 195, 195; --basalt-undertone: var(--basalt-bright-element-color); --basalt-overtone: 0, 0, 0; --basalt-bright-element-color: 2, 148, 110; --basalt-dark-element-color: 19, 138, 149; --link-color: var(--basalt-undertone); --link-visited-color: var(--basalt-dark-element-color); --header-title-color: 9, 108, 90; --header-subtitle-color: 57, 140, 127; --side-bar-button-width: 3.25rem; --side-bar-button-color: var(--basalt-undertone); --basalt-UI-opacity: .675; --basalt-UI-blur: .125rem; --base-header-height: min(calc(12.5rem + 13.25vmin), 19.5rem); --main-content-side-margin: calc(1.75rem + 1.75vw); --UI-font-primary: 'LXGW WenKai GB'; --header-font: 'Liu Jian Mao Cao', 'Comforter'; --header-font-1: 'Comforter'; --h-font: 'Noto Serif SC'; --header-title: "Londrown"; --header-subtitle: "沦敦"; --title-size: min(calc(1.375rem + 2vw), 3.75rem); --subtitle-size: min(calc(1.25rem + 2.95vw), 3.95rem); --lumina-top-bar-height: 3.25rem; --lumina-header-image: url(https://s21.ax1x.com/2025/07/28/pVY85zd.png); --lumina-background: url(https://s21.ax1x.com/2024/07/16/pkIy1kn.jpg); --lumina-footer-image: unset; --side-bar-button-mask: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="%235f6368"%3E%3Cpath d="M160-210q-12.75 0-21.37-8.63-8.63-8.63-8.63-21.38 0-12.76 8.63-21.37Q147.25-270 160-270h400q12.75 0 21.37 8.63 8.63 8.63 8.63 21.38 0 12.76-8.63 21.37Q572.75-210 560-210H160Zm560 0q-12.75 0-21.37-8.63-8.63-8.63-8.63-21.38 0-12.76 8.63-21.37Q707.25-270 720-270h80q12.75 0 21.37 8.63 8.63 8.63 8.63 21.38 0 12.76-8.63 21.37Q812.75-210 800-210h-80ZM160-370q-12.75 0-21.37-8.63-8.63-8.63-8.63-21.38 0-12.76 8.63-21.37Q147.25-430 160-430h80q12.75 0 21.37 8.63 8.63 8.63 8.63 21.38 0 12.76-8.63 21.37Q252.75-370 240-370h-80Zm240 0q-12.75 0-21.37-8.63-8.63-8.63-8.63-21.38 0-12.76 8.63-21.37Q387.25-430 400-430h400q12.75 0 21.37 8.63 8.63 8.63 8.63 21.38 0 12.76-8.63 21.37Q812.75-370 800-370H400ZM160-530q-12.75 0-21.37-8.63-8.63-8.63-8.63-21.38 0-12.76 8.63-21.37Q147.25-590 160-590h440q12.75 0 21.37 8.63 8.63 8.63 8.63 21.38 0 12.76-8.63 21.37Q612.75-530 600-530H160Zm600 0q-12.75 0-21.37-8.63-8.63-8.63-8.63-21.38 0-12.76 8.63-21.37Q747.25-590 760-590h40q12.75 0 21.37 8.63 8.63 8.63 8.63 21.38 0 12.76-8.63 21.37Q812.75-530 800-530h-40ZM160-690q-12.75 0-21.37-8.63-8.63-8.63-8.63-21.38 0-12.76 8.63-21.37Q147.25-750 160-750h200q12.75 0 21.37 8.63 8.63 8.63 8.63 21.38 0 12.76-8.63 21.37Q372.75-690 360-690H160Zm360 0q-12.75 0-21.37-8.63-8.63-8.63-8.63-21.38 0-12.76 8.63-21.37Q507.25-750 520-750h280q12.75 0 21.37 8.63 8.63 8.63 8.63 21.38 0 12.76-8.63 21.37Q812.75-690 800-690H520Z"%3E%3C%2Fpath%3E%3C%2Fsvg%3E'); } #top-bar div[class*=top-bar]>ul>li>a {font-size: 1.19em;} #header h1 a { gap: -1rem calc(var(--base-header-height)* 0.5); padding: 0.5rem; } #header h1 a span::before { font-family: var(--header-font-1); color: rgba(var(--header-title-color), .89); -webkit-transition: color 500ms, text-shadow 500ms; -moz-transition: color 500ms, text-shadow 500ms; -o-transition: color 500ms, text-shadow 500ms; transition: color 500ms, text-shadow 500ms; } #header h1 a:hover span::before { color: rgb(0, 255, 215); text-shadow: 2px 2px 2px grey; } #header h1 a span::after { color: rgba(var(--header-subtitle-color), .89); -webkit-transition: color 500ms, text-shadow 500ms; -moz-transition: color 500ms, text-shadow 500ms; -o-transition: color 500ms, text-shadow 500ms; transition: color 500ms, text-shadow 500ms; } #header h1 a:hover span::after { color: rgb(0, 255, 215); text-shadow: 0 0 0.3125rem rgba(242,242,242,0.4), 0 0 0.625rem rgba(242,242,242,0.4), 0 0 0.9375rem rgba(242,242,242,0.4), 0 0 2.5rem rgba(242,242,242,0.4), 0 0 5rem rgba(242,242,242,0.4); } :where(#page-content) :is(h1, h2, h3, h4, h5, h6)::before { border: none; transform: none; width: 2.5em; height: 1em; background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='60' viewBox='0 0 100 60'%3E%3Cpath fill='none' stroke='rgb(9,108,90)' stroke-width='4' d='M0 10 Q 25 0 50 10 T 100 10 M0 30 Q 25 20 50 30 T 100 30 M0 50 Q 25 40 50 50 T 100 50'/%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; box-sizing: border-box; position: relative; top: -.125em; vertical-align: middle; margin-inline: -.6em -.725em; } h1, h2, h3, h4, h5, h6 {color: rgb(var(--header-subtitle-color));font-family: var(--h-font);} #breadcrumbs, .pseudocrumbs { --_gap: 1.375rem; padding: 14px var(--_gap); font-weight:normal; } blockquote, div.blockquote { background-color: rgb(var(--basalt-secondary-color)); -webkit-backdrop-filter: blur(var(--basalt-UI-blur)); backdrop-filter: blur(var(--basalt-UI-blur)); } #footer::before { background-image: var(--lumina-footer-image); display: none; } #page-content .page-rate-widget-box, #page-info { background-color: rgb(var(--basalt-secondary-color)); -webkit-backdrop-filter: blur(var(--basalt-UI-blur)); backdrop-filter: blur(var(--basalt-UI-blur)); } /*filebox调整*/ .filebox::before { content: attr(data-title); position: absolute; background-color: rgb(0, 119, 89); font-family: var(--UI-font); font-size: 1rem; text-transform: uppercase; letter-spacing: .01em; padding: .125em .5em; inset-inline-start: 0; inset-block-end: 100%; transform: translateY(50%); } /*悬浮切换*/ .hover-text { position: relative; display: inline-block; } .hover-text .original-text, .hover-text .hovered-text { transition: opacity 0.3s ease; } .hover-text .hovered-text { opacity: 0; position: absolute; top: 0; left: 0; } .hover-text:hover .original-text { opacity: 0; } .hover-text:hover .hovered-text { opacity: 1; } /*反向面包屑*/ #breadcrumbs-right, .pseudocrumbs-right { --_gap: 1.375rem; padding: 0 var(--_gap); font-size: unset; font-weight:normal; position: relative; font-family: var(--UI-font); width: max-content; gap: var(--_gap); margin-inline-end: var(--main-content-side-margin); box-sizing: border-box; max-width: calc(100% - var(--main-content-side-margin)*2)!important; margin-inline-start: auto; } :is(#breadcrumbs-right, .pseudocrumbs-right)::before { content: ""; position: absolute; inset: 0; background-color: rgb(var(--basalt-secondary-color)); -webkit-backdrop-filter: blur(var(--basalt-UI-blur)); backdrop-filter: blur(var(--basalt-UI-blur)); z-index: -1; } :is(#breadcrumbs-right, .pseudocrumbs-right)::after { content: ""; top: 50%; position: absolute; inset-inline-start: 100%; display: block; background-color: rgb(var(--basalt-main-text-color), .575); width: var(--main-content-side-margin); height: .05rem; } :is(#breadcrumbs-right, .pseudocrumbs-right) a { display: block; position: relative; text-decoration: none; } :is(#breadcrumbs-right, .pseudocrumbs-right) a::before { content: ""; position: absolute; width: 0; height: .175rem; background-color: currentColor; inset-inline-end: 0; inset-block-end: calc(var(--_gap)*-1); transition: width .125s ease-out; } :is(#breadcrumbs-right, .pseudocrumbs-right) a:is(:hover, :focus)::before { width: 100%; } /* 移动端适配 */ @media (max-width: 768px) { :root { --base-font-size: 1.025rem; } #header h1 a span::after { font-size: 50px; }











