frontpage/styles/customAsciidoc.scss

106 lines
2.1 KiB
SCSS
Raw Normal View History

2022-02-04 23:29:26 +01:00
.asciidoc {
2022-06-13 12:54:40 +02:00
font-family: sans-serif;
2022-02-04 23:29:26 +01:00
@import "./asciidocBootSlate";
2022-06-14 16:44:00 +02:00
@import "~highlight.js/scss/atom-one-dark";
2022-06-13 12:54:40 +02:00
2022-02-04 23:29:26 +01:00
h1 {
color: var(--repl-color-link, #2ac02a);
2022-06-14 14:37:17 +02:00
font-size: 2em;
}
h2 {
font-size: 1.5em;
}
h3 {
font-size: 1.2em;
}
h4 {
font-size: 1.1em;
2022-02-04 23:29:26 +01:00
}
2022-06-13 12:54:40 +02:00
2022-02-04 23:29:26 +01:00
h2,
h3 {
font-weight: bold;
text-decoration: underline;
}
2022-06-13 12:54:40 +02:00
2022-02-04 23:29:26 +01:00
h2,
h3,
h4,
h5,
h6 {
color: var(--repl-color, #188a18);
}
2022-06-13 12:54:40 +02:00
2022-02-04 23:29:26 +01:00
#preamble {
font-style: italic;
font-size: 120%;
}
2022-06-13 12:54:40 +02:00
2022-02-09 18:59:36 +01:00
.paragraph {
line-height: 1.3;
}
2022-06-13 12:54:40 +02:00
tbody>tr:nth-of-type(odd),
#footer {
2022-02-09 18:59:36 +01:00
background-color: #1f2420;
}
2022-06-13 12:54:40 +02:00
2022-02-09 18:59:36 +01:00
tbody>tr:hover {
background-color: #364239;
}
2022-06-14 16:44:00 +02:00
pre {
background-color: #282c34;
border: 1px solid var(--repl-color-hint, #188a18);
2022-06-14 18:11:21 +02:00
padding: 1em;
2022-06-14 16:47:11 +02:00
color: #abb2bf;
2022-06-14 16:44:00 +02:00
}
2022-06-14 18:11:21 +02:00
pre.highlight {
padding: 1px;
}
2022-06-14 16:44:00 +02:00
code {
background-color: #282c34;
color: #abb2bf;
}
2022-07-30 18:12:40 +02:00
/* This _should_ have been included in the Asciidoc style but it isn't */
.underline { text-decoration:underline; }
.overline { text-decoration:overline; }
.line-through { text-decoration:line-through; }
:not(pre)>code.nobreak{ word-wrap:normal; }
:not(pre)>code.nowrap { white-space:nowrap; }
pre.nowrap, pre.nowrap pre {
white-space:pre;
word-wrap:normal;
}
2022-08-10 16:54:34 +02:00
/* A custom indicator that this code is in fact faulty */
.notCompiling {
display: block;
position: relative;
/*
.content {
position: absolute;
}*/
&::before {
content: "!";
color: white;
background-color: #a30e0e;
border-radius: 50%;
position: absolute;
top: 1em;
right: 1em;
display: inline-block;
width: 1.2em;
height: 1.2em;
text-align: center;
font-weight: bolder;
padding: 2px 2px 0px 2px;
}
}
2022-02-04 23:29:26 +01:00
}