提交 | 用户 | 时间
|
e7c126
|
1 |
/* |
H |
2 |
* Copyright 1999-2018 Alibaba Group Holding Ltd. |
|
3 |
* |
|
4 |
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
5 |
* you may not use this file except in compliance with the License. |
|
6 |
* You may obtain a copy of the License at |
|
7 |
* |
|
8 |
* http://www.apache.org/licenses/LICENSE-2.0 |
|
9 |
* |
|
10 |
* Unless required by applicable law or agreed to in writing, software |
|
11 |
* distributed under the License is distributed on an "AS IS" BASIS, |
|
12 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
13 |
* See the License for the specific language governing permissions and |
|
14 |
* limitations under the License. |
|
15 |
*/ |
|
16 |
|
|
17 |
.CodeMirror-merge { |
|
18 |
position: relative; |
|
19 |
border: 1px solid #ddd; |
|
20 |
white-space: pre; |
|
21 |
} |
|
22 |
|
|
23 |
.CodeMirror-merge, .CodeMirror-merge .CodeMirror { |
|
24 |
height: 350px; |
|
25 |
} |
|
26 |
|
|
27 |
.CodeMirror-merge-2pane .CodeMirror-merge-pane { width: 47%; } |
|
28 |
.CodeMirror-merge-2pane .CodeMirror-merge-gap { width: 6%; } |
|
29 |
.CodeMirror-merge-3pane .CodeMirror-merge-pane { width: 31%; } |
|
30 |
.CodeMirror-merge-3pane .CodeMirror-merge-gap { width: 3.5%; } |
|
31 |
|
|
32 |
.CodeMirror-merge-pane { |
|
33 |
display: inline-block; |
|
34 |
white-space: normal; |
|
35 |
vertical-align: top; |
|
36 |
} |
|
37 |
.CodeMirror-merge-pane-rightmost { |
|
38 |
position: absolute; |
|
39 |
right: 0px; |
|
40 |
z-index: 1; |
|
41 |
} |
|
42 |
|
|
43 |
.CodeMirror-merge-gap { |
|
44 |
z-index: 2; |
|
45 |
display: inline-block; |
|
46 |
height: 100%; |
|
47 |
-moz-box-sizing: border-box; |
|
48 |
box-sizing: border-box; |
|
49 |
overflow: hidden; |
|
50 |
border-left: 1px solid #ddd; |
|
51 |
border-right: 1px solid #ddd; |
|
52 |
position: relative; |
|
53 |
background: #f8f8f8; |
|
54 |
} |
|
55 |
|
|
56 |
.CodeMirror-merge-scrolllock-wrap { |
|
57 |
position: absolute; |
|
58 |
bottom: 0; left: 50%; |
|
59 |
} |
|
60 |
.CodeMirror-merge-scrolllock { |
|
61 |
position: relative; |
|
62 |
left: -50%; |
|
63 |
cursor: pointer; |
|
64 |
color: #555; |
|
65 |
line-height: 1; |
|
66 |
} |
|
67 |
|
|
68 |
.CodeMirror-merge-copybuttons-left, .CodeMirror-merge-copybuttons-right { |
|
69 |
position: absolute; |
|
70 |
left: 0; top: 0; |
|
71 |
right: 0; bottom: 0; |
|
72 |
line-height: 1; |
|
73 |
} |
|
74 |
|
|
75 |
.CodeMirror-merge-copy { |
|
76 |
position: absolute; |
|
77 |
cursor: pointer; |
|
78 |
color: #44c; |
|
79 |
z-index: 3; |
|
80 |
} |
|
81 |
|
|
82 |
.CodeMirror-merge-copy-reverse { |
|
83 |
position: absolute; |
|
84 |
cursor: pointer; |
|
85 |
color: #44c; |
|
86 |
} |
|
87 |
|
|
88 |
.CodeMirror-merge-copybuttons-left .CodeMirror-merge-copy { left: 2px; } |
|
89 |
.CodeMirror-merge-copybuttons-right .CodeMirror-merge-copy { right: 2px; } |
|
90 |
|
|
91 |
.CodeMirror-merge-r-inserted, .CodeMirror-merge-l-inserted { |
|
92 |
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAACCAYAAACddGYaAAAAGUlEQVQI12MwuCXy3+CWyH8GBgYGJgYkAABZbAQ9ELXurwAAAABJRU5ErkJggg==); |
|
93 |
background-position: bottom left; |
|
94 |
background-repeat: repeat-x; |
|
95 |
} |
|
96 |
|
|
97 |
.CodeMirror-merge-r-deleted, .CodeMirror-merge-l-deleted { |
|
98 |
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAACCAYAAACddGYaAAAAGUlEQVQI12M4Kyb2/6yY2H8GBgYGJgYkAABURgPz6Ks7wQAAAABJRU5ErkJggg==); |
|
99 |
background-position: bottom left; |
|
100 |
background-repeat: repeat-x; |
|
101 |
} |
|
102 |
|
|
103 |
.CodeMirror-merge-r-chunk { background: #ffffe0; } |
|
104 |
.CodeMirror-merge-r-chunk-start { border-top: 1px solid #ee8; } |
|
105 |
.CodeMirror-merge-r-chunk-end { border-bottom: 1px solid #ee8; } |
|
106 |
.CodeMirror-merge-r-connect { fill: #ffffe0; stroke: #ee8; stroke-width: 1px; } |
|
107 |
|
|
108 |
.CodeMirror-merge-l-chunk { background: #eef; } |
|
109 |
.CodeMirror-merge-l-chunk-start { border-top: 1px solid #88e; } |
|
110 |
.CodeMirror-merge-l-chunk-end { border-bottom: 1px solid #88e; } |
|
111 |
.CodeMirror-merge-l-connect { fill: #eef; stroke: #88e; stroke-width: 1px; } |
|
112 |
|
|
113 |
.CodeMirror-merge-l-chunk.CodeMirror-merge-r-chunk { background: #dfd; } |
|
114 |
.CodeMirror-merge-l-chunk-start.CodeMirror-merge-r-chunk-start { border-top: 1px solid #4e4; } |
|
115 |
.CodeMirror-merge-l-chunk-end.CodeMirror-merge-r-chunk-end { border-bottom: 1px solid #4e4; } |
|
116 |
|
|
117 |
.CodeMirror-merge-collapsed-widget:before { |
|
118 |
content: "(...)"; |
|
119 |
} |
|
120 |
.CodeMirror-merge-collapsed-widget { |
|
121 |
cursor: pointer; |
|
122 |
color: #88b; |
|
123 |
background: #eef; |
|
124 |
border: 1px solid #ddf; |
|
125 |
font-size: 90%; |
|
126 |
padding: 0 3px; |
|
127 |
border-radius: 4px; |
|
128 |
} |
|
129 |
.CodeMirror-merge-collapsed-line .CodeMirror-gutter-elt { display: none; } |