diff options
author | Jonas Smedegaard <dr@jones.dk> | 2024-06-26 16:34:39 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2024-06-26 16:34:39 +0200 |
commit | 9e6d4b21e3646d6d19e08ee66dcc0907218d72bb (patch) | |
tree | e75309948f57e5de58f9026a8829d5c3e1c0a553 /styles | |
parent | 256f0e11e900c0621befd0a3d8df72fdced920b3 (diff) |
generate color-hightlighted html representation of SDML source files
Diffstat (limited to 'styles')
-rw-r--r-- | styles/main.scss | 3 | ||||
-rw-r--r-- | styles/sdml.scss | 79 |
2 files changed, 82 insertions, 0 deletions
diff --git a/styles/main.scss b/styles/main.scss index cb90dff..a07aec4 100644 --- a/styles/main.scss +++ b/styles/main.scss @@ -13,6 +13,9 @@ $headings-font-family: $font-family-sans-serif; $display-font-family: $font-family-sans-serif; $input-btn-font-family: $font-family-sans-serif; +@import "sdml"; +@include sdml; + /*-- scss:mixins --*/ @mixin font-face($name, $style, $weight, $basedir, $file) { diff --git a/styles/sdml.scss b/styles/sdml.scss new file mode 100644 index 0000000..592a598 --- /dev/null +++ b/styles/sdml.scss @@ -0,0 +1,79 @@ +@mixin sdml { + +pre code.sdml { + font-family: "InconsolataN",monospace; +// font-size: .9em; +// font-weight: 300; +// line-height: 1.4; + padding: .6em; + border: 1px solid #e1e4e5; + white-space: pre; +} + +pre code.sdml span.comment { + color: #949494; + font-style: italic; +} + +pre code.sdml span.constant-builtin { + color: #5f5f00; +} + +pre code.sdml span.error { + color: #ff0000; +} + +pre code.sdml span.function-call { + color: #005fd7; +} + +pre code.sdml span.keyword { + color: #878700; +} + +pre code.sdml span.operator { + color: #4e4e4e; + font-weight: bold; +} + +pre code.sdml span.module { + color: #005faf; +} + +pre code.sdml span.module-definition { + color: #0000af; +} + +pre code.sdml span.number { + color: #5f5f00; +} + +pre code.sdml span.property { + color: #d70000; +} + +pre code.sdml span.punctuation-bracket { + color: #4e4e4e; +} + +pre code.sdml span.string { + color: #5faf00; +} + +pre code.sdml span.string-special { + color: #8700d7; +} + +pre code.sdml span.type { + color: #005fff; +} + +pre code.sdml span.type-definition { + color: #0000ff; +} + +pre code.sdml span.variable-field { + color: #5f87af; +} + +} |