From a5932e39c9538db5490c9aa21054fce114af4d27 Mon Sep 17 00:00:00 2001 From: Jan-Erik Rediger Date: Sat, 25 May 2024 18:28:40 +0200 Subject: [PATCH] Add style files --- frontend/style.css | 85 +++++++++++++++++++++++++++++++++++++++++++ frontend/writ.min.css | 7 ++++ 2 files changed, 92 insertions(+) create mode 100644 frontend/style.css create mode 100644 frontend/writ.min.css diff --git a/frontend/style.css b/frontend/style.css new file mode 100644 index 0000000..2522d1f --- /dev/null +++ b/frontend/style.css @@ -0,0 +1,85 @@ +body { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; + margin-top: 0; +} + +h1 { + display: inline-block; + vertical-align: sub; + margin: 0 20px 10px 0; +} + +pre { + background-color: transparent; + border: none; +} + +body > footer { + font-family: sans-serif; + max-width: unset; + width: 100%; + color: grey; + font-weight: 200; + margin: 0 0 40px; +} + +a, a:visited { + border-bottom: 1px solid rgba(0, 139, 245, 0.2); + color: #008bf5; +} + +codapi-snippet { + display: block; + margin: 10px 0; +} +codapi-snippet button { + padding: 0; + border: none; + background: none; + line-height: 1.35; + color: #008bf5; + font-size: 16px; + cursor: pointer; +} +codapi-toolbar button::after { + content: " ▶"; +} +codapi-toolbar a, +codapi-toolbar a:visited { + color: #008bf5; + border-bottom: 1px solid rgba(0, 139, 245, 0.2); + text-decoration: none; + font-size: 16px; +} + +.editor { + border-radius: 6px; + box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); + font-family: 'Source Code Pro', monospace; + font-size: 14px; + font-weight: 400; + min-height: 340px; + max-height: 500px; + letter-spacing: normal; + line-height: 20px; + padding: 10px; + resize: none !important; + tab-size: 4; +} + +codapi-output { + border-radius: 6px; + box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); + font-family: 'Source Code Pro', monospace; + font-size: 14px; + font-weight: 400; + letter-spacing: normal; + line-height: 20px; + padding: 10px; + resize: none !important; + tab-size: 4; +} + +codapi-output pre { + margin: 0; +} diff --git a/frontend/writ.min.css b/frontend/writ.min.css new file mode 100644 index 0000000..4fca15d --- /dev/null +++ b/frontend/writ.min.css @@ -0,0 +1,7 @@ +/*! + * Writ v1.0.4 + * + * Copyright © 2015, Curtis McEnroe + * + * https://cmcenroe.me/writ/LICENSE (ISC) + */dd,hr,ol ol,ol ul,ul ol,ul ul{margin:0}pre,table{overflow-x:auto}a,ins{text-decoration:none}html{font-family:Palatino,Georgia,Lucida Bright,Book Antiqua,serif;font-size:16px;line-height:1.5rem}code,kbd,pre,samp{font-family:Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:.833rem;color:#111}kbd{font-weight:700}h1,h2,h3,h4,h5,h6,th{font-weight:400}h1{font-size:2.488em}h2{font-size:2.074em}h3{font-size:1.728em}h4{font-size:1.44em}h5{font-size:1.2em}h6{font-size:1em}small{font-size:.833em}h1,h2,h3{line-height:3rem}blockquote,dl,h1,h2,h3,h4,h5,h6,ol,p,pre,table,ul{margin:1.5rem 0 0}pre,table{margin-bottom:-1px}hr{border:none;padding:1.5rem 0 0}table{line-height:calc(1.5rem - 1px);width:100%;border-collapse:collapse}pre{margin-top:calc(1.5rem - 1px)}body{color:#222;margin:1.5rem 1ch}a,a code,header nav a:visited{color:#00e}a:visited,a:visited code{color:#60b}mark{color:inherit;background-color:#fe0}code,pre,samp,tfoot,thead{background-color:rgba(0,0,0,.05)}blockquote,ins,main aside{border:rgba(0,0,0,.05) solid}blockquote,main aside{border-width:0 0 0 .5ch}code,pre,samp{border:rgba(0,0,0,.1) solid}td,th{border:solid #dbdbdb}body>header{text-align:center}body>footer,main{display:block;max-width:78ch;margin:auto}main aside,main figure{float:right;margin:1.5rem 0 0 1ch}main aside{max-width:26ch;padding:0 0 0 .5ch}blockquote{margin-right:3ch;margin-left:1.5ch;padding:0 0 0 1ch}pre{border-width:1px;border-radius:2px;padding:0 .5ch}pre code{border:none;padding:0;background-color:transparent;white-space:inherit}code,ins,samp,td,th{border-width:1px}img{max-width:100%}dd,ol,ul{padding:0 0 0 3ch}ul>li{list-style-type:disc}li ul>li{list-style-type:circle}li li ul>li{list-style-type:square}ol>li{list-style-type:decimal}li ol>li{list-style-type:lower-roman}li li ol>li{list-style-type:lower-alpha}nav ul{padding:0;list-style-type:none}nav ul li{display:inline;padding-left:1ch;white-space:nowrap}nav ul li:first-child{padding-left:0}ins,mark{padding:1px}td,th{padding:0 .5ch}sub,sup{font-size:.75em;line-height:1em}code,samp{border-radius:2px;padding:.1em .2em;white-space:nowrap} \ No newline at end of file