diff options
Diffstat (limited to 'src/css/index.css')
-rw-r--r-- | src/css/index.css | 81 |
1 files changed, 60 insertions, 21 deletions
diff --git a/src/css/index.css b/src/css/index.css index adc1cfe..3764dac 100644 --- a/src/css/index.css +++ b/src/css/index.css | |||
@@ -1,34 +1,70 @@ | |||
1 | :root { | ||
2 | --content-border: solid lightgray 2px; | ||
3 | --content-border-radius: 5px; | ||
4 | } | ||
5 | |||
1 | body { | 6 | body { |
2 | display: flex; | 7 | display: flex; |
3 | justify-items: stretch; | 8 | justify-items: stretch; |
9 | width: 100%; | ||
4 | } | 10 | } |
5 | 11 | ||
6 | .result-html { | 12 | .result-html { |
7 | flex: 1; | 13 | flex: 0 0 50%; |
8 | height: calc(100vh - 20px); | 14 | border: var(--content-border); |
9 | border: solid lightgray 2px; | 15 | border-radius: var(--content-border-radius); |
10 | border-radius: 5px; | ||
11 | margin: 10px; | 16 | margin: 10px; |
12 | } | 17 | } |
13 | 18 | ||
14 | .editor { | 19 | .editor { |
15 | flex: 1; | 20 | flex: 0 0 50%; |
16 | max-width: 50vw; | 21 | max-width: 50vw; |
22 | height: calc(100vh - 15px); | ||
17 | margin: 10px; | 23 | margin: 10px; |
18 | } | 24 | } |
19 | 25 | ||
20 | .TinyMDE { | 26 | .EasyMDEContainer { |
21 | height: calc(100vh - 55px); | 27 | display: flex; |
22 | padding: 16px; | 28 | flex-direction: column; |
23 | overflow-y: scroll; | 29 | height: calc(100vh - 20px); |
24 | border: 2px solid lightgray; | 30 | box-sizing: border-box; |
25 | border-radius: 5px; | 31 | |
32 | .CodeMirror { | ||
33 | order: 1; | ||
34 | flex-grow: 1; | ||
35 | border: var(--content-border); | ||
36 | border-radius: var(--content-border-radius); | ||
37 | padding-inline: 0; | ||
38 | |||
39 | span { | ||
40 | white-space: pre; | ||
41 | } | ||
42 | .invalid-input { | ||
43 | text-decoration: red wavy underline 1px; | ||
44 | } | ||
45 | } | ||
46 | |||
47 | .editor-toolbar { | ||
48 | order: 2; | ||
49 | margin-top: 0.5rem; | ||
50 | border-left: 1px solid #ced4da; | ||
51 | border-right: 1px solid #ced4da; | ||
52 | border-bottom: 1px solid #ced4da; | ||
53 | border-bottom-left-radius: 4px; | ||
54 | border-bottom-right-radius: 4px; | ||
55 | } | ||
26 | 56 | ||
27 | span { | 57 | .editor-statusbar { |
28 | white-space: pre; | 58 | order: 3; |
29 | } | 59 | } |
30 | .invalid-input { | 60 | } |
31 | text-decoration: red wavy underline 1px; | 61 | |
62 | /* FIXME For those empty line (no child with cm-comment) */ | ||
63 | .CodeMirror-line:has(.cm-comment) { | ||
64 | background: rgba(0,0,0,.05) !important; | ||
65 | |||
66 | .cm-comment { | ||
67 | background: none !important; | ||
32 | } | 68 | } |
33 | } | 69 | } |
34 | 70 | ||
@@ -41,6 +77,7 @@ body { | |||
41 | overflow-y: scroll; | 77 | overflow-y: scroll; |
42 | border: 2px solid lightgray; | 78 | border: 2px solid lightgray; |
43 | border-radius: 0.5rem; | 79 | border-radius: 0.5rem; |
80 | z-index: 100; | ||
44 | 81 | ||
45 | background: #fff; | 82 | background: #fff; |
46 | } | 83 | } |
@@ -55,6 +92,13 @@ body { | |||
55 | white-space: nowrap; | 92 | white-space: nowrap; |
56 | align-items: center; | 93 | align-items: center; |
57 | 94 | ||
95 | &:not(:first-child) { | ||
96 | border-top: 1px solid rgb(203 213 225); | ||
97 | } | ||
98 | &.focus { | ||
99 | background: rgb(226 232 240); | ||
100 | } | ||
101 | |||
58 | * { | 102 | * { |
59 | flex-shrink: 0; | 103 | flex-shrink: 0; |
60 | display: inline-block; | 104 | display: inline-block; |
@@ -66,15 +110,10 @@ body { | |||
66 | font-weight: bold; | 110 | font-weight: bold; |
67 | } | 111 | } |
68 | .truncate { | 112 | .truncate { |
113 | flex-shrink: 1; | ||
69 | text-overflow: ellipsis; | 114 | text-overflow: ellipsis; |
70 | ::before { | 115 | ::before { |
71 | width: 2rem | 116 | width: 2rem |
72 | } | 117 | } |
73 | } | 118 | } |
74 | } | 119 | } |
75 | .container__suggestion:not(:first-child) { | ||
76 | border-top: 1px solid rgb(203 213 225); | ||
77 | } | ||
78 | .container__suggestion.focus { | ||
79 | background: rgb(226 232 240); | ||
80 | } | ||