File tree Expand file tree Collapse file tree 2 files changed +31
-4
lines changed Expand file tree Collapse file tree 2 files changed +31
-4
lines changed Original file line number Diff line number Diff line change 15
15
}
16
16
}
17
17
18
- /* Change color of the "important" admonition back to the default red */
19
- .doc .admonitionblock .code-rule .warning .icon {
20
- background-color : # e40046 ;
18
+ /* Adjust styles for the "correct" code style rule usage */
19
+ .doc .admonitionblock .code-rule .tip {
20
+ /* Change the background color of the "tip" admonition to a light green */
21
+ & td .content {
22
+ background-color : # e7fbe8 ;
23
+ }
24
+
25
+ /* Change the background color of the code block to a light green */
26
+ & td .content div .listingblock pre .highlight code {
27
+ background-color : # e7fbe8 ;
28
+ }
29
+ }
30
+
31
+ /* Adjust styles for the "wrong" code style rule usage */
32
+ .doc .admonitionblock .code-rule .warning {
33
+ /* Change the color of the "important" admonition back to the default red */
34
+ & .icon {
35
+ background-color : # e40046 ;
36
+ }
37
+
38
+ /* Change the background color of the "tip" admonition to a light green */
39
+ & td .content {
40
+ background-color : # f0d2db ;
41
+ }
42
+
43
+ /* Change the background color of the code block to a light green */
44
+ & td .content div .listingblock pre .highlight code {
45
+ background-color : # f0d2db ;
46
+ }
21
47
}
Original file line number Diff line number Diff line change 21
21
hljs . registerLanguage ( 'shell' , require ( 'highlight.js/lib/languages/shell' ) )
22
22
hljs . registerLanguage ( 'sql' , require ( 'highlight.js/lib/languages/sql' ) )
23
23
hljs . registerLanguage ( 'xml' , require ( 'highlight.js/lib/languages/xml' ) )
24
- hljs . registerLanguage ( 'yaml' , require ( 'highlight.js/lib/languages/yaml' ) ) ;
24
+ hljs . registerLanguage ( 'yaml' , require ( 'highlight.js/lib/languages/yaml' ) )
25
+ hljs . registerLanguage ( 'toml' , require ( 'highlight.js/lib/languages/ini' ) ) ;
25
26
26
27
[ ] . slice . call ( document . querySelectorAll ( 'pre code.hljs' ) ) . forEach ( function ( node ) {
27
28
hljs . highlightElement ( node )
You can’t perform that action at this time.
0 commit comments