aboutsummaryrefslogtreecommitdiff
path: root/static/css/pages/lesson.css
diff options
context:
space:
mode:
authorJean-Nicolas Veigel <art.jnveigel@gmail.com>2024-03-17 19:00:27 +0100
committerLouis Pilfold <louis@lpil.uk>2024-03-26 10:31:25 +0000
commitc8472fcd04eba917e954c691aa1a3f56d9edf508 (patch)
tree352611031d4505de490b45586bb55d0b9c985966 /static/css/pages/lesson.css
parent68b72402d90414c84a7db38c25b916b3080a4043 (diff)
downloadtour-c8472fcd04eba917e954c691aa1a3f56d9edf508.tar.gz
tour-c8472fcd04eba917e954c691aa1a3f56d9edf508.zip
chore: seperate common page styles from lesson page styles
Diffstat (limited to 'static/css/pages/lesson.css')
-rw-r--r--static/css/pages/lesson.css95
1 files changed, 95 insertions, 0 deletions
diff --git a/static/css/pages/lesson.css b/static/css/pages/lesson.css
index e69de29..492c1fe 100644
--- a/static/css/pages/lesson.css
+++ b/static/css/pages/lesson.css
@@ -0,0 +1,95 @@
+#left,
+#output,
+#editor {
+ min-height: 200px;
+ overflow-y: auto;
+ border-bottom: 2px solid var(--color-divider);
+ margin: 0;
+ overflow-wrap: break-word;
+}
+
+#left> :first-child {
+ margin-top: 0;
+}
+
+#editor {
+ position: relative;
+}
+
+@media (min-width: 600px) {
+ #playground {
+ position: fixed;
+ top: var(--navbar-height);
+ bottom: 0;
+ left: 0;
+ right: 0;
+ padding-top: 0;
+ }
+
+ #left,
+ #right {
+ width: 50vw;
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ }
+
+ #left {
+ border-right: 2px solid var(--color-divider);
+ }
+
+ #right {
+ right: 0;
+ }
+
+ #right> :first-child {
+ height: 62%;
+ }
+
+ #right> :last-child {
+ height: 38%;
+ }
+}
+
+#left,
+#output>*,
+#editor .codeflask__flatten {
+ padding: var(--gap);
+}
+
+#output>* {
+ margin: 0;
+ white-space: pre-wrap;
+}
+
+.error,
+.warning {
+ border-width: var(--gap);
+ border-style: solid;
+ border-top: 0;
+ border-bottom: 0;
+}
+
+.error {
+ border-color: var(--brand-error);
+}
+
+.warning {
+ border-color: var(--brand-warning);
+}
+
+.prev-next {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ padding: 0 var(--gap);
+ gap: 0.5em;
+}
+
+.prev-next span {
+ opacity: 0.5;
+}
+
+.mb-0 {
+ margin-bottom: 0;
+} \ No newline at end of file