RIP in Poland
RIP in Poland
Byㅤ Cassandra_PrimeCassandra_Prime
Published on 01 Oct 2022 01:27
rating: 0+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;
    }
    }
}

2003


October 31st 11:00 PM

Site-120: Silesian Voivodeship, Republic of Poland

9:00 PM


Site-120's common room was filled to the brim with mad scientists, necromancers, secret agents and wizards.

And hey, some of those people even wore costumes!

Jessie Rivera was very satisfied with herself for having organized such a grand Halloween party, what with everything going on. Not long ago they had a Triumviraté attack on-site, a skeleton army break out of Hell and into Esterberg, not to mention what went on with that elevator! As a result, they had gotten quite a few Tactical Theology guests, as well as specialists from several other departments in case the 5572 situation went full Genghis on them.

Everybody was on edge about that, even if they didn't have all the details. Those who did have the details were even more concerned. Having a skeletal army with unknown intentions in your backyard is one thing, having a skeletal army with stated hostile intentions, quite another.

Hence, she'd gone all out on the party! Spiked punch, Halloween decorations, a dance floor, the whole nine yards!

She saw Asheworth in a cute catboy costume hanging out with a Tactical Theology taskforce, Dr. Kauffman was regaling guests with tales of the Third Antarctic Empire in a Santa Claus costume (another joke on him by his research team, most likely, though the man never seemed to mind), necromancers were doing the Monster Mash, even McCarthey had promised to swing by eventually.

Everyone seemed to be having a good time!

Well, not everybody.

Some visitor, a Researcher Fuller, she recalled, didn't seem very happy. He stood off to the side, wearing a skeleton costume, of all things. Pretty bad taste all things considered, but hey that's Americans for you.

Jessie herself was wearing a pirate costume she'd bought at a Renaissance Festival some time ago, cost her a pretty penny and she almost never used it, but it was oodles better than the crap at a Halloween store.

She made her way over to Magdaleine and Jeremy Cornwell, who were chatting and drinking punch near the dance floor

Mags was wearing a simple, tasteful witch costume, black dress, black hat, black leggings. She looked great, as always.

Jessie made her way over to Magdaleine, and if there was a bit of a skip to her step, and a brightening of her expression, well, nobody told her.

"Hey Mag! Hi Jeremy!

"Hi Dr.Rivera", Jeremy said genially,"nice party you set up here!"

"Yeah!" agreed Magdelaine,"And that costume looks really good on you" she added, looking Rivera up and down."

"Ahh, come on, you have a great costume, you always look good in black."

"Get a room, you two" said Jeremy, teasingly elbowing his sister.

"Oh, Jeremy, don't you start!" said Mag.

Jeremy laughed.

The three engaged in idle conversation for bit.

"Have you seen Asheworth's costume?"

"No, what is it?"

"Some sort of cat costume, I think he made it himself, it looks real good!"

"Like, made it himself, or made it himself?"

"Oh my God, I hope he didn't, after what happened last time."

"Do you guys want to dance?" asked Rivera, who after a few drinks had begun to feel the call of the music in her very bones

"No thanks" said Jeremy, "I'm going to go grab some more punch, you ladies want any?"

"No, I'm good!"
"No thank you!"

Jeremy walked off, leaving the two.

"Come on!" playfully demanded Jessie, insistently tugging her friend towards the dance floor.

Magdaleine laughingly followed her lead, gripping Jessie's hand tight.

Tonight was going to be a great night.


logosmall.png

Ugh, the night was going horribly.

Randy had, at Ra.aic's insistence, attended the party in Marty's spare skeleton costume. He'd been a bit iffy about it, given the whole Spooky thing, but Ra had said that everybody would be in costume, and it's not like Marty'd packed his own while traveling.

He'd been right, he could feel people were looking at him funny. Cole especially, when he went to check in looked… very unimpressed. Not that he was very impressed by Thereven's Shrek costume, either, but Cole was the boss.

Randy had a few drinks and said hi to a few staff members, though he didn't feel like he knew most of them enough to make small talk. He took a look around for Marty and saw him chatting to Captain Cornwell near the punch bowl. Marty seemed to be getting a bit heated which was unlike him, from what Randy had seen.

"For the last time I'm not a fiction writer, I do real work Captain, my office is down in sub level 6."

"Oh come on Martin, such a stick in the mud, I thought you were supposed to be funny! Come on, tell us a joke, eh?"

That pissed Randall right off. Clearly Marty was uncomfortable with the situation, and yet the man was bothering him anyway, he decided to intervene. But before he could, Captain Cornwell got a call on his walkie-talkie, and stepped away.

He approached Marty, grabbing some more punch.

"What was that about?"

Marty sighed sadly.

"Some people just don't appreciate my work in the D.O.O."

"Hey, Marty, come on now, it could be worse." Randy whispered conspiratorially "You could be Cole Thereven!"

Marty laughed, seemingly back to his old self. Then he headed off to the lavatory.

Randy kind of just stood around for a moment, having little else to do. Then, suddenly, a containment breach sounded in Ra.aic's voice.

'WARNING, WARNING, CONTAINMENT BREACH IN PROGRESS SCP-"

Then the speaker cut out, along with the lights. For a moment there was total darkness, and total silence, then the panic set in. The first to shout was Cole, with many more voices following expressing fear or asking people to shut up. But Randy heard one noise, quiet though it was, above all else.

The jangling of bones.

"Hostile!" he yelped, having never been in a combat situation before but assuming that was what you said. However, nobody heard him over the other yells.

Light sources gradually appeared from multiple points. Security, MTFs and some magic users all using devices or abilities to create some light. Enough light to see that the room had been ransacked, and a message writ on the wall, all the less then a minute.

The message was in… what was that? blood? guts? no… pumpkin pulp.

It read "HAPPY HALLOWEEN BITCHASSES, PREPARE FOR THE SPOOK OF YOUR LIVES"

It was then that Randy knew, knew that his nightmares had been real, Spooky had some way of sneaking out, and he had done just that. His capture, ever since the moment he'd entered the Site, it'd been a ruse. He'd played the idiot while readying his nefarious plans for them all, whatever that may be.

It was then that Randy noticed, in his somewhat intoxicated state, that the room was somewhat emptier than it had been a moment ago.

Someone yelled about a skeleton attack, and before he knew it, Randall Filler had been tackled to the ground.

—-

(Asheworth "costume" includes whiskers, tail, ears, believable hissing and purring, feline grace)