| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Copyright (C) 2013 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' |
| xmlns:g='urn:import:com.google.gwt.user.client.ui'> |
| <ui:style field='css'> |
| @external .CodeMirror, .CodeMirror-selectedtext, .CodeMirror-scroll; |
| |
| .difftable .CodeMirror { |
| border: 1px solid #eee; |
| height: auto; |
| } |
| .difftable .CodeMirror pre { |
| padding: 0; |
| overflow: hidden; |
| } |
| .difftable .CodeMirror-selectedtext.intraline, |
| .difftable .CodeMirror-selectedtext.insert { |
| opacity: 0.5; |
| } |
| .difftable .CodeMirror-scroll { |
| overflow-x: hidden; |
| overflow-y: hidden; |
| } |
| <!--.difftable .CodeMirror-vscrollbar { |
| display: none !important; |
| }--> |
| </ui:style> |
| <ui:style type='com.google.gerrit.client.diff.DiffTable.LineStyle'> |
| @external .CodeMirror-linenumber; |
| |
| .insert, |
| .insert .CodeMirror-linenumber { |
| background-color: #dfd; |
| } |
| .delete, |
| .delete .CodeMirror-linenumber { |
| background-color: #fee; |
| } |
| .intraline { |
| background-color: #9f9; |
| } |
| .padding { |
| background-color: #eee; |
| height: 1em; |
| } |
| </ui:style> |
| <g:HTMLPanel styleName='{css.difftable}'> |
| <table> |
| <tr> |
| <td><div ui:field='cmA'></div></td> |
| <td><div ui:field='cmB'></div></td> |
| </tr> |
| </table> |
| </g:HTMLPanel> |
| </ui:UiBinder> |