SCP-6982

SCP-6982
By: Esperanza_CaiEsperanza_Cai
Published on 08 Oct 2021 13:06
评分: +8+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; }

请说出你的名字,以便记录。

一个生日宴会。似乎是五岁?还是七岁?

一个孩子独自坐着。那是她的生日,但没人在乎。她听着周围的笑声。

她知道他们只是来吃蛋糕的。



Jayden Carver。


你是如何知道基金会的?


我就这么……知道了。


球飞过去。她转过头,但没有移动。她从来都不怎么喜欢运动。

他们大喊着让她去追。可是这无所谓。


你就这么知道?


我就这么知道了。还有什么要说的?


好吧,继续。你为什么来这里?

“Nora?”

她周围的孩子们窃笑着。她揉了揉眼睛。“嗯?”



我觉得……我应该来。


展开讲讲。


和知识有关。我……


一声巨响。

她手里的课本掉在地上。


你如何?

尖叫。失望。

低分。

一个承诺。



我不知道。


无法离开。

懊丧。



我不……知道我在说什么。


孤独。


一个朋友。

一个不会离开的人。


好吧,发生了什么?

一个工作机会。

困住。



你的,呃,你的记忆……


一个秘密。

一个可怕的秘密。


我的记忆?

一场仪式。

一种疾病。

一把枪。



但这不对。我一直在看到……


一把枪。



你昨天提到了我的记忆。你想说什么?


我不……我不记得我说过什么了。


欢呼。贺喜。

她几乎不能透过静电声听见他们。他们在为她高兴,但是……

这是一个分支吗?


在我问你发生了什么之后?

尖叫。

在她想说话的时候刚好吵了起来。她坐在桌边,可这并不意味着什么。



哦。


她张开嘴,可是什么也没有说出来。

秘密便永远没有说出。


你总是这么……心不在焉吗?


以前不是。我的情况变得更严重了。


你的情况?


我能看见记忆。但不是主动的。


那动物僵住了,眼睛睁大。

她狠狠地踩下刹车。

玻璃在空中飞过。

尖锐的疼痛。

现在补救已经太迟了。


该死。你看到了多少?


不管我说多少,你都不会喜欢的。


那——就让这些保持在你知我知吧。


你对看到的记忆能记得多少?


看情况。有些会一直留在我心里,但别的……我忘了。


好吧,呃,你知道这个吗?

项目编号:SCP-6982

项目等级:未收容

特殊收容措施:N/A

描述:SCP-6982是一只银碗。人类对象从上往下观察SCP-6982时将感知到一系列反射在其内部的图像。

图像如下:

  1. 一瓶啤酒。
  2. 一辆黑色的汽车。
  3. 一名儿童,年龄大约4-6岁。
  4. 一片森林。
  5. 一把铲子。

这是……



你的,呃……我觉得……不是这样。


确实。

再多点时间吧。

在她消失在水下的时候,她希望能拥有再多一点的时间。



瞧,我看见了你的时间线。


什么?


我看到了你的未来,而你没有跟任何人说过。你临终前的时候,总是希望自己能说过什么。


说过什么……

她抓起铲子。

是时候把过去挖出来了。


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