aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/css
diff options
context:
space:
mode:
Diffstat (limited to 'src/css')
-rw-r--r--src/css/dumbymap.css2
-rw-r--r--src/css/index.css50
2 files changed, 32 insertions, 20 deletions
diff --git a/src/css/dumbymap.css b/src/css/dumbymap.css
index ba074a2..1dc7a09 100644
--- a/src/css/dumbymap.css
+++ b/src/css/dumbymap.css
@@ -106,7 +106,7 @@
106} 106}
107 107
108.DumbyMap[data-layout]:not([data-layout=none]) { 108.DumbyMap[data-layout]:not([data-layout=none]) {
109 margin: 0; 109 margin: 0 auto;
110 110
111 height: 100vh; 111 height: 100vh;
112 width: 100%; 112 width: 100%;
diff --git a/src/css/index.css b/src/css/index.css
index 9e75e93..17a8dd1 100644
--- a/src/css/index.css
+++ b/src/css/index.css
@@ -4,38 +4,50 @@
4} 4}
5 5
6body { 6body {
7 display: flex;
8 justify-items: stretch;
9 width: 100%; 7 width: 100%;
10} 8 height: 100vh;
9
10 &[data-layout=editing] {
11 display: flex;
12 align-items: stretch;
13 gap: 0.5em;
14
15 padding: 0.5em;
16
17 .DumbyMap {
18 order: 2;
19 flex: 1 0 calc(50% - 0.5em);
20 height: 100%;
21 overflow-y: scroll;
22 border: var(--content-border);
23 border-radius: var(--content-border-radius);
24 }
25 .editor {
26 display: block;
11 27
12.DumbyMap { 28 order: 1;
13 order: 2; 29 flex: 1 0 50%;
14 flex: 0 0 49%; 30 max-width: calc(50% - 0.5em);
15 height: calc(100vh - 15px); 31 height: 100%;
16 margin: 10px; 32 }
17 overflow-y: scroll; 33 }
18 border: var(--content-border);
19 border-radius: var(--content-border-radius);
20} 34}
21 35
22.editor { 36.editor {
23 order: 1; 37 display: none;
24 flex: 0 0 48%;
25 max-width: 50vw;
26 height: calc(100vh - 15px);
27 margin: 10px;
28} 38}
29 39
30.EasyMDEContainer { 40.EasyMDEContainer {
31 display: flex; 41 display: flex;
42 align-items: stretch;
43 gap: 0.5em;
44 height: 100%;
32 flex-direction: column; 45 flex-direction: column;
33 height: calc(100vh - 20px);
34 box-sizing: border-box; 46 box-sizing: border-box;
35 47
36 .CodeMirror { 48 .CodeMirror {
37 order: 1; 49 order: 1;
38 flex-grow: 1; 50 flex: 1 0 auto;
39 border: var(--content-border); 51 border: var(--content-border);
40 border-radius: var(--content-border-radius); 52 border-radius: var(--content-border-radius);
41 padding-inline: 0; 53 padding-inline: 0;
@@ -53,7 +65,7 @@ body {
53 65
54 .editor-toolbar { 66 .editor-toolbar {
55 order: 2; 67 order: 2;
56 margin-top: 0.5rem; 68 flex: 0 0 auto;
57 border-left: 1px solid #ced4da; 69 border-left: 1px solid #ced4da;
58 border-right: 1px solid #ced4da; 70 border-right: 1px solid #ced4da;
59 border-bottom: 1px solid #ced4da; 71 border-bottom: 1px solid #ced4da;