What this is
A bunch of miscellaneous CSS 'improvements' that I,
Croquembouche, 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.
.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; }
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nanum+Pen+Script&display=swap');
/* Flopstyle CSS Theme
* [2020 Wikidot Theme]
* Created by Lt Flops
* Select CSS Styles Are Credited Where Necessary
* -- (CC BY-SA 3.0) --
**/
/* ---- SITE HEADER ---- */
#header h1 a{
font-family: "Montserrat", "Arial", "Noto Sans KR", sans-serif;
}
/* ---- FORMATTING | [SPECIAL] ---- */
@font-face {
font-family: "D2Coding";
src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_three@1.0/D2Coding.woff') format('woff');
font-weight: normal;
font-style: normal;
}
:root{
--mono-font: "D2Coding", "Fira Code", "Nanum Gothic Coding", monospace;
}
/* ---- CUSTOM DIV BLOCKS ---- */
.journal{ /* ---- Journal Block (Adapted From SCP-4003) ---- */
font-family: "Architects Daughter", "Nanum Pen Script", cursive;
}
격리 직후 촬영한 SCP-187-KO의 모습.
일련번호: SCP-187-KO
등급: 안전(Safe)
특수 격리 절차: 제67기지의 수생동물 연구동에서 SCP-187-KO 한 쌍을 격리하고 있다. 번식을 억제하기 위해, 암수 개체는 각각 수조 하나씩 개별적으로 관리해야 한다. 플라스틱 제품은 SCP-187-KO가 있는 수조 반경 3m 이내로는 반입을 금지한다. 1등급 인가를 부여받은 지정된 인원이 하루에 한 번씩 각 개체에게 먹이를 주고, 한 달에 두 번씩 플라스틱 재질이 아닌 청소도구를 이용해 수조를 청소한다.
설명: SCP-187-KO는 대서양 대구(Gadus morhua)의 변종이다. 겉모습과 습성은 일반적인 대서양 대구와 유사하지만, 분석 결과 변칙적인 수단에 의해 유전자 구조가 여러 차례 변형된 흔적이 발견되었다. 지금까지 밝혀진 바로는 이러한 유전자 구조가 SCP-187-KO가 변칙성을 나타내게 된 주요 원인으로 보이며, 현재 네이피어 박사Dr. Napier의 지도하에 추가적인 연구가 진행 중이다.
SCP-187-KO는 플라스틱을 섭취 및 소화할 수 있는 능력을 갖추고 있다. 플라스틱 섭취는 비변칙적인 생물체 대부분에게 매우 치명적이지만, SCP-187-KO는 플라스틱을 갑각류나 소형 어류 같은 일반적인 먹이와 다름없이 섭취하고, 변칙적인 과정을 통해 완전히 소화한다.
플라스틱을 섭취한 SCP-187-KO는 또 다른 변칙성을 나타낸다. 플라스틱을 소화하는 동안, 개체의 성장 및 번식 과정이 엄청난 속도로 가속화된다. SCP-187-KO는 일반적인 대서양 대구와 마찬가지로 한 번에 최대 900만 개의 알을 낳을 수 있으므로, 개체가 격리 파기를 일으킬 경우 ██일 안에 전 세계의 해양 생태계가 황폐화될 것으로 예상된다.
발견: SCP-187-KO는 1992년 3월 3일, 영국 런던의 서튼 구에서 “집 앞이 온통 물고기 천지가 되었다”는 내용의 신고 전화가 들어온 이후 발견되었다. 영국 응급관리센터(Emergency Control Centre, ECC)에 파견되어 있던 재단 요원에 의해 경찰로 위장한 기동특무부대 파이-1 ("도시 촌놈")이 격리 및 은폐 공작을 위해 즉시 동원되었다. 해당 사건은 서튼 구 출신의 지역예술가 조셉 웰치Joseph Welch의 실험적인 행위예술이었다는 내용의 역정보가 언론에 유포되었으며, 최초신고자 및 주변 거주민들에게 A등급 기억소거제가 투여되었다.
부록: 현장 수습 중 회수한 물품
- 깨진 수조와 심하게 파손된 여과장치, 수류모터 등 각종 해수어 사육장비.
- 여러가지 설계도와 조잡한 물고기 그림이 잔뜩 그려져 있는 종이뭉치. 발견 당시 물에 젖어 내용을 알아보기 힘들 정도로 손상되어 있었다.
페이지 내역: 13, 마지막 수정: 02 Aug 2022 15:46