diff options
Diffstat (limited to 'src/css/index.css')
-rw-r--r-- | src/css/index.css | 50 |
1 files changed, 32 insertions, 18 deletions
diff --git a/src/css/index.css b/src/css/index.css index c754600..3b8a51f 100644 --- a/src/css/index.css +++ b/src/css/index.css | |||
@@ -3,11 +3,15 @@ | |||
3 | --content-border-radius: 5px; | 3 | --content-border-radius: 5px; |
4 | } | 4 | } |
5 | 5 | ||
6 | .editor { | ||
7 | display: none; | ||
8 | } | ||
9 | |||
6 | body { | 10 | body { |
7 | width: 100%; | 11 | width: 100%; |
8 | height: 100vh; | 12 | height: 100vh; |
9 | 13 | ||
10 | &[data-layout=editing] { | 14 | &[data-layout="editing"] { |
11 | display: flex; | 15 | display: flex; |
12 | align-items: stretch; | 16 | align-items: stretch; |
13 | gap: 0.5em; | 17 | gap: 0.5em; |
@@ -17,37 +21,38 @@ body { | |||
17 | .DumbyMap { | 21 | .DumbyMap { |
18 | order: 1; | 22 | order: 1; |
19 | flex: 1 0 calc(50% - 0.5em); | 23 | flex: 1 0 calc(50% - 0.5em); |
24 | |||
20 | height: 100%; | 25 | height: 100%; |
21 | overflow-y: scroll; | 26 | overflow-y: scroll; |
27 | |||
22 | border: var(--content-border); | 28 | border: var(--content-border); |
23 | border-radius: var(--content-border-radius); | 29 | border-radius: var(--content-border-radius); |
24 | } | 30 | } |
31 | |||
25 | .editor { | 32 | .editor { |
26 | display: block; | 33 | display: block; |
27 | 34 | ||
28 | order: 2; | 35 | order: 2; |
29 | flex: 1 0 50%; | 36 | flex: 1 0 50%; |
30 | max-width: calc(50% - 0.5em); | 37 | max-width: calc(50% - 0.5em); |
38 | |||
31 | height: 100%; | 39 | height: 100%; |
32 | } | 40 | } |
33 | } | 41 | } |
34 | } | 42 | } |
35 | 43 | ||
36 | .editor { | ||
37 | display: none; | ||
38 | } | ||
39 | |||
40 | .EasyMDEContainer { | 44 | .EasyMDEContainer { |
41 | display: flex; | 45 | display: flex; |
46 | box-sizing: border-box; | ||
47 | height: 100%; | ||
42 | align-items: stretch; | 48 | align-items: stretch; |
43 | gap: 0.5em; | 49 | gap: 0.5em; |
44 | height: 100%; | ||
45 | flex-direction: column; | 50 | flex-direction: column; |
46 | box-sizing: border-box; | ||
47 | 51 | ||
48 | .CodeMirror { | 52 | .CodeMirror { |
49 | order: 1; | 53 | order: 1; |
50 | flex: 1 0 0; | 54 | flex: 1 0 0; |
55 | |||
51 | border: var(--content-border); | 56 | border: var(--content-border); |
52 | border-radius: var(--content-border-radius); | 57 | border-radius: var(--content-border-radius); |
53 | padding-inline: 0; | 58 | padding-inline: 0; |
@@ -58,6 +63,7 @@ body { | |||
58 | span { | 63 | span { |
59 | white-space: pre; | 64 | white-space: pre; |
60 | } | 65 | } |
66 | |||
61 | .invalid-input { | 67 | .invalid-input { |
62 | text-decoration: red wavy underline 1px; | 68 | text-decoration: red wavy underline 1px; |
63 | } | 69 | } |
@@ -79,7 +85,7 @@ body { | |||
79 | /* FIXME For those empty line (no child with cm-comment) */ | 85 | /* FIXME For those empty line (no child with cm-comment) */ |
80 | .inside-code-block, | 86 | .inside-code-block, |
81 | .CodeMirror-line:has(.cm-formatting-code-block) { | 87 | .CodeMirror-line:has(.cm-formatting-code-block) { |
82 | background: rgba(0,0,0,.05) !important; | 88 | background: rgb(0 0 0 / 5%) !important; |
83 | 89 | ||
84 | .cm-comment { | 90 | .cm-comment { |
85 | background: none !important; | 91 | background: none !important; |
@@ -88,24 +94,27 @@ body { | |||
88 | 94 | ||
89 | .container__suggestions { | 95 | .container__suggestions { |
90 | display: none; | 96 | display: none; |
91 | position: absolute; | ||
92 | width: fit-content; | 97 | width: fit-content; |
93 | min-width: 10rem; | 98 | |
94 | max-height: 40vh; | 99 | position: absolute; |
95 | overflow-y: scroll; | 100 | z-index: 100; |
101 | |||
96 | border: 2px solid lightgray; | 102 | border: 2px solid lightgray; |
97 | border-radius: 0.5rem; | 103 | border-radius: 0.5rem; |
98 | z-index: 100; | ||
99 | 104 | ||
100 | background: #fff; | 105 | background: white; |
106 | min-width: 10rem; | ||
107 | max-height: 40vh; | ||
108 | overflow-y: scroll; | ||
101 | } | 109 | } |
110 | |||
102 | .container__suggestion { | 111 | .container__suggestion { |
103 | cursor: pointer; | ||
104 | display: flex; | 112 | display: flex; |
105 | justify-content: space-between; | ||
106 | overflow: hidden; | 113 | overflow: hidden; |
107 | |||
108 | height: fit-content; | 114 | height: fit-content; |
115 | |||
116 | cursor: pointer; | ||
117 | justify-content: space-between; | ||
109 | min-height: 2rem; | 118 | min-height: 2rem; |
110 | white-space: nowrap; | 119 | white-space: nowrap; |
111 | align-items: center; | 120 | align-items: center; |
@@ -113,23 +122,28 @@ body { | |||
113 | &:not(:first-child) { | 122 | &:not(:first-child) { |
114 | border-top: 1px solid rgb(203 213 225); | 123 | border-top: 1px solid rgb(203 213 225); |
115 | } | 124 | } |
125 | |||
116 | &.focus { | 126 | &.focus { |
117 | background: rgb(226 232 240); | 127 | background: rgb(226 232 240); |
118 | } | 128 | } |
119 | 129 | ||
120 | * { | 130 | * { |
121 | flex-shrink: 0; | 131 | flex-shrink: 0; |
132 | |||
122 | display: inline-block; | 133 | display: inline-block; |
123 | overflow: hidden; | 134 | overflow: hidden; |
124 | padding-inline: 1em; | 135 | padding-inline: 1em; |
125 | } | 136 | } |
137 | |||
126 | .info { | 138 | .info { |
127 | color: #4682B4; | 139 | color: steelblue; |
128 | font-weight: bold; | 140 | font-weight: bold; |
129 | } | 141 | } |
142 | |||
130 | .truncate { | 143 | .truncate { |
131 | flex-shrink: 1; | 144 | flex-shrink: 1; |
132 | text-overflow: ellipsis; | 145 | text-overflow: ellipsis; |
146 | |||
133 | ::before { | 147 | ::before { |
134 | width: 2rem | 148 | width: 2rem |
135 | } | 149 | } |