diff options
author | eug-vs <eug-vs@keemail.me> | 2021-07-14 14:25:18 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2021-07-14 14:25:18 +0300 |
commit | cac1c55c6f1693cb16308a5ef5f1d481f15cf1c1 (patch) | |
tree | 540e6cc4217f1620f71b3b6b08b4fdb116e2d336 | |
parent | a29f2137d4c727449f2d70e203156a54fa30912e (diff) | |
download | eug-vs-xyz-cac1c55c6f1693cb16308a5ef5f1d481f15cf1c1.tar.gz |
feat: add code-blocks styling
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | gruvbox.theme | 225 | ||||
-rw-r--r-- | style.css | 10 |
3 files changed, 232 insertions, 5 deletions
@@ -6,7 +6,7 @@ STYLESHEET=/style.css HEADER=header.html ICON=icon.html PAGETITLE="Eugene's Space" -PANDOC_ARGS=-s --from=$(MARKDOWN) --to=html -c $(STYLESHEET) -B $(HEADER) -H $(ICON) -M pagetitle=$(PAGETITLE) --shift-heading-level-by=1 +PANDOC_ARGS=-s --from=$(MARKDOWN) --to=html -c $(STYLESHEET) -B $(HEADER) -H $(ICON) -M pagetitle=$(PAGETITLE) --shift-heading-level-by=1 --highlight-style=gruvbox.theme LINK_SEDSTRING=s/.md)/.html)/g; EMOJI_SEDSTRING=$(shell ./compile_emoji_sedstring.sh) diff --git a/gruvbox.theme b/gruvbox.theme new file mode 100644 index 0000000..4023e34 --- /dev/null +++ b/gruvbox.theme @@ -0,0 +1,225 @@ +{ + "text-color": "#cfcfc2", + "background-color": "#121212", + "line-number-color": "#7a7c7d", + "line-number-background-color": "#232629", + "text-styles": { + "Annotation": { + "text-color": "#3f8058", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "Information": { + "text-color": "#c45b00", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "Keyword": { + "text-color": "#cfcfc2", + "background-color": null, + "bold": true, + "italic": false, + "underline": false + }, + "SpecialChar": { + "text-color": "#3daee9", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "Preprocessor": { + "text-color": "#27ae60", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "Constant": { + "text-color": "#27aeae", + "background-color": null, + "bold": true, + "italic": false, + "underline": false + }, + "CommentVar": { + "text-color": "#7f8c8d", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "Alert": { + "text-color": "#95da4c", + "background-color": "#4d1f24", + "bold": true, + "italic": false, + "underline": false + }, + "Comment": { + "text-color": "#7a7c7d", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "Normal": { + "text-color": "#cfcfc2", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "Float": { + "text-color": "#f67400", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "Operator": { + "text-color": "#cfcfc2", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "Import": { + "text-color": "#27ae60", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "ControlFlow": { + "text-color": "#fdbc4b", + "background-color": null, + "bold": true, + "italic": false, + "underline": false + }, + "Documentation": { + "text-color": "#a43340", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "Function": { + "text-color": "#8e44ad", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "RegionMarker": { + "text-color": "#2980b9", + "background-color": "#153042", + "bold": false, + "italic": false, + "underline": false + }, + "Warning": { + "text-color": "#da4453", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "VerbatimString": { + "text-color": "#da4453", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "Other": { + "text-color": "#27ae60", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "Attribute": { + "text-color": "#2980b9", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "SpecialString": { + "text-color": "#da4453", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "BuiltIn": { + "text-color": "#7f8c8d", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "Extension": { + "text-color": "#0099ff", + "background-color": null, + "bold": true, + "italic": false, + "underline": false + }, + "DecVal": { + "text-color": "#f67400", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "Variable": { + "text-color": "#27aeae", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "BaseN": { + "text-color": "#f67400", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "DataType": { + "text-color": "#2980b9", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "Char": { + "text-color": "#3daee9", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "Error": { + "text-color": "#da4453", + "background-color": null, + "bold": false, + "italic": false, + "underline": true + }, + "String": { + "text-color": "#f44f4f", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + } + } +} @@ -61,20 +61,22 @@ code { font-size: 85%; margin: 0; padding: 4px; - background: black; + background: #121212; border-radius: 4px; } pre { margin: 1em 0; overflow: auto; + border: 1px solid rgba(255, 255, 255, 0.12); + padding: 8px 4px; } pre code { - padding: 0; overflow: visible; } .sourceCode { - background-color: transparent; - overflow: visible; + background-color: transparent; + overflow: visible; + border-radius: 4px; } hr { background-color: #1a1a1a; |