blob: b7b2cc98e5175824248d3d3ef98f41521aa76566 [file] [log] [blame]
Kasper Nilsson9976e212017-11-13 17:03:06 -08001<!--
2Copyright (C) 2017 The Android Open Source Project
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15-->
16
Kasper Nilsson9976e212017-11-13 17:03:06 -080017<dom-module id="gr-editor">
18 <template>
Kasper Nilssonee50e452018-05-14 20:46:37 -070019 <style>
Kasper Nilsson9976e212017-11-13 17:03:06 -080020 #wrapper {
21 height: 100%;
Kasper Nilsson27f2c732018-01-03 11:10:50 -080022 z-index: 0;
Kasper Nilsson9976e212017-11-13 17:03:06 -080023 }
24 .CodeMirror {
25 font-family: 'Roboto Mono', Menlo, 'Lucida Console', Monaco, monospace;
Kasper Nilssonb33196a2018-01-10 13:06:18 -080026 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 Nilsson9976e212017-11-13 17:03:06 -080029 }
Kasper Nilssoned003502018-02-12 17:08:39 -080030 .CodeMirror-linenumbers {
31 background-color: #fafafa;
32 }
33 .CodeMirror-linenumber {
34 color: #757575;
35 }
Kasper Nilssonfa9df302018-03-13 11:01:59 -070036 .CodeMirror-ruler {
37 border-left: 1px solid #ddd;
38 }
Paladox noneaf47e0c2018-02-04 17:06:53 +000039 .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 Nilsson9976e212017-11-13 17:03:06 -080049 </style>
50 <div id="wrapper"></div>
51 </template>
Paladox nonef469cc22017-12-29 16:12:22 +000052 <script src="gr-editor.js"></script>
Kasper Nilssonf72905b2017-12-13 13:10:42 -080053</dom-module>