Dr Itzhak FITF-2
Dr Itzhak FITF-2
Author: Dr ItzhakDr Itzhak
Published on 26 Mar 2021 21:13
/* 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) {
 
    .mobile-top-bar {
        display: block;
    }
 
    .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!important;
        position: fixed;
        top: 0;
        left: -19em;
        width: 17em;
        height: 100%;
        margin: 0;
        overflow-y: auto;
        z-index: 10;
        padding: 0.3em 0.675em;
        background-color: rgba(0,0,0,0.1);
        transition: left 0.5s ease-in-out;
    }
 
    #side-bar:target {
        display: block;
        left: 0;
        width: 17em;
        margin: 0;
        z-index: 10;
    }
 
    #side-bar:target .close-menu {
        display: block;
        position: fixed;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        z-index: -1;
    }
 
    #top-bar .open-menu a:hover {
        text-decoration: none;
    }
 
    .close-menu {
        margin-left: 19em;
        opacity: 0;
    }
}
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; }
rating: 0+x

To access SCiPNET the correct credentials are needed, please enter credentials below
.
.
.
################ acc.hresearcher.a_allwood
.
.
.
Credentials accepted, Welcome Head Researcher Ash Allwood, what would you like to do?
.
.
.
access_file: SCP-7999
.
.
.
Are you sure you want to access file: SCP-7999?
.
.
.
yes
.
.
.
Opening file…

[[<]]

Designation Memorandum:

Due to SCP-7999-K/I "Containment" of a site and two (2) cities SCP-7999-K/I instances are to be treated as seperate anomalies from SCP-7999-M.

Classification Memorandum:

Due to the unique nature of of SCP-7999-M and -K/I, each entity has been assigned an individual containment class.

  • SCP-4812-M: Magna1
  • SCP-4812-K/I: Keter/Ignosi

Special Containment Procedures-7999-M:

Instances of SCP-7999-M are to be used by the following MTF units:

  • MTF Alpha-9 ("Last Hope")
  • MTF Epsilon-6 ("Village Idiots")
  • MTF Epsilon-11 ("Nine Tailed Fox")
  • MTF Zeta-9 ("Mole Rats")
  • MTF Eta-5 ("Jäeger Bombers")
  • MTF Eta-10 ("See No Evil")
  • MTF Lambda-12 ("Pest Control")
  • MTF Mu-13 ("Ghostbusters")
  • MTF Pi-1 ("City Slickers")
  • MTF Tau-5 ("Samsara")
  • MTF Psi-8 ("The Silencers")

SCP-038 Is to be used to clone SCP-7999 to meet MTF requirements. All cloned SCP-7999 instances must be inspected before issue for any malfunctions. SCP-7999 clones must be placed in all sites that specialize in containing SCP's incase a containment breach occurs.

Special Containment Procedures-7999-K/I :

SCP-7999-K/I All un-authorized personnel are not allowed to enter SCP-7999-K/I from a 2km radius, MTF Beta-10 ("Cover Patrol") are to patrol and prevent entry of any un-authorized personnel. Any personnel found inside the 2km zone are to be detained, administered amnestics and let free. All reports about SCP-7999-K/I are to be removed from the media, those responsible for the reports are to be detained by MTF Iota-10 ("Damn feds") and are to be administered Class C amnestics.

Description-7999-M:

SCP-7999 is a small tungsten cube with the initials S.C.P engraved on it's side. It is speculated that SCP-7999 came from another reality where it was developed by the SCP-Foundation to contain SCP's with greater ease. The cube has a camera, activation button and The following settings:

Item Length: 1m-100m
Item Width: 1m-200m
Item #: N/A- 8000 8001 (Changes automatically with database updates)
Transparent: True/False
Anti-Corrosive: True/False.

Instructions can also be found on SCP-7999 (See SCP-7999 use instructions)

After testing with SCP-7999 the O-5 council decided to assign SCP-7999 to the MTF units listed above (See Addendum-7999-2) Order cancelled (See bottom of Addendum-7999-2)

Description-7999-K/I:

SCP-7999-K/I Is an advanced version of SCP-7999-M, it was created accidentally during cloning. It mostly has the same features of SCP-7999-M, but it has advanced AI which can record audio and speak. Even though it was different then SCP-7999-M copies, it was still issued to Sites and MTF's, following Incident-AC-7999-K/I all SCP-7999-K/I copies were destroyed (See Incident-AC-7999-K/I)

Addendum-7999-2:

Below is an archived order of the O-5 council:

After debating, the O-5 council has decided to use SCP-7999 to contain other SCP's. SCP-7999 is to be used by MTF's specializing in containment of anomalies.
All SCP-7999 Copies are to be examined for any malfunctions before being issued.
After containing an anomaly with SCP-7999 they are to be returned into their original containment chamber/area and or if they don't have one they are to be held inside the SCP-7999 copy until a containment chamber/area is made for them.
-[DATA EXPUNGED], O5-2.

This order has been cancelled due to the accidental creation of SCP-7999-K/I, any remaining copies of SCP-7999-M are to be re-used, creating more copies of SCP-7999 is strictly prohibited.