mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-03 03:55:51 +01:00
189 lines
3.6 KiB
CSS
189 lines
3.6 KiB
CSS
/*
|
|
* Copyright (c) 2020 - present Cloudogu GmbH
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify it under
|
|
* the terms of the GNU Affero General Public License as published by the Free
|
|
* Software Foundation, version 3.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
* details.
|
|
*
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
* along with this program. If not, see https://www.gnu.org/licenses/.
|
|
*/
|
|
|
|
/* Generated with http://k88hudson.github.io/syntax-highlighting-theme-generator/www */
|
|
/* http://k88hudson.github.io/react-markdocs */
|
|
|
|
/**
|
|
* @author k88hudson
|
|
*
|
|
* Based on prism.js default theme for JavaScript, CSS and HTML
|
|
* Based on dabblet (http://dabblet.com)
|
|
* @author Lea Verou
|
|
*/
|
|
|
|
/*********************************************************
|
|
* General
|
|
*/
|
|
|
|
pre[class*="language-"],
|
|
code[class*="language-"] {
|
|
color: var(--sh-base-color);
|
|
font-size: 1rem;
|
|
text-shadow: none;
|
|
font-family: var(--sh-font-family);
|
|
direction: ltr;
|
|
text-align: left;
|
|
white-space: pre;
|
|
word-spacing: normal;
|
|
word-break: normal;
|
|
line-height: 1.5;
|
|
-moz-tab-size: 4;
|
|
-o-tab-size: 4;
|
|
tab-size: 4;
|
|
-webkit-hyphens: none;
|
|
-moz-hyphens: none;
|
|
-ms-hyphens: none;
|
|
hyphens: none;
|
|
}
|
|
|
|
pre[class*="language-"]::selection,
|
|
code[class*="language-"]::selection,
|
|
pre[class*="language-"]::-moz-selection,
|
|
code[class*="language-"]::-moz-selection {
|
|
text-shadow: none;
|
|
background: var(--sh-selected-color);
|
|
}
|
|
|
|
@media print {
|
|
|
|
pre[class*="language-"],
|
|
code[class*="language-"] {
|
|
text-shadow: none;
|
|
}
|
|
|
|
}
|
|
|
|
pre[class*="language-"] {
|
|
padding: 1em;
|
|
margin: .5em 0;
|
|
overflow: auto;
|
|
background: var(--sh-block-background);
|
|
}
|
|
|
|
:not(pre) > code[class*="language-"] {
|
|
padding: .1em .3em;
|
|
border-radius: .3em;
|
|
color: var(--sh-inline-code-color);
|
|
background: var(--sh-inline-code-background);
|
|
}
|
|
|
|
/*********************************************************
|
|
* Tokens
|
|
*/
|
|
|
|
.namespace {
|
|
opacity: .7;
|
|
}
|
|
|
|
.token.comment,
|
|
.token.prolog,
|
|
.token.doctype,
|
|
.token.cdata {
|
|
color: var(--sh-comment-color);
|
|
}
|
|
|
|
.token.punctuation {
|
|
color: var(--sh-punctuation-color);
|
|
}
|
|
|
|
.token.property,
|
|
.token.tag,
|
|
.token.boolean,
|
|
.token.number,
|
|
.token.constant,
|
|
.token.symbol,
|
|
.token.deleted {
|
|
color: var(--sh-property-color);
|
|
}
|
|
|
|
.token.selector,
|
|
.token.attr-name,
|
|
.token.string,
|
|
.token.char,
|
|
.token.builtin,
|
|
.token.inserted {
|
|
color: var(--sh-selector-color);
|
|
}
|
|
|
|
.token.operator,
|
|
.token.entity,
|
|
.token.url,
|
|
.language-css .token.string,
|
|
.style .token.string {
|
|
color: var(--sh-operator-color);
|
|
background: var(--sh-operator-bg);
|
|
}
|
|
|
|
.token.atrule,
|
|
.token.attr-value,
|
|
.token.keyword {
|
|
color: var(--sh-keyword-color);
|
|
}
|
|
|
|
.token.function {
|
|
color: var(--sh-function-color);
|
|
}
|
|
|
|
.token.regex,
|
|
.token.important,
|
|
.token.variable {
|
|
color: var(--sh-variable-color);
|
|
}
|
|
|
|
.token.important,
|
|
.token.bold,
|
|
.token.title {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.token.italic {
|
|
font-style: italic;
|
|
}
|
|
|
|
.token.entity {
|
|
cursor: help;
|
|
}
|
|
|
|
/*********************************************************
|
|
* Line highlighting
|
|
*/
|
|
|
|
pre[data-line] {
|
|
position: relative;
|
|
}
|
|
|
|
pre[class*="language-"] > code[class*="language-"] {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.line-highlight {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
padding: inherit;
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
margin-top: 1em;
|
|
background: var(--sh-highlight-background);
|
|
box-shadow: inset 5px 0 0 var(--sh-highlight-accent);
|
|
z-index: 0;
|
|
pointer-events: none;
|
|
line-height: inherit;
|
|
white-space: pre;
|
|
}
|