일출의 견본
일출의 견본
Byㅤ Lt FlopsLt Flops
Translated By Aiken DrumAiken Drum
평가: +6+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; }

일출의 견본

카논 허브 » 드리운 밤 허브 » 일출의 견본

전 평생 해를 본 적이 없어요.

손님들은 항상 제가 이 얘기를 하면 놀라요. "그렇게 오래 지났나?"라고 물어보죠.

마을 사람들은 저에게 태양의 황금빛 광채에 대한 이야기를 해주곤 해요. 하늘에 떤 거대한 불길이 온세상을 너무나 밝게 비추어서 별이 보이지 않는다죠. 아침 하늘의 부드러운 주황빛, 분홍빛, 노랑빛이나 비바람이 지나간 뒤 보이는 선명한 무지개도 있죠.

전 빠져들어버렸답니다. 모두가 이야기를 할 때마다 사로잡혔죠. 모든 이야기 하나하나가 색다르고 저번 이야기보다 엄청났죠. 전 항상 제가 그곳에 있어서 볼 수도 있고, 따뜻함을 느끼는 게 소원이었답니다. 그치만 엄마는 항상 해를 똑바로 쳐다 보면 안 된다고 했죠.

그치만, 전 보는 게 소원이에요. 제가 상상할 뿐인 광경을 보고 싶어요. 하늘을 가득 채운 감탄 나오는 색깔 가운데 해가 떠있죠. 지금은 사라져버렸지만, 그 빛은 추억 속에 여전히 존재해요. 손님이 찾아오면, 전 추억에 대해, 그들의 이야기에 대해 물어봐요. 손님들은 너도밤나무의 잎이 반짝이는 녹색 창으로 변해 작은 요정처럼 즐겁게 시냇물을 타고 논다고 말해주죠.

전 이런 이야기로 온 힘을 다해서 상상해보려고 해요. 이런 광경을 그리려면, 선명한 인상이 필요하죠. 흐릿한 거론 제대로 되지 않아요.

전 캔버스에 둘러쌓여있어요. 몇 개는 깔끔하지만, 그보다 많이 망가져 있고, 모두 부드러운 분홍빛과 은은한 푸른빛으로 칠해져 있죠. 일출을 그리는 건, 아마도, 제 일생일대의 작품이에요. 전 모든 종류의 광경을 빛어낼 거에요, 물론, 어떤 면에서 햇빛을 봐야 그 광경을 무시할 수 있을까요? 하지만 일출은 그 중 최고가 될 거에요.

유치한 꿈일지도 몰라요, 하지만 전 항상 제가 완벽한 일출 하나 그려낸다면, 어쩌면 어느날 제 창문을 통해 진실하고 천국과 같은 광경, 진정한 새벽이 옴과 함께 깨어날 수 있을지도 몰라요.

그건 가장 경이로운 모습이 아닐까요?



pic1room.png





🈲: SCP 재단의 모든 컨텐츠는 15세 미만의 어린이 혹은 청소년이 시청하기에 부적절합니다.
따로 명시하지 않는 한 이 사이트의 모든 콘텐츠는 크리에이티브 커먼즈 저작자표시-동일조건변경허락 3.0 라이선스를 따릅니다.