SCP-7009
SCP-7009
By: Esperanza_CaiEsperanza_Cai
Published on 28 Jul 2022 02:53
评分: +13+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; }
/* source: http://ah-sandbox.wikidot.com/component:collapsible-sidebar-x1 */
 
#top-bar .open-menu a {
        position: fixed;
        top: 0.5em;
        left: 0.5em;
        z-index: 5;
        font-family: 'Nanum Gothic', san-serif;
        font-size: 30px;
        font-weight: 700;
        width: 30px;
        height: 30px;
        line-height: 0.9em;
        text-align: center;
        border: 0.2em solid #888;
        background-color: #fff;
        border-radius: 3em;
        color: #888;
}
 
@media (min-width: 768px) {
 
    #top-bar .mobile-top-bar {
        display: block;
    }
 
    #top-bar .mobile-top-bar li {
        display: none;
    }
 
    #main-content {
        max-width: 708px;
        margin: 0 auto;
        padding: 0;
        transition: max-width 0.2s ease-in-out;
    }
 
    #side-bar {
        display: block;
        position: fixed;
        top: 0;
        left: -20em;
        width: 17.75em;
        height: 100%;
        margin: 0;
        overflow-y: auto;
        z-index: 10;
        padding: 1em 1em 0 1em;
        background-color: rgba(0,0,0,0.1);
        transition: left 0.4s ease-in-out;
 
        scrollbar-width: thin;
    }
 
    #side-bar:target {
        left: 0;
    }
    #side-bar:focus-within:not(:target) {
        left: 0;
    }
 
    #side-bar:target .close-menu {
        display: block;
        position: fixed;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        margin-left: 19.75em;
        opacity: 0;
        z-index: -1;
        visibility: visible;
    }
    #side-bar:not(:target) .close-menu { display: none; }
 
    #top-bar .open-menu a:hover {
        text-decoration: none;
    }
 
    /* FIREFOX-SPECIFIC COMPATIBILITY METHOD */
    @supports (-moz-appearance:none) {
    #top-bar .open-menu a {
        pointer-events: none;
    }
    #side-bar:not(:target) .close-menu {
        display: block;
        pointer-events: none;
        user-select: none;
    }
 
    /* This pseudo-element is meant to overlay the regular sidebar button
    so the fixed positioning (top, left, right and/or bottom) has to match */
 
    #side-bar .close-menu::before {
        content: "";
        position: fixed;
        z-index: 5;
        display: block;
 
        top: 0.5em;
        left: 0.5em;
 
        border: 0.2em solid transparent;
        width: 30px;
        height: 30px;
        font-size: 30px;
        line-height: 0.9em;
 
        pointer-events: all;
        cursor: pointer;
    }
    #side-bar:focus-within {
        left: 0;
    }
    #side-bar:focus-within .close-menu::before {
        pointer-events: none;
    }
    }
}

:root {
    --posX: calc(50% - 358px - 12rem);
}
 
/*--- Footnote Auto-counter --*/
#page-content {
    counter-reset: megacount;
}
 
/*--- Footnote Superscript Number --*/
.fnnum {
    display: inline-block;
    text-indent: calc(-1% - 0.1em);
    overflow: hidden;
    line-height: 83%;
    text-decoration: none;
    font-weight: bold;
    font-style: initial;
    color: transparent;
    position: relative; top: -0.25em; font-size: 82%;
    padding: .15em calc(.21em - 0.4px) .12em calc(.11em - 1px);
    margin-left: -0.06em;
    margin-right: -0.25em;
    counter-increment: megacount;
    user-select: none;
}
.fnnum::after {
    content: "" counter(megacount);
    color: var(--fnColor, #E6283C);
}
.fnnum:hover {
    text-decoration: none;
    cursor: pointer;
    background-color: var(--fnColor, #E6283C);
}
.fnnum:hover::after { color: white; }
 
/*--- Footnote Content Wrapper --*/
.fncon {
    position: absolute;
    right: calc(var(--posX) + 80px);
    line-height: 1.2;
    padding: 0.82rem;
    width: 10.3rem;
    background: white;
    border: 2px solid black;
    font-weight: initial;
    font-style: initial;
    text-align: initial;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s linear, right 0.3s cubic-bezier(.08,.72,.5,.94);
    z-index: 9;
}
.fnnum:hover + .fncon {
    opacity: 1;
    right: var(--posX);
}
.fncon::before {
    position: absolute;
    top: 0; left: 0;
    transform: translateX(-52%) translateY(-55%) scale(1.15);
    background-color: var(--fnColor, #E6283C);
    color: white;
    content: counter(megacount);
    font-size: initial;
    font-weight: bold;
    font-style: initial;
    padding-left: 0.32em; padding-right: 0.32em;
    padding-top: 0.18rem; padding-bottom: 0.08rem;
}
 
/*--- Mobile Query --*/
@media only screen and (max-width: 1279px) {
    .fncon {
        position: fixed;
        bottom: 1.3rem;
        left: calc(11% - 50px);
        width: 70%;
        transition: opacity 0.15s linear, left 0.3s cubic-bezier(.08,.72,.5,.94);
    }
    .fnnum:hover + .fncon {
        left: 11%;
     }
}

SCP-7009 - 条条大路通罗马

设定中心 » 循此苦旅,直抵群星 中心页 » SCP-7009 - 条条大路通罗马

Mars%20Theater.png

由“好奇”号火星探测器发现的SCP-7009-018

项目编号:SCP-7009

项目等级:Euclid N/A

特殊收容措施:I/O密涅瓦将监控互联网及新闻媒体,寻找与新发现的SCP-7009实例相关的关键词,必要时将隐藏或破坏其可信度。
更新:随着帷幕的消融,对SCP-7009的收容已停止。对其研究将继续与北京异常科学研究院合作进行。

描述:SCP-7009是一种与古罗马相关的普遍概率现象。

SCP-7009实例 描述
SCP-7009-004 共31份由随机文本生成器独立产生的《埃涅伊德》.罗马诗人普布利乌斯·维吉利乌斯·马罗写作的史诗。全文。扫描显示其不涉及奇术或本质促动活动。
SCP-7009-018 罗马杜加剧院.位于今突尼斯巴贾省的古代剧院。它曾是一年一度的杜加国际文化节的举办地点,直到2025年当地发生的忘川事件使该活动的组织不再可能。的3:2复制品,发现于火星。它似乎是由周围的岩石通过侵蚀自然生成的。未探测到奇术或本质促动活动。
SCP-7009-095 在冥王星表面发现的一块陨石,形状与韦莱特里石棺.一座雕刻精美的石棺,建于公元140-150年。相同。分析显示是它与该矮行星表面的碰撞将它塑造成了当前形状。未探测到奇术或本质促动活动。
SCP-7009-146 斐玛语。.外星物种斐玛的主要语言,其通过从外骨骼关节中释放气体进行交流。尽管斐玛的交流模式与人类极不相同,斐玛语的书面形式在功能上与古典拉丁文并无区别。
SCP-7009-264 位于行星TRAPPIST-1e上的罗马凯旋柱,尺寸为4.3 km× 0.9 km。此前它可能是一座山,经历了极端的地震活动。
SCP-7009-338 蒭藁增二。.一颗红巨星脉动变星,距太阳约200-400光年远。它是地球星座鲸鱼座的一部分。其亮度的不规则变化,若在几个世纪内观察,可以摩尔斯电码的方式解码为“VENI VIDI VICI(我来,我见,我征服)”。
SCP-7009-509 曾存在于开普勒-753b行星上的外星文明,由一种活珊瑚虫建立。其文化与大部分已知历史皆与古罗马近乎等同。大约12亿年前,开普勒-753b最大的超级火山爆发,导致XK级世界末日情景。由于深厚的火山灰层覆盖了行星83.1%的表面,开普勒-753b上存在生命的证据得以保留。

SCP-7009似乎是一种“趋同概率”。正如趋同演化是不相关的物种演化为相似结果的发展现象,趋同概率则是不相同的原因导致了相同结果的因果现象。

我从小就着迷于研究宇宙的意义。帷幕落下后不久,我进入了青春期,成长在随之而来对异常的文化狂热之中。事后看来,这似乎是不可避免的——一个十一岁的女孩,知道了魔法是真实存在的?这件事占据了我清醒时的每时每刻。怎么会不是这样呢?

在我年少的心中,透过基金会的遮蔽窥探,发现整个世界满是无法解释甚至无法描述的事物,那感觉既无比引人入胜,也同等令人恐惧。那是一场清醒梦,也是无法逃离的噩梦。我舍不得就此离开。我学得越多,就越明白自己所知甚少。

当我开始在北京异常科学研究院任职时,我也开始从这混沌理论带来的存在恐怖中寻到了一些释然。没错,这世界不可理喻又深不可测地怪异,但它仍然是在基本定律的复杂体系中运作的。想想热力学第二定律;无论如何,我们至少可以信任宇宙永远在朝着更低能量的状态前进。熵以它的绝对确定性提供了一种荒凉的慰藉。

这些哲学问题自我开始研究SCP-7009以来一直萦绕我心。再一次地,我面对着的是毫无意义的宇宙。没有某种程度的现实改变的话,SCP-7009是不应该有可能发生的——但无论我们在哪里发现它,那里的休谟值都保持着稳定。我们从未发现过奇术或本质促动活动的痕迹。

SCP-7009不过是随机概率的产物——但所谓“随机”并不真正存在。混沌是无穷复杂定律的结果。因此,当我凝视着彻底不可能性的深渊之时,我发现我修正了旧时吟诵的真言:

宇宙将永恒朝着低能状态前进。大路将永恒通向罗马。

—Xiu Huang博士

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