Kasper Nilsson | 9976e21 | 2017-11-13 17:03:06 -0800 | [diff] [blame] | 1 | <!-- |
| 2 | Copyright (C) 2017 The Android Open Source Project |
| 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 | |
Kasper Nilsson | 9976e21 | 2017-11-13 17:03:06 -0800 | [diff] [blame] | 17 | <dom-module id="gr-editor"> |
| 18 | <template> |
Kasper Nilsson | ee50e45 | 2018-05-14 20:46:37 -0700 | [diff] [blame] | 19 | <style> |
Kasper Nilsson | 9976e21 | 2017-11-13 17:03:06 -0800 | [diff] [blame] | 20 | #wrapper { |
| 21 | height: 100%; |
Kasper Nilsson | 27f2c73 | 2018-01-03 11:10:50 -0800 | [diff] [blame] | 22 | z-index: 0; |
Kasper Nilsson | 9976e21 | 2017-11-13 17:03:06 -0800 | [diff] [blame] | 23 | } |
| 24 | .CodeMirror { |
| 25 | font-family: 'Roboto Mono', Menlo, 'Lucida Console', Monaco, monospace; |
Kasper Nilsson | b33196a | 2018-01-10 13:06:18 -0800 | [diff] [blame] | 26 | height: auto; |
| 27 | /* CodeMirror has a default z-index of 4. Set to 0 to avoid collisions with fixed header. */ |
| 28 | z-index: 0; |
Kasper Nilsson | 9976e21 | 2017-11-13 17:03:06 -0800 | [diff] [blame] | 29 | } |
Kasper Nilsson | ed00350 | 2018-02-12 17:08:39 -0800 | [diff] [blame] | 30 | .CodeMirror-linenumbers { |
| 31 | background-color: #fafafa; |
| 32 | } |
| 33 | .CodeMirror-linenumber { |
| 34 | color: #757575; |
| 35 | } |
Kasper Nilsson | fa9df30 | 2018-03-13 11:01:59 -0700 | [diff] [blame] | 36 | .CodeMirror-ruler { |
| 37 | border-left: 1px solid #ddd; |
| 38 | } |
Paladox none | af47e0c | 2018-02-04 17:06:53 +0000 | [diff] [blame] | 39 | .cm-tab:before { |
| 40 | color: #757575; |
| 41 | content: "\2192"; |
| 42 | position: absolute; |
| 43 | } |
| 44 | .cm-trailingspace { |
| 45 | background-color: #ef9a9a; |
| 46 | border: 1px solid #f44336; |
| 47 | border-radius: 3px; |
| 48 | } |
Kasper Nilsson | 9976e21 | 2017-11-13 17:03:06 -0800 | [diff] [blame] | 49 | </style> |
| 50 | <div id="wrapper"></div> |
| 51 | </template> |
Paladox none | f469cc2 | 2017-12-29 16:12:22 +0000 | [diff] [blame] | 52 | <script src="gr-editor.js"></script> |
Kasper Nilsson | f72905b | 2017-12-13 13:10:42 -0800 | [diff] [blame] | 53 | </dom-module> |