(function (Prism) {
var funcPattern = /\\(?:[^a-z()[\]]|[a-z*]+)/i;
var insideEqu = {
'equation-command': {
pattern: funcPattern,
alias: 'regex',
},
};
Prism.languages.latex = {
comment: /%.*/,
// the verbatim environment prints whitespace to the document
cdata: {
pattern:
/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,
lookbehind: true,
},
/*
* equations can be between $$ $$ or $ $ or \( \) or \[ \]
* (all are multiline)
*/
equation: [
{
pattern:
/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,
inside: insideEqu,
alias: 'string',
},
{
pattern:
/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,
lookbehind: true,
inside: insideEqu,
alias: 'string',
},
],
/*
* arguments which are keywords or references are highlighted
* as keywords
*/
keyword: {
pattern:
/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,
lookbehind: true,
},
url: {
pattern: /(\\url\{)[^}]+(?=\})/,
lookbehind: true,
},
/*
* section or chapter headlines are highlighted as bold so that
* they stand out more
*/
headline: {
pattern:
/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,
lookbehind: true,
alias: 'class-name',
},
function: {
pattern: funcPattern,
alias: 'selector',
},
punctuation: /[[\]{}&]/,
};
Prism.languages.tex = Prism.languages.latex;
Prism.languages.context = Prism.languages.latex;
})(Prism);
1e4d9202ae7b1dfeb82e40455c'>commitdiffstats
|
blob: 48dcc6cef6a5322856f2b98682103c8937aa0b90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
@use "@styles/abstracts/functions" as fun;
.icon {
display: block;
width: var(--icon-size, #{fun.convert-px(40)});
}
.wall {
fill: var(--color-bg);
stroke: var(--color-primary-darker);
stroke-width: 4;
}
.indoor {
fill: var(--color-shadow-dark);
stroke: var(--color-primary-darker);
stroke-width: 4;
}
.door {
fill: var(--color-primary-lighter);
stroke: var(--color-primary-darker);
stroke-width: 4;
}
.roof {
fill: var(--color-primary-lighter);
stroke: var(--color-primary-darker);
stroke-width: 4;
}
.chimney {
fill: var(--color-bg);
stroke: var(--color-primary-darker);
stroke-width: 4;
}
.lines {
fill: var(--color-primary-darker);
stroke-width: 4;
}
|