Finish move from index to terminal
This commit is contained in:
155
styles/Terminal/ProjectModal.module.css
Normal file
155
styles/Terminal/ProjectModal.module.css
Normal file
@ -0,0 +1,155 @@
|
||||
.modal {
|
||||
z-index: 99;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
padding: 5%;
|
||||
background: rgba(0,0,0,0.5);
|
||||
backdrop-filter: blur(1px);
|
||||
--modal-gray: #0e0f0e;
|
||||
}
|
||||
|
||||
.modalContainer {
|
||||
background: var(--modal-gray, #0e0f0e);
|
||||
color: #ccc;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 20px;
|
||||
border-radius: 20px;
|
||||
overflow-y: auto;
|
||||
position: relative;
|
||||
clear: none;
|
||||
}
|
||||
|
||||
.modalText {
|
||||
max-width: 45em;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
|
||||
.modalClose {
|
||||
box-shadow: #000 2px 2px 2px;
|
||||
border: 1px solid #ccc;
|
||||
|
||||
background: var(--modal-gray, #0e0f0e);
|
||||
border-radius: 50%;
|
||||
width: 2em;
|
||||
height: 2em;
|
||||
font-family: sans-serif;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
/* Non-mobile positioning */
|
||||
@media all and (min-width: 1050px) {
|
||||
.modalClose {
|
||||
position: relative;
|
||||
float: right;
|
||||
margin-top: -3em;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
}
|
||||
/* Else */
|
||||
@media not all and (min-width: 1050px) {
|
||||
.modalClose {
|
||||
position: absolute;
|
||||
float: none;
|
||||
bottom: 1%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, 0);
|
||||
}
|
||||
}
|
||||
|
||||
.modalCloseAlign {
|
||||
margin: 0;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
display: block;
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Firefox */
|
||||
.modalContainer {
|
||||
scrollbar-width: auto;
|
||||
scrollbar-color: var(--repl-color, #188a18) var(--modal-gray, #0e0f0e);
|
||||
}
|
||||
|
||||
/* Chrome, Edge, and Safari */
|
||||
.modalContainer::-webkit-scrollbar {
|
||||
width: 16px;
|
||||
}
|
||||
|
||||
.modalContainer::-webkit-scrollbar-track {
|
||||
background: var(--modal-gray, #0e0f0e);
|
||||
border-bottom-right-radius: 20px;
|
||||
border-top-right-radius: 20px;
|
||||
}
|
||||
|
||||
.modalContainer::-webkit-scrollbar-thumb {
|
||||
background-color: var(--repl-color, #188a18);
|
||||
border-radius: 20px;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.pageSelector {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr max-content max-content max-content 1fr;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
.pageSelector:last-of-type {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.pageSelector select {
|
||||
background: var(--modal-gray); /* Transparent does not work for the dropdown */
|
||||
color: var(--repl-color-link);
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.pageSelector a:link, .pageSelector a:visited, .pageSelector a:hover, .pageSelector a:active {
|
||||
color: var(--repl-color-link);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.pageSelector a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.leftSelectSpace {
|
||||
justify-self: right;
|
||||
}
|
||||
|
||||
.rightSelectSpace {
|
||||
justify-self: left;
|
||||
}
|
||||
|
||||
|
||||
/* On mobile we only want to show the html select */
|
||||
@media all and (max-width: 500px) {
|
||||
.leftSelectSpace, .rightSelectSpace, .pageSelector span {
|
||||
display: none;
|
||||
}
|
||||
.pageSelector select {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
display: block;
|
||||
}
|
||||
.pageSelector {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.fakeLink {
|
||||
color: var(--repl-color-link);
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.fakeLink:hover {
|
||||
text-decoration: underline;
|
||||
}
|
18
styles/Terminal/REPL/REPLComplete.module.css
Normal file
18
styles/Terminal/REPL/REPLComplete.module.css
Normal file
@ -0,0 +1,18 @@
|
||||
.container {
|
||||
overflow-y: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-grow: 2;
|
||||
}
|
||||
|
||||
.container::-webkit-scrollbar {
|
||||
width:auto;
|
||||
}
|
||||
|
||||
.container::-webkit-scrollbar-track {
|
||||
background:rgb(0, 0, 0);
|
||||
}
|
||||
|
||||
.container::-webkit-scrollbar-thumb {
|
||||
background: var(--repl-color);
|
||||
}
|
36
styles/Terminal/REPL/REPLHistory.module.css
Normal file
36
styles/Terminal/REPL/REPLHistory.module.css
Normal file
@ -0,0 +1,36 @@
|
||||
.container {
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
flex-shrink: 2;
|
||||
font-size: 1.25rem;
|
||||
font-family: "CascadiaCode", monospace;
|
||||
}
|
||||
|
||||
.line {
|
||||
padding: 3px 0;
|
||||
white-space: pre-wrap;
|
||||
font-family: inherit;
|
||||
display: block;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.line a:link, .line a:visited, .line a:hover, .line a:active {
|
||||
color: var(--repl-color-link);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.line a::after {
|
||||
content: "⤤";
|
||||
color: var(--repl-color-link);
|
||||
font-size: 80%;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.line .cmd {
|
||||
cursor: pointer;
|
||||
text-decoration: underline dotted;
|
||||
color: var(--repl-color-link);
|
||||
}
|
||||
|
||||
.line .cmd::before {content: "'"}
|
||||
.line .cmd::after {content: "'"}
|
69
styles/Terminal/REPL/REPLInput.module.css
Normal file
69
styles/Terminal/REPL/REPLInput.module.css
Normal file
@ -0,0 +1,69 @@
|
||||
.wrapper > input, .wrapper > span {
|
||||
padding: .125rem 0;
|
||||
font-size: 1.25rem;
|
||||
font-family: "CascadiaCode", monospace;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: nowrap;
|
||||
color: var(--repl-color);
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
position: relative;
|
||||
flex-grow: 2;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.wrapperwrapper {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
flex-direction: row;
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
|
||||
.inputstart {
|
||||
padding: .125rem 0;
|
||||
font-size: 1.25rem;
|
||||
font-family: "CascadiaCode", monospace;
|
||||
}
|
||||
|
||||
.in {
|
||||
border: 0;
|
||||
background: transparent;
|
||||
width: 100%;
|
||||
appearance: none !important;
|
||||
caret-color: var(--repl-color);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.in::-moz-focus-outer, .in::-moz-focus-inner, .in:focus, .in:focus *, .in:-moz-focusring, .in:-moz-focusring * {
|
||||
border: none !important;
|
||||
outline: none !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
.completionWrapper {
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: min-content;
|
||||
}
|
||||
|
||||
.completionWrapper span {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.typed {
|
||||
opacity: 0;
|
||||
flex-shrink: 1;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.completion {
|
||||
color: var(--repl-color-hint);
|
||||
flex-grow: 1;
|
||||
}
|
40
styles/Terminal/Random.module.scss
Normal file
40
styles/Terminal/Random.module.scss
Normal file
@ -0,0 +1,40 @@
|
||||
.modalImageContainerSquare {
|
||||
width: 100%;
|
||||
height: 0;
|
||||
padding-bottom: 100%;
|
||||
display: block;
|
||||
position: relative;
|
||||
|
||||
img {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
border-radius: 5px
|
||||
}
|
||||
|
||||
.imgLoading {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.modalVideoContainer {
|
||||
width: 100%;
|
||||
height: 0;
|
||||
padding-bottom: 56.25%;
|
||||
display: block;
|
||||
position: relative;
|
||||
|
||||
iframe {
|
||||
position:absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
width:100%;
|
||||
height:100%;
|
||||
}
|
||||
}
|
89
styles/Terminal/Terminal.module.css
Normal file
89
styles/Terminal/Terminal.module.css
Normal file
@ -0,0 +1,89 @@
|
||||
.container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100vh;
|
||||
margin: 0;
|
||||
padding: 2px 10px 10px 10px;
|
||||
color: var(--repl-color);
|
||||
background: #000;
|
||||
}
|
||||
|
||||
.header {
|
||||
flex-shrink: 5;
|
||||
text-align: center;
|
||||
font-family: "Segoe UI", Roboto, Tahoma, Geneva, Verdana, sans-serif;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: nowrap;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.header * {
|
||||
margin: auto 0;
|
||||
}
|
||||
|
||||
.header a:active,
|
||||
.header a:visited,
|
||||
.header a {
|
||||
color: var(--repl-color);
|
||||
text-decoration: underline;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
.header a:hover {
|
||||
color: var(--repl-color-link);
|
||||
}
|
||||
|
||||
.header .divider {
|
||||
color: var(--repl-color);
|
||||
margin: 0 5px;
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
.header .spacer {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.iconLink {
|
||||
cursor: pointer;
|
||||
font-size: 1.6em;
|
||||
padding-top: 0.3em;
|
||||
}
|
||||
|
||||
.tooltip {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.tooltip .tooltiptext {
|
||||
visibility: hidden;
|
||||
width: 140px;
|
||||
background-color: #333;
|
||||
color: var(--repl-color);
|
||||
text-align: center;
|
||||
border-radius: 6px;
|
||||
padding: 5px 0;
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
top: 125%;
|
||||
left: 50%;
|
||||
margin-left: -70px;
|
||||
opacity: 0;
|
||||
transition: opacity 0.1s;
|
||||
}
|
||||
|
||||
.tooltip .tooltiptext::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
bottom: 100%;
|
||||
left: 50%;
|
||||
margin-left: -5px;
|
||||
border-width: 5px;
|
||||
border-style: solid;
|
||||
border-color: transparent transparent #333 transparent;
|
||||
}
|
||||
|
||||
.tooltip:hover .tooltiptext {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
}
|
442
styles/Terminal/asciidocBootSlate.css
Normal file
442
styles/Terminal/asciidocBootSlate.css
Normal file
@ -0,0 +1,442 @@
|
||||
/* MIT License
|
||||
|
||||
Copyright (c) [year] [fullname]
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE. */
|
||||
|
||||
|
||||
/* Source: https://raw.githubusercontent.com/darshandsoni/asciidoctor-skins/c98a8ab9b27571e5b63d75912a3c753cc72ed8e4/css/boot-slate.css */
|
||||
|
||||
|
||||
/* Based on Slate from Bootswatch (https://bootswatch.com/slate/) */
|
||||
|
||||
|
||||
/* document body (contains all content) */
|
||||
|
||||
body {
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
font-size: 14px;
|
||||
line-height: 1.42857143;
|
||||
color: #c8c8c8;
|
||||
background-color: #272b30;
|
||||
margin-left: 10%;
|
||||
margin-right: 10%;
|
||||
}
|
||||
|
||||
|
||||
/* document header (contains title etc) */
|
||||
|
||||
#header {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#header>h1 {
|
||||
border-bottom: 1px solid #ddddd8;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
|
||||
/* headings */
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
font-weight: 500;
|
||||
line-height: 1.1;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3 {
|
||||
margin-top: 20px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 4em;
|
||||
/* font-size: 36px; */
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
|
||||
/* plain paragraph text */
|
||||
|
||||
.paragraph {
|
||||
/* font-family: sans-serif; */
|
||||
margin: 0 0 10px;
|
||||
}
|
||||
|
||||
p {
|
||||
/* font-family: sans-serif; */
|
||||
margin: 0 0 10px;
|
||||
}
|
||||
|
||||
|
||||
/* blockquote text */
|
||||
|
||||
.quoteblock {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
padding: 10px 20px;
|
||||
margin: 0 0 20px;
|
||||
font-size: 17.5px;
|
||||
border-left: 5px solid #7a8288;
|
||||
}
|
||||
|
||||
blockquote p:last-child,
|
||||
blockquote ul:last-child,
|
||||
blockquote ol:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.blockquote-reverse,
|
||||
blockquote.pull-right {
|
||||
padding-right: 15px;
|
||||
padding-left: 0;
|
||||
border-right: 5px solid #7a8288;
|
||||
border-left: 0;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.blockquote-reverse footer:before,
|
||||
blockquote.pull-right footer:before,
|
||||
.blockquote-reverse small:before,
|
||||
blockquote.pull-right small:before,
|
||||
.blockquote-reverse .small:before,
|
||||
blockquote.pull-right .small:before {
|
||||
content: '';
|
||||
}
|
||||
|
||||
.blockquote-reverse footer:after,
|
||||
blockquote.pull-right footer:after,
|
||||
.blockquote-reverse small:after,
|
||||
blockquote.pull-right small:after,
|
||||
.blockquote-reverse .small:after,
|
||||
blockquote.pull-right .small:after {
|
||||
content: '\00A0 \2014';
|
||||
}
|
||||
|
||||
|
||||
/* blockquote attribution text */
|
||||
|
||||
.attribution,
|
||||
.cite,
|
||||
blockquote footer,
|
||||
blockquote small,
|
||||
blockquote .small {
|
||||
display: block;
|
||||
line-height: 1.42857143;
|
||||
color: #7a8288;
|
||||
}
|
||||
|
||||
.attribution:before,
|
||||
blockquote footer:before,
|
||||
blockquote small:before,
|
||||
blockquote .small:before {
|
||||
content: '\2014 \00A0';
|
||||
}
|
||||
|
||||
|
||||
/* unordered list */
|
||||
|
||||
ul,
|
||||
ol {
|
||||
margin-top: 0;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
ul ul,
|
||||
ol ul,
|
||||
ul ol,
|
||||
ol ol {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
|
||||
/* links */
|
||||
|
||||
a {
|
||||
color: #ffffff;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover,
|
||||
a:focus {
|
||||
color: #ffffff;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
a:focus {
|
||||
outline: 5px auto -webkit-focus-ring-color;
|
||||
outline-offset: -2px;
|
||||
}
|
||||
|
||||
|
||||
/* horizontal rules */
|
||||
|
||||
hr {
|
||||
margin-top: 20px;
|
||||
margin-bottom: 20px;
|
||||
border: 0;
|
||||
border-top: 1px solid #1c1e22;
|
||||
}
|
||||
|
||||
|
||||
/* table */
|
||||
|
||||
table {
|
||||
background-color: transparent;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
margin-bottom: 21px;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
table col[class*="col-"] {
|
||||
position: static;
|
||||
float: none;
|
||||
display: table-column;
|
||||
}
|
||||
|
||||
table td[class*="col-"],
|
||||
table th[class*="col-"] {
|
||||
position: static;
|
||||
float: none;
|
||||
display: table-cell;
|
||||
}
|
||||
|
||||
|
||||
/* table caption */
|
||||
|
||||
caption {
|
||||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
color: #7a8288;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
|
||||
/* table header row */
|
||||
|
||||
thead {
|
||||
border-bottom: 2px solid #1c1e22;
|
||||
}
|
||||
|
||||
|
||||
/* table header cell */
|
||||
|
||||
th {
|
||||
text-align: left;
|
||||
padding-left: 8px;
|
||||
}
|
||||
|
||||
|
||||
/* table footer */
|
||||
|
||||
tfoot {
|
||||
color: #807F81;
|
||||
border-top: 1px solid #1c1e22;
|
||||
}
|
||||
|
||||
|
||||
/* table cell */
|
||||
|
||||
td {
|
||||
border-top: 1px solid #1c1e22;
|
||||
}
|
||||
|
||||
td p {
|
||||
margin: auto;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
|
||||
/* table body */
|
||||
|
||||
tbody>tr:nth-of-type(odd) {
|
||||
background-color: #353a41;
|
||||
}
|
||||
|
||||
tbody>tr:hover {
|
||||
background-color: #49515a;
|
||||
}
|
||||
|
||||
|
||||
/* inline code */
|
||||
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp {
|
||||
font-family: monospace, monospace;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
code {
|
||||
padding: 2px 4px;
|
||||
font-size: 90%;
|
||||
color: #3a3f44;
|
||||
background-color: #f5f5f5;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
kbd {
|
||||
padding: 2px 4px;
|
||||
font-size: 90%;
|
||||
color: #ffffff;
|
||||
background-color: #333333;
|
||||
border-radius: 3px;
|
||||
-webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25);
|
||||
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
|
||||
kbd kbd {
|
||||
padding: 0;
|
||||
font-size: 100%;
|
||||
font-weight: bold;
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
pre {
|
||||
display: block;
|
||||
padding: 9.5px;
|
||||
margin: 0 0 10px;
|
||||
font-size: 13px;
|
||||
line-height: 1.42857143;
|
||||
word-break: break-all;
|
||||
word-wrap: break-word;
|
||||
color: #3a3f44;
|
||||
background-color: #f5f5f5;
|
||||
border: 1px solid #cccccc;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
pre code {
|
||||
padding: 0;
|
||||
font-size: inherit;
|
||||
color: inherit;
|
||||
white-space: pre-wrap;
|
||||
background-color: transparent;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
|
||||
/* image */
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
|
||||
/* footer section */
|
||||
|
||||
#footer {
|
||||
margin-top: 22px;
|
||||
padding: 14px 16px;
|
||||
background-color: #3a3f44;
|
||||
}
|
||||
|
||||
|
||||
/* responsiveness fixes */
|
||||
|
||||
video {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
|
||||
/* table of Contents sidebar */
|
||||
|
||||
#toctitle {
|
||||
color: #272b30;
|
||||
}
|
||||
|
||||
#toc ul {
|
||||
display: inline;
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#toc li {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#toc a {
|
||||
background-color: #3a3f44;
|
||||
float: left;
|
||||
text-align: center;
|
||||
padding: 14px 16px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#toc li a:hover {
|
||||
background-color: #272b2e;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#toc:after {
|
||||
content: " ";
|
||||
visibility: hidden;
|
||||
display: block;
|
||||
height: 0;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
@media all and (max-width: 600px) {
|
||||
table {
|
||||
width: 55vw!important;
|
||||
font-size: 3vw;
|
||||
}
|
||||
}
|
117
styles/Terminal/customAsciidoc.module.scss
Normal file
117
styles/Terminal/customAsciidoc.module.scss
Normal file
@ -0,0 +1,117 @@
|
||||
.asciidoc {
|
||||
font-family: sans-serif;
|
||||
|
||||
@import "./asciidocBootSlate";
|
||||
@import "~highlight.js/scss/atom-one-dark";
|
||||
|
||||
h1 {
|
||||
color: var(--repl-color-link, #2ac02a);
|
||||
font-size: 2em;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.5em;
|
||||
}
|
||||
h3 {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
h4 {
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
h2,
|
||||
h3 {
|
||||
font-weight: bold;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
color: var(--repl-color, #188a18);
|
||||
}
|
||||
|
||||
#preamble {
|
||||
font-style: italic;
|
||||
font-size: 120%;
|
||||
}
|
||||
|
||||
.paragraph {
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
tbody>tr:nth-of-type(odd),
|
||||
#footer {
|
||||
background-color: #1f2420;
|
||||
}
|
||||
|
||||
tbody>tr:hover {
|
||||
background-color: #364239;
|
||||
}
|
||||
|
||||
pre {
|
||||
background-color: #282c34;
|
||||
border: 1px solid var(--repl-color-hint, #188a18);
|
||||
padding: 1em;
|
||||
color: #abb2bf;
|
||||
}
|
||||
|
||||
pre.highlight {
|
||||
padding: 1px;
|
||||
}
|
||||
|
||||
code {
|
||||
background-color: #282c34;
|
||||
color: #abb2bf;
|
||||
}
|
||||
|
||||
/* 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;
|
||||
}
|
||||
|
||||
/* A custom indicator that this code is in fact faulty */
|
||||
.notCompiling code {
|
||||
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.3em;
|
||||
height: 1.3em;
|
||||
text-align: center;
|
||||
font-weight: bolder;
|
||||
padding: 1px 1px 1px 1px;
|
||||
font-family: sans-serif;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
&:hover::after {
|
||||
content: "Code is faulty!";
|
||||
font-weight: bold;
|
||||
color: #a30e0e;
|
||||
position: absolute;
|
||||
right: 1em;
|
||||
bottom: 1em;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user