|
1 | | -div > p:first-child { |
2 | | - margin-top: 0; |
3 | | - } |
4 | | -div > p:last-child { |
5 | | - margin-bottom: 0; |
| 1 | +body { |
| 2 | + bottom: 0; |
| 3 | + display: flex; |
| 4 | + left: 0; |
| 5 | + position: absolute; |
| 6 | + right: 0; |
| 7 | + top: 0; |
| 8 | + flex-direction: column; |
6 | 9 | } |
7 | | -code { |
8 | | - background-color: #eee; |
9 | | - font: 11px monospace; |
10 | | - padding: 2px 4px; |
11 | | -} |
12 | 10 | #diff { |
13 | 11 | border: 0; |
14 | 12 | border-top: 1px solid #eee; |
| 13 | + flex-grow: 1; |
15 | 14 | margin: 0; |
16 | | - padding: 0.5em 0 0 0; |
| 15 | + padding: 0; |
17 | 16 | white-space: nowrap; |
18 | 17 | } |
19 | | -#diff .pane { |
| 18 | +#diff .tools > * { |
| 19 | + margin-bottom: 0.5em; |
| 20 | + } |
| 21 | +#diff .tools .fa { |
| 22 | + font-size: large; |
| 23 | + } |
| 24 | +#diff .ruleActions { |
20 | 25 | border: 0; |
21 | 26 | box-sizing: border-box; |
22 | 27 | display: inline-block; |
23 | | - font: 90%/180% "Noto Mono",monospace; |
24 | | - margin: 0; |
25 | 28 | padding: 0; |
26 | | - position: relative; |
27 | | - white-space: normal; |
| 29 | + text-align: center; |
| 30 | + vertical-align: top; |
28 | 31 | width: 50%; |
29 | 32 | } |
30 | | -#diff .pane .rulesContainer { |
31 | | - position: relative; |
32 | | - min-height: 150px; /* too short is confusing */ |
| 33 | +#diff .ruleActions h3 { |
| 34 | + font-weight: normal; |
| 35 | + margin: 0.5em 0; |
33 | 36 | } |
34 | | -#diff .ruleActions { |
35 | | - padding: 0 0 1em 0; |
| 37 | +#diff .ruleFilter { |
36 | 38 | text-align: center; |
37 | 39 | } |
38 | 40 | body[dir="ltr"] #revertButton:after { |
@@ -73,97 +75,33 @@ body[dir="rtl"] #commitButton:before { |
73 | 75 | } |
74 | 76 | #revertButton, |
75 | 77 | #commitButton, |
76 | | -#diff.edit #editEnterButton { |
| 78 | +#diff.editing #exportButton, |
| 79 | +#diff.editing #importButton, |
| 80 | +#editSaveButton { |
77 | 81 | opacity: 0.25; |
78 | 82 | pointer-events: none; |
79 | 83 | } |
80 | | -#editStopButton, |
81 | | -#editCancelButton { |
82 | | - display: none; |
83 | | - } |
84 | | -#diff.dirty:not(.edit) #revertButton, |
85 | | -#diff.dirty:not(.edit) #commitButton { |
| 84 | +#diff.dirty:not(.editing) #revertButton, |
| 85 | +#diff.dirty:not(.editing) #commitButton, |
| 86 | +#diff.editing #editSaveButton { |
86 | 87 | opacity: 1; |
87 | 88 | pointer-events: auto; |
88 | 89 | } |
89 | | -#diff.edit #editStopButton, |
90 | | -#diff.edit #editCancelButton { |
91 | | - display: initial; |
92 | | - } |
93 | | -#diff.edit #importButton, |
94 | | -#diff.edit #exportButton { |
95 | | - display: none; |
| 90 | + |
| 91 | +.codeMirrorContainer { |
| 92 | + height: 60vh; |
96 | 93 | } |
97 | | -#diff ul { |
98 | | - border: 0; |
99 | | - border-top: 1px solid #eee; |
100 | | - list-style-type: none; |
101 | | - margin: 0; |
102 | | - overflow: hidden; |
103 | | - padding: 1em 0 0 0; |
104 | | - } |
105 | | -#diff.edit .right ul { |
106 | | - visibility: hidden; |
| 94 | +.CodeMirror-merge, .CodeMirror-merge-pane, .CodeMirror-merge .CodeMirror { |
| 95 | + box-sizing: border-box; |
| 96 | + height: 100%; |
107 | 97 | } |
108 | | -#diff .left { |
109 | | - border-right: 1px solid #eee; |
| 98 | +#diff.editing .CodeMirror-merge-copy, |
| 99 | +#diff.editing .CodeMirror-merge-copy-reverse { |
| 100 | + display: none; |
110 | 101 | } |
111 | | -#diff .right > ul { |
| 102 | +#diff.editing .CodeMirror-merge-left .CodeMirror { |
112 | 103 | color: #888; |
113 | 104 | } |
114 | | -#diff li { |
115 | | - background-color: #ddd; |
116 | | - direction: ltr; |
117 | | - padding: 0; |
118 | | - text-align: left; |
119 | | - white-space: nowrap; |
120 | | - padding-left: 3px; /* a bit of padding; must also be in textarea */ |
121 | | - } |
122 | | -#diff li:nth-child(even) { |
123 | | - background-color: #eee; |
124 | | - } |
125 | | -#diff .right li { |
126 | | - opacity: 0.5; |
127 | | - } |
128 | | -#diff .right li:hover { |
129 | | - } |
130 | | -#diff .right li.notLeft { |
131 | | - color: #000; |
132 | | - opacity: 1; |
133 | | - } |
134 | | -#diff .right li.notRight { |
135 | | - color: #000; |
136 | | - } |
137 | | -#diff .right li.toRemove { |
138 | | - color: #000; |
139 | | - text-decoration: line-through; |
140 | | - opacity: 1; |
141 | | - } |
142 | | -#diff textarea { |
143 | | - background-color: #f8f8ff; |
144 | | - border: 0; |
145 | | - border-top: 1px solid #eee; |
146 | | - box-sizing: border-box; |
147 | | - color: black; |
148 | | - direction: ltr; |
149 | | - font: inherit; |
150 | | - height: 100%; |
151 | | - left: 0; |
152 | | - margin: 0; |
153 | | - overflow: hidden; |
154 | | - overflow-y: auto; |
155 | | - padding: 1em 0 0 3px; /* same left and top padding as ul/li */ |
156 | | - position: absolute; |
157 | | - resize: none; |
158 | | - top: 0; |
159 | | - visibility: hidden; |
160 | | - white-space: pre; /* this implies nowrap; break only on \n and <br>. |
161 | | - nowrap doesn't consistently |
162 | | - respect \n's (example: Safari) per the CSS spec: |
163 | | - http://www.w3.org/wiki/CSS/Properties/white-space */ |
164 | | - width: 100%; |
165 | | - word-wrap: normal; |
166 | | - } |
167 | | -#diff.edit textarea { |
168 | | - visibility: visible; |
| 105 | +#diff.editing .CodeMirror-merge-editor .CodeMirror { |
| 106 | + background-color: #ffe; |
169 | 107 | } |
0 commit comments