portails/assets/scss/components/_syntax.scss

63 lines
1.0 KiB
SCSS
Raw Normal View History

2021-06-15 16:27:38 +02:00
/*
2020-11-04 08:26:58 +01:00
2021-06-15 16:27:38 +02:00
Based on Ascetic by (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org>
*/
.hljs {
display: block;
overflow-x: auto;
padding: 1.25rem 1.5rem;
background: $beige;
color: $body-color;
}
.hljs-string,
.hljs-variable,
.hljs-template-variable,
.hljs-symbol,
.hljs-bullet,
.hljs-section,
.hljs-addition,
.hljs-attribute,
.hljs-link {
color: $pink-500;
}
.hljs-comment,
.hljs-quote,
.hljs-meta,
.hljs-deletion {
color: #888;
}
.hljs-keyword,
.hljs-selector-tag,
.hljs-section,
.hljs-name,
.hljs-type,
.hljs-strong {
font-weight: bold;
}
.hljs-emphasis {
font-style: italic;
}
2021-09-07 12:08:46 +02:00
[data-dark-mode] body .hljs {
2021-06-15 16:27:38 +02:00
background: $body-overlay-dark;
color: $body-color-dark;
}
2021-09-07 12:08:46 +02:00
[data-dark-mode] body .hljs-string,
[data-dark-mode] body .hljs-variable,
[data-dark-mode] body .hljs-template-variable,
[data-dark-mode] body .hljs-symbol,
[data-dark-mode] body .hljs-bullet,
[data-dark-mode] body .hljs-section,
[data-dark-mode] body .hljs-addition,
[data-dark-mode] body .hljs-attribute,
[data-dark-mode] body .hljs-link {
2021-06-15 16:27:38 +02:00
color: $blue-300;
}