Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 29 additions & 3 deletions src/css/admonition.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,33 @@
}
}

/* Change color of the "important" admonition back to the default red */
.doc .admonitionblock.code-rule.warning .icon {
background-color: #e40046;
/* Adjust styles for the "correct" code style rule usage */
.doc .admonitionblock.code-rule.tip {
/* Change the background color of the "tip" admonition to a light green */
& td.content {
background-color: #e7fbe8;
}

/* Change the background color of the code block to a light green */
& td.content div.listingblock pre.highlight code {
background-color: #e7fbe8;
}
}

/* Adjust styles for the "wrong" code style rule usage */
.doc .admonitionblock.code-rule.warning {
/* Change the color of the "important" admonition back to the default red */
& .icon {
background-color: #e40046;
}

/* Change the background color of the "tip" admonition to a light green */
& td.content {
background-color: #f0d2db;
}

/* Change the background color of the code block to a light green */
& td.content div.listingblock pre.highlight code {
background-color: #f0d2db;
}
}
3 changes: 2 additions & 1 deletion src/js/vendor/highlight.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
hljs.registerLanguage('shell', require('highlight.js/lib/languages/shell'))
hljs.registerLanguage('sql', require('highlight.js/lib/languages/sql'))
hljs.registerLanguage('xml', require('highlight.js/lib/languages/xml'))
hljs.registerLanguage('yaml', require('highlight.js/lib/languages/yaml'));
hljs.registerLanguage('yaml', require('highlight.js/lib/languages/yaml'))
hljs.registerLanguage('toml', require('highlight.js/lib/languages/ini'));

[].slice.call(document.querySelectorAll('pre code.hljs')).forEach(function (node) {
hljs.highlightElement(node)
Expand Down