Files
SCM-Manager/scm-ui/ui-components/src/syntax-highlighting.ts

218 lines
4.6 KiB
TypeScript
Raw Normal View History

2020-10-16 09:40:10 +02:00
/*
* MIT License
*
* Copyright (c) 2020-present Cloudogu GmbH and Contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
2020-10-12 18:53:31 +02:00
/* --- DO NOT EDIT --- */
/* Auto-generated from syntax-highlighting.module.css */
2020-10-12 18:53:31 +02:00
export default {
'pre[class*="language-"]': {
color: "#363636",
fontSize: "13px",
textShadow: "none",
fontFamily: "Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",
direction: "ltr",
textAlign: "left",
whiteSpace: "pre",
wordSpacing: "normal",
wordBreak: "normal",
lineHeight: "1.5",
MozTabSize: "4",
OTabSize: "4",
tabSize: "4",
WebkitHyphens: "none",
MozHyphens: "none",
msHyphens: "none",
hyphens: "none",
padding: "1em",
margin: ".5em 0",
overflow: "auto",
background: "#ffffff"
2020-10-12 18:53:31 +02:00
},
'code[class*="language-"]': {
color: "#363636",
fontSize: "13px",
textShadow: "none",
fontFamily: "Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",
direction: "ltr",
textAlign: "left",
whiteSpace: "pre",
wordSpacing: "normal",
wordBreak: "normal",
lineHeight: "1.5",
MozTabSize: "4",
OTabSize: "4",
tabSize: "4",
WebkitHyphens: "none",
MozHyphens: "none",
msHyphens: "none",
hyphens: "none"
2020-10-12 18:53:31 +02:00
},
'pre[class*="language-"]::selection': {
textShadow: "none",
background: "#7fe3cd"
2020-10-12 18:53:31 +02:00
},
'code[class*="language-"]::selection': {
textShadow: "none",
background: "#7fe3cd"
2020-10-12 18:53:31 +02:00
},
'pre[class*="language-"]::-moz-selection': {
2020-10-12 18:53:31 +02:00
textShadow: "none",
background: "#7fe3cd"
2020-10-12 18:53:31 +02:00
},
'code[class*="language-"]::-moz-selection': {
2020-10-12 18:53:31 +02:00
textShadow: "none",
background: "#7fe3cd"
2020-10-12 18:53:31 +02:00
},
':not(pre) > code[class*="language-"]': {
padding: ".1em .3em",
borderRadius: ".3em",
color: "#ff3860",
background: "#fbe7eb"
2020-10-12 18:53:31 +02:00
},
".namespace": {
Opacity: ".7"
2020-10-12 18:53:31 +02:00
},
comment: {
color: "#9a9a9a"
2020-10-12 18:53:31 +02:00
},
prolog: {
color: "#9a9a9a"
2020-10-12 18:53:31 +02:00
},
doctype: {
color: "#9a9a9a"
2020-10-12 18:53:31 +02:00
},
cdata: {
color: "#9a9a9a"
2020-10-12 18:53:31 +02:00
},
punctuation: {
color: "#9a9a9a"
2020-10-12 18:53:31 +02:00
},
property: {
color: "#2c99c7"
2020-10-12 18:53:31 +02:00
},
tag: {
color: "#2c99c7"
2020-10-12 18:53:31 +02:00
},
boolean: {
color: "#2c99c7"
2020-10-12 18:53:31 +02:00
},
number: {
color: "#2c99c7"
2020-10-12 18:53:31 +02:00
},
constant: {
color: "#2c99c7"
2020-10-12 18:53:31 +02:00
},
symbol: {
color: "#2c99c7"
2020-10-12 18:53:31 +02:00
},
deleted: {
color: "#2c99c7"
2020-10-12 18:53:31 +02:00
},
selector: {
color: "#005f9a"
2020-10-12 18:53:31 +02:00
},
"attr-name": {
color: "#005f9a"
2020-10-12 18:53:31 +02:00
},
string: {
color: "#005f9a"
2020-10-12 18:53:31 +02:00
},
char: {
color: "#005f9a"
2020-10-12 18:53:31 +02:00
},
builtin: {
color: "#005f9a"
2020-10-12 18:53:31 +02:00
},
inserted: {
color: "#005f9a"
2020-10-12 18:53:31 +02:00
},
operator: {
color: "#686868"
2020-10-12 18:53:31 +02:00
},
entity: {
color: "#686868",
cursor: "help"
2020-10-12 18:53:31 +02:00
},
url: {
color: "#686868"
2020-10-12 18:53:31 +02:00
},
".language-css .token.string": {
color: "#686868"
2020-10-12 18:53:31 +02:00
},
".style .token.string": {
color: "#686868"
2020-10-12 18:53:31 +02:00
},
atrule: {
color: "#00a984"
2020-10-12 18:53:31 +02:00
},
"attr-value": {
color: "#00a984"
2020-10-12 18:53:31 +02:00
},
keyword: {
color: "#00a984"
2020-10-12 18:53:31 +02:00
},
function: {
color: "#ff3860"
2020-10-12 18:53:31 +02:00
},
regex: {
color: "#a74eb2"
2020-10-12 18:53:31 +02:00
},
important: {
color: "#a74eb2",
fontWeight: "bold"
2020-10-12 18:53:31 +02:00
},
variable: {
color: "#a74eb2"
2020-10-12 18:53:31 +02:00
},
bold: {
fontWeight: "bold"
2020-10-12 18:53:31 +02:00
},
title: {
fontWeight: "bold"
},
2020-10-12 18:53:31 +02:00
italic: {
fontStyle: "italic"
2020-10-12 18:53:31 +02:00
},
"pre[data-line]": {
position: "relative"
2020-10-12 18:53:31 +02:00
},
'pre[class*="language-"] > code[class*="language-"]': {
position: "relative",
zIndex: "1"
2020-10-12 18:53:31 +02:00
},
".line-highlight": {
position: "absolute",
left: "0",
right: "0",
padding: "inherit 0",
marginTop: "1em",
background: "#f5f5f5",
boxShadow: "inset 5px 0 0 #99d8f3",
zIndex: "0",
pointerEvents: "none",
lineHeight: "inherit",
whiteSpace: "pre"
}
2020-10-12 18:53:31 +02:00
};