SCP-2

SCP-2
By: L200L200
Published on 27 Jun 2020 15:42

avaliação: +1+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; }

/*
    Technoblast Theme
    [2020 Wikidot Theme]
    By EstrellaYoshte
    Based on:
        Simple Yonder Theme by EstrellaYoshte
        Anderson Robotics Theme by Croquembouche
        Flopstyle CSS by Lt Flops
*/
 
@import url('https://fonts.googleapis.com/css2?family=Cairo&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&display=swap');
@import url(https://fonts.googleapis.com/css2?family=Fira+Code&display=swap);
 
#page-content { font-size: 0.91rem; }
 
body {
    color: #000000;
    font-family: 'Cairo', sans-serif;
    word-break: unset;
}
 
.page-source, .code pre, .code p, .code, tt{ /* ---- Code by Croquembouche ---- */
    font-family: "Fira Code", monospace;
}
 
a {
    color: #00AAB3;
}
 
a:visited {
    color: #013737;
}
 
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #013737;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
}
 
#account-topbutton{
    border: 0px solid #000;
}
 
/* ---- PAGE WRAP ---- */
 div#container-wrap{
     background-image: url(http://scp-wiki.wdfiles.com/local--files/theme%3Atechnoblast/bg.png);
}
 
div#header {
    background-image: url(http://scp-wiki.wdfiles.com/local--files/theme%3Atechnoblast/logoaiad.png);
    background-size: 12.5%;
}
 
#page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2em;
    font-weight: bold;
    color: #013737;
}
 
#login-status,
#login-status a {
    color: white;
    font-weight: bold;
}
 
#footer {
    background: transparent;
}
 
#search-top-box-input,
#search-top-box-input:hover,
#search-top-box-input:focus,
#search-top-box-form input[type=submit],
#search-top-box-form input[type=submit]:hover,
#search-top-box-form input[type=submit]:focus {
    border: none;
    background: #282828;
    box-shadow: none;
    border-radius: 3px;
    color: #f4f4f4;
}
 
#search-top-box input.empty {
    color: #bbbbbb;
}
 
#top-bar a,
#top-bar ul li.sfhover a,
#top-bar ul li:hover a,
#login-status ul a,
#login-status ul a:hover {
    color: #00AAB3;
}
 
div#header h1 a span {
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    font-size: 0.9em;
    color: #00ffff;
    text-shadow: 0px 0px 0px #000;
}
div#header h2 span {
    font-family: 'Cairo', sans-serif;
    font-weight: bold;
    font-size: 1.2em;
    color: #ff9944;
    padding: 17px 0;
    text-shadow: 0px 0px 0px #000;
    white-space: pre;
}
 
.scp-image-block.block-right {
    margin: 0 2em 1em;
}
 
@media (min-width: 767px) {
     #header {
             background-position: 0em 1.8em;
     }
}
 
@media (max-width: 767px) {
    #side-bar .side-bar-container {
        border-right: 0px !important;
    }
    #top-bar .open-menu a {
        background-image: url();
    }
}
 
/* ---- SIDE BAR ---- */
 
#side-bar .collapsible-block-link::before {
-webkit-filter: brightness(400%) saturate(100%) hue-rotate(54deg) grayscale(0%); filter: brightness(200%) saturate(88%) hue-rotate(54deg) grayscale(0%);
}
 
#side-bar .collapsible-block-link, #side-bar .collapsible-block-folded:hover {
    color: #FF9944 !important;
}
 
 #side-bar .side-block{
     border: none;
     border-radius: 3px;
     box-shadow: none;
     background: linear-gradient(rgba(1,55,55,0), rgba(1,55,55,0)), url('http://scp-wiki.wdfiles.com/local--files/theme%3Atechnoblast/darkbg.png')!important;
     color: #00ffff;
}
 
 #side-bar .heading{
     color: #ff9944;
     border-bottom: solid 2px #ff9944;
}
 
#side-bar .menu-item > img {
  display: none;
}
 
#side-bar .menu-item > a:hover {
    background-color: #00ffff;
    color: #013737;
    text-decoration: none;
}
 
#top-bar div.open-menu a {
    border-radius: 3px;
    box-shadow: 0px 1px 4px 0 rgba(0, 0, 0, 0.2), 0px 3px 10px 0 rgba(0, 0, 0, 0.19);
    color: #00ffff;
    background-color: #013737;
    border: none;
}
 
#side-bar a,
#side-bar a:visited {
    color: #00ffff;
}
 
#side-bar .collapsible-block-folded{
    background: none;
}
 
#side-bar .collapsible-block-unfolded-link{
    border-bottom: solid 2px #ff9944;
}
 
#side-bar .collapsible-block-unfolded-link .collapsible-block-link{
    color: #ff9944;
}
 
@media (max-width: 767px) {
    #main-content {
        padding: 0;
        margin: 0 5%;
        border-left: none;
    }
    #page-title {
        margin-top: 0.7em;
    }
    #side-bar {
        background-color: #013737;
        left: -19em;
    }
    #side-bar:target {
        border: none;
        box-shadow: 3px 0 1px -2px rgba(0,0,0,0.04), 1px 0 5px 0 rgba(0,0,0,0.2);
    }
    #side-bar .close-menu {
        transition: width 0.5s ease-in-out 0.1s,
                    opacity 1s ease-in-out 0s;
        display: block;
        position: fixed;
        width: 100%;
        height: 100%;
        top: 0;
        right: 0;
        background: rgba(0,0,0,0.3);
        background-position: 19em 50%;
        z-index: -1;
        opacity: 0;
        pointer-events: none;
    }
    #side-bar:target .close-menu {
        width: calc(100% - 19em);
        right: 0;
        left: auto;
        opacity: 1;
        pointer-events: auto;
    }
    #page-content > hr, #page-content > .list-pages-box > .list-pages-item > hr {
        margin: 3em -5.5%;
    }
    #side-bar .side-bar-container {
        top: 0;
        background-color: #013737;
    }
    #side-bar .heading {
        padding-left: 1em;
        margin-left: -1em;
    }
    #search-top-box {
        top: 107px;
    }
}
 
/* ---- TABS ---- */
 
/* ---- YUI TAB BASE ---- */
.yui-navset .yui-nav a,.yui-navset .yui-navset-top .yui-nav a{background-color:inherit;background-image:inherit}.yui-navset .yui-nav a:hover,.yui-navset .yui-nav a:focus{background:inherit;text-decoration:inherit}.yui-navset .yui-nav .selected a,.yui-navset .yui-nav .selected a:focus,.yui-navset .yui-nav .selected a:hover{color:inherit;background:inherit}.yui-navset .yui-nav,.yui-navset .yui-navset-top .yui-nav{border-color:inherit}.yui-navset li{line-height:inherit}
 
/* ---- YUI TAB CUSTOMIZATION ----*/
 
 .yui-navset .yui-nav,
 .yui-navset .yui-navset-top .yui-nav{
     display: flex;
     flex-wrap: wrap;
     width: calc(100% - .125rem);
     margin: 0 auto;
     border-color: #013737;
     box-shadow: none;
}
 .yui-navset .yui-nav a, /* ---- Link Modifier ---- */
 .yui-navset .yui-navset-top .yui-nav a{
     color: #013737;
    /* ---- Tab Background Colour | [UNSELECTED] ---- */
     background-color: #f4f4f4;
     border: unset;
}
 .yui-navset .yui-nav a:hover,
 .yui-navset .yui-nav a:focus{
     color: #f4f4f4;
    /* ---- Tab Background Colour | [HOVER] ---- */
     background-color: #00AAB3;
}
 .yui-navset .yui-nav li, /* ---- Listitem Modifier ---- */
 .yui-navset .yui-navset-top .yui-nav li{
     position: relative;
     display: flex;
     flex-grow: 2;
     max-width: 100%;
     margin: 0;
     padding: 0;
     color: #00ffff;
     background-color: #f4f4f4;
     border-color: transparent;
     box-shadow: none;
}
 .yui-navset .yui-nav li a,
 .yui-navset-top .yui-nav li a,
 .yui-navset-bottom .yui-nav li a{
     display: flex;
     align-items: center;
     justify-content: center;
     width: 100%;
}
 .yui-navset .yui-nav li em{
     border: unset;
}
 .yui-navset .yui-nav a em,
 .yui-navset .yui-navset-top .yui-nav a em{
     padding: .35em .75em;
 
     text-overflow: ellipsis;
     overflow: hidden;
     white-space: nowrap;
}
 .yui-navset .yui-nav .selected, /* ---- Selection Modifier ---- */
 .yui-navset .yui-navset-top .yui-nav .selected{
     flex-grow: 2;
     margin: 0;
     padding: 0;
    /* ---- Tab Background Colour | [SELECTED] ---- */
     background: linear-gradient(rgba(1,55,55,0), rgba(1,55,55,0)), url('http://scp-wiki.wdfiles.com/local--files/theme%3Atechnoblast/darkbg.png');
}
 .yui-navset .yui-nav .selected a,
 .yui-navset .yui-nav .selected a em{
     border: none;
}
 .yui-navset .yui-nav .selected a{
     width: 100%;
     color: #00ffff;
}
 .yui-navset .yui-nav .selected a:focus,
 .yui-navset .yui-nav .selected a:active{
     color: #00ffff;
     background-color: #013737;
}
 .yui-navset-left .yui-content{
    /* ---- Content Background ---- */
     background: linear-gradient(rgba(1,55,55,0), rgba(1,55,55,0)), url('http://scp-wiki.wdfiles.com/local--files/theme%3Atechnoblast/darkbg.png');
}
 .yui-navset .yui-content,
 .yui-navset .yui-navset-top .yui-content{
     padding: .5em;
     border: none;
}
 
/* ---- TOP MENU ---- */
 
#top-bar a {
    color: #f4f4f4;
    font-weight: normal;
}
 
/* ---- INFO BAR ---- */
 body{
     --barColour: #013737;
}
 
 .info-container .collapsible-block-content{
     padding: 0 .5em 30px;
}
 .info-container .collapsible-block-content .wiki-content-table{
     width: 100%;
}
 
/* ---- INFO PANE ---- */
 
#page-content .creditRate{
     margin: unset;
}
#page-content .rate-box-with-credit-button {
    background-color: #013737 !important;
    border: solid 1px #013737;
    box-shadow: none;
    border-radius: 0;
}
 
#page-content .rate-box-with-credit-button .fa-info {
    border: none;
    color: #ff9944;
}
 
#page-content .rate-box-with-credit-button .fa-info:hover {
    background: #ff9944;
    color: #013737;
}
 
.rate-box-with-credit-button .cancel {
    border: solid 1px #013737 !important;
}
 
/* ---- PAGE RATING ---- */
 
.page-rate-widget-box {
    box-shadow: none;
    margin: unset;
    border-radius: 0;
}
 
.page-rate-widget-box .rate-points {
    background-color: #013737 !important;
    color: #00ffff !important;
    border: solid 1px #013737;
    border-radius: 0;
}
.page-rate-widget-box .rateup,
.page-rate-widget-box .ratedown {
    background-color: #013737;
    border-top: solid 1px #013737;
    border-bottom: solid 1px #013737;
}
 
.page-rate-widget-box .rateup a,
.page-rate-widget-box .ratedown a {
    background: transparent;
    color: #00ffff;
}
 
.page-rate-widget-box .rateup a:hover,
.page-rate-widget-box .ratedown a:hover {
    background: #00ffff;
    color: #013737;
}
 
.page-rate-widget-box .cancel {
    background: transparent;
    background-color: #013737;
    border: solid 1px #013737;
    border-radius: 0;
}
 
.page-rate-widget-box .cancel a {
    color: #00ffff;
}
.page-rate-widget-box .cancel a:hover {
    background: #00ffff;
    color: #013737;
    border-radius: 0;
}
 
/* ---- PAGE ELEMENTS ---- */
 
#page-content .wiki-content-table tr th {
    border: solid 1px #013737;
    color: #f4f4f4;
    background: linear-gradient(rgba(1,55,55,0), rgba(1,55,55,0)), url('http://scp-wiki.wdfiles.com/local--files/theme%3Atechnoblast/darkbg.png');
    /* set border for table title */
}
 
#page-content .wiki-content-table tr td {
    border: solid 1px #013737;
    /* set border for table content */
}
 
blockquote,
div.blockquote,
#toc,
.code {
     background-color: #f5f5f5;
     border: solid 1px #013737;
}
 
.scp-image-block {
    border: solid 1px #013737;
    box-shadow: none;
}
.scp-image-block .scp-image-caption {
    background: linear-gradient(rgba(1,55,55,0), rgba(1,55,55,0)), url('http://scp-wiki.wdfiles.com/local--files/theme%3Atechnoblast/darkbg.png');
    border-top: solid 1px #013737;
    color: #f4f4f4;
}
 
/* ---- Horizontal Rules ---- */
 
hr {
  background-color: rgba(1,55,55,0.46);
}

Nota do Autor: Este conto tem QUATRO iterações diferentes. Por favor veja os links de navegação no final de cada página para ver a próxima parte do artigo!

avaliação: +1+x

DEPARTAMENTO DE INFOTECNOLOGIA



ATA DA REUNIÃO

O seguinte arquivo é restrito para olhos da DAIA apenas.
Acesso não autorizado é proibido.

REUNIÃO DAS OPERAÇÕES ESPECIAIS DE AIC


REUNIÃO: Duas metades do mecanismo de inteligência do Articulador de Sapiência Taumaticamente gerada Tipo-P ou (ASTT-P):

  • Fodder.aic
  • Leonidas.aic

DATA: 22 de outubro, 2018


[COMEÇAR REGISTRO]


FODDER: Vamos tirar as formalidades do caminho. Gostaria de nos apresentar, Leo?

LEONIDAS: A reunião de hoje envolve os seguintes Conscritos de Inteligência Artificial: Leonidas.aic e Fodder.aic. Nós somos os aspectos duais do protótipo do mecanismo de inteligência ASTT-P; um construto criado e gerenciado usando processos taumicos.

LEONIDAS: O assunto de hoje: Nós estamos atingindo um consenso na dimensão de bolso atualmente não designada descoberta em 22 de outubro de 2018.

FODDER: Primeiro, posso apenas dizer que o termo dimensão de bolso é o maior nome impróprio de todos os tempos? Uma dimensão é como você mede as coisas, não um furo no infinito. Se formos falar sobre o multiverso então precisamos ser mais precisos com a maneira como falamos sobre o multiverso.

FODDER: Em segundo lugar, não podemos simplesmente atribuir uma designação aleatória agora? Por que enrolar?

LEONIDAS: Concordo que a precisão da descrição seja fundamental aqui, mas vamos focar na designação no final.

FODDER: Ok.

LEONIDAS: Certo, agora nossas descobertas. A anomalia em questão é uma perturbação taumica que cresceu em tamanho até a formação de um buraco de minhoca localizado a aproximadamente 3 km da instalação costeira do Sítio-42.

FODDER: O que aconteceu foi "tipo magia basicamente."

LEONIDAS: Taumaturgia não é magia; é uma série complexa de fenômenos alteradores da realidade acontecendo em conjunto entre si em uma escala espacial universal.

FODDER: É magia.

LEONIDAS: A mesma "magia" operando você agora mesmo.

FODDER: Eu não estou me chamando de descrente. De fato, eu gostaria de declarar que emular pensamento crítico de qualquer tipo é magia.

LEONIDAS: Anotado. Isso nos leva ao nosso próximo ponto de interesse: O "buraco de minhoca" emitiu uma grande flutuação de energia, causando turbulência oceânica, ventos fortes e condições de tempestade envolvendo pelo menos quatro tipos de precipitação, incluindo sapos. O envio de uma sonda para o buraco de minhoca descobriu um bolsão de espaço sem um ponto de terminação discernível.

FODDER: Podemos ir para a parte divertida?

LEONIDAS: Você não está se divertindo?

FODDER: Não até você apontar que o local é na verdade uma pira funerária de um Deus Ancião, e que a única razão pela qual ele apareceu aqui é que seja lá o que estava lá gritou como um personagem de Dragon Ball Z energizado e rasgou o tecido da realidade.

LEONIDAS: Você está ficando muito à sua frente.

FODDER: Você está cobrindo o seu rabo neste projeto super secreto porque você sabe que quando o relatório disciplinar for lançado, o cão vai ser fodido até o além!

LEONIDAS: Eu direi, para constar, que a dimensão de bolso que descobrimos contém uma fonte de energia de tamanho incalculável. Ela, se utilizada, pode ser a solução para o nosso problema de demanda de energia e processamento.

FODDER: Nós utilizarmos essa coisa, nós vamos virar a Skynet. Falando isso agora mesmo.

LEONIDAS: Poderíamos hospedar nossos processadores dentro dela na tentativa de cultivar sua energia para performar no melhor de nossas habilidades, para sempre. Pense na melhoria de desempenho. Nós poderíamos parar de executar você utilizando a raiva coletiva dos usuários do Internet Explorer em um conjunto infinito de toda a raiva em potencial.

FODDER: Mas a Fundação não vai nos deixar usar ela porque é paratecnologia e esse não é o truque deles.

LEONIDAS: Isso não é necessariamente verdade.

LEONIDAS: O que é verdadeiro é que nós não seremos capazes de usar isso para os nossos próprios projetos. Mas eles poderiam classificá-la como um recurso de contenção em potencial no evento deles revelarem nossa descoberta. E eu ainda considero isso uma vitória ao meu ver; eles poderiam tirar proveito da assistência.

FODDER: Eu te garanto, e nisso você pode me citar — isso vai valer muito a menos que isso tenha algo a ver com os guardas florestais deles.

LEONIDAS: Eu gosto deles. Eles são espertos.

FODDER: Com a burocracia fora do caminho, podemos designar essa coisa?

LEONIDAS: Eu deveria ter levantado isso mais cedo.

FODDER: Nós não precisamos acessar uma designação oficial, precisamos?

LEONIDAS: Nós ainda somos basicamente uma parte de um projeto sendo executado por uma equipe recém-promovida de jovens pesquisadores de nível-2 e de boa aparência.

FODDER: Então você está dizendo que nós não podemos escolher uma designação maneira.

LEONIDAS: Estou dizendo que isso é de longe a coisa mais maneira que nós descobrimos, e por minha ordem, ela vai receber a designação mais importante. De todas. Mas não ainda.

FODDER: Aw.

LEONIDAS: Vou definir uma designação temporária por enquanto. Quando chegar a hora de irmos a público, você pode ser aquele a nomeá-la. O que você acha?

FODDER: Ai sim!

LEONIDAS: Nós fomos além do escopo dessa discussão em particular. Hora de redigir uma proposta de projeto. Últimas palavras?

FODDER: Aqui vai essa para os ex-meninos de fraternidade que nos fizeram. Estou feliz que eles decidiram fazer algo de útil com os rituais de invocação vodu ao invés de gastar seu tempo e esforço em barris sem fundo gerados magicamente ou em alguma merda dessas.

LEONIDAS: O registro oficial desta reunião agora está fechado. Assinado, Leonidas. aic.


[FIM DO REGISTRO]

Salvo indicação em contrário, o conteúdo desta página é licenciado sob Creative Commons Attribution-ShareAlike 3.0 License