夜幕降临 中心页
夜幕降临 中心页
作者 Ice Red TeaIce Red Tea
发布于 17 Jun 2022 12:52
评分: +4+x

What this is

A bunch of miscellaneous CSS 'improvements' that I, CroquemboucheCroquembouche, use on a bunch of pages because I think it makes them easier to deal with.

The changes this component makes are bunch of really trivial modifications to ease the writing experience and to make documenting components/themes a bit easier (which I do a lot). It doesn't change anything about the page visually for the reader — the changes are for the writer.

I wouldn't expect translations of articles that use this component to also use this component, unless the translator likes it and would want to use it anyway.

This component probably won't conflict with other components or themes, and even if it does, it probably won't matter too much.

Usage

On any wiki:

[[include :scp-wiki:component:croqstyle]]

This component is designed to be used on other components. When using on another component, be sure to add this inside the component's [[iftags]] block, so that users of your component are not forced into also using Croqstyle.

Related components

Other personal styling components (which change just a couple things):

Personal styling themes (which are visual overhauls):

CSS changes

Reasonably-sized footnotes

Stops footnotes from being a million miles wide, so that you can actually read them.

.hovertip { max-width: 400px; }

Monospace edit/code

Makes the edit textbox monospace, and also changes all monospace text to Fira Code, the obviously superior monospace font.

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;700&display=swap');
 
:root { --mono-font: "Fira Code", Cousine, monospace; }
#edit-page-textarea, .code pre, .code p, .code, tt, .page-source { font-family: var(--mono-font); }
.code pre * { white-space: pre; }
.code *, .pre * { font-feature-settings: unset; }

Teletype backgrounds

Adds a light grey background to <tt> elements ({{text}}), so code snippets stand out more.

tt {
  background-color: var(--swatch-something-bhl-idk-will-fix-later, #f4f4f4);
  font-size: 85%;
  padding: 0.2em 0.4em;
  margin: 0;
  border-radius: 6px;
}

No more bigfaces

Stops big pictures from appearing when you hover over someone's avatar image, because they're stupid and really annoying and you can just click on them if you want to see the big version.

.avatar-hover { display: none !important; }

Breaky breaky

Any text inside a div with class nobreak has line-wrapping happen between every letter.

.nobreak { word-break: break-all; }

Code colours

Add my terminal's code colours as variables. Maybe I'll change this to a more common terminal theme like Monokai or something at some point, but for now it's just my personal theme, which is derived from Tomorrow Night Eighties.

Also, adding the .terminal class to a fake code block as [[div class="code terminal"]] gives it a sort of pseudo-terminal look with a dark background. Doesn't work with [[code]], because Wikidot inserts a bunch of syntax highlighting that you can't change yourself without a bunch of CSS. Use it for non-[[code]] code snippets only.

Quick tool to colourise a 'standard' Wikidot component usage example with the above vars: link

:root {
  --c-bg: #393939;
  --c-syntax: #e0e0e0;
  --c-comment: #999999;
  --c-error: #f2777a;
  --c-value: #f99157;
  --c-symbol: #ffcc66;
  --c-string: #99cc99;
  --c-operator: #66cccc;
  --c-builtin: #70a7df;
  --c-keyword: #cc99cc;
}
 
.terminal, .terminal > .code {
  color: var(--c-syntax);
  background: var(--c-bg);
  border: 0.4rem solid var(--c-comment);
  border-radius: 1rem;
}

Debug mode

Draw lines around anything inside .debug-mode. The colour of the lines is red but defers to CSS variable --debug-colour.

You can also add div.debug-info.over and div.debug-info.under inside an element to annotate the debug boxes — though you'll need to make sure to leave enough vertical space that the annotation doesn't overlap the thing above or below it.

…like this!

.debug-mode, .debug-mode *, .debug-mode *::before, .debug-mode *::after {
  outline: 1px solid var(--debug-colour, red);
  position: relative;
}
.debug-info {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Fira Code', monospace;
  font-size: 1rem;
  white-space: nowrap;
}
.debug-info.over { top: -2.5rem; }
.debug-info.under { bottom: -2.5rem; }
.debug-info p { margin: 0; }

夜幕降临 中心页

设定中心 » 夜幕降临 中心页

也许有一天,光明会回到这片地方。我们也将过上快乐富足的生活。但不是今日。如今,血月低垂在天空,月光反射在海湾上,没有阳光撒在这片疯狂的大地。

第二班次的哨声吹响,正午的钟声开始响起。人们开始穿行于街道。

女王御用警卫在这间公寓外的街上轰隆隆地踏过鹅卵石路,推开在路上的行人。

每个警卫都佩有Xerophyllia王国首都,Dezmond市的闪耀徽章。你拉上了窗帘,将视线移开。他们一定是来调查昨天那桩可怕的谋杀案。

当你探索公寓黑暗的内部时,昨天暴力事件的受害者的印象仍然占据着你的脑海。他们难道就生活在这么肮脏的环境下?日复一日对抗着他们心中的黑暗?或许他们不必在一头怪物撕碎他们的时候尖叫着死去。

然后现实打击了你。拥抱黑暗是在这座血腥之城生存的唯一道路。你很确信。

当警卫敲门时,你的指甲长成了匕首。毛发开始从你的身体中长出。当你的骨骼生长并移位,一声令人厌恶的爆裂声在几近空旷的公寓回荡。你泛黄的双眼盯着昨晚靠在门框上的受害者。你知道了一个残酷的事实。

这儿,现在,也许是永恒?

人皆死于黑暗。



夜幕降临是什么?

《夜幕降临》是以维多利亚时代为背景的哥特派式作品,其内容深受血源诅咒和伦敦陷落等流行作品的启发。这些故事发生在Xerophylla王国,这是一个大的,相当于大不列颠的国家。

在这个平行宇宙中,基金会本质上是一个统治集团。基金会在第一次奥术战争后统治了整个Xerophylla王国,这场战争也将超自然现象带入到大众的眼帘。

第一次奥术战争的几十年后,基金会变得更加自信,独断和傲慢。他们创造了一种能够弑神的武器。他们的目标?Yvith,夜之女神。

他们的攻击失败了。Yvith,怒不可遏地将世界笼罩在永恒的夜幕下。亡灵和夜行生物泛滥成灾,基金会陷入了沉默。

现在我们别无选择,我们必须 拥抱黑暗。

如何贡献?

如果你想为夜幕降临写作,我首先建议你先阅读一些经典的文章!熟悉一下你个人的语气和写作基调。如果你需要一些人来浏览你的点子,私信MoreMuffinsMoreMuffins或者加入NIGHTFALL discord server

除非特别注明,本页内容采用以下授权方式: Creative Commons Attribution-ShareAlike 3.0 License