Start a language-specific css file for highlight colors.
This commit is contained in:
parent
4ea1a46705
commit
c601c8697a
9
default_environment/stylesheet/language_nix.css
Normal file
9
default_environment/stylesheet/language_nix.css
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
.main_content {
|
||||||
|
.src_block {
|
||||||
|
&.srclg_nix {
|
||||||
|
.srchl_keyword {
|
||||||
|
color: green;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<div class="src_block">
|
<div class="src_block{?.language} srclg_{.language}{/.language}">
|
||||||
{?.language}<div class="src_language">{.language}</div>{/.language}
|
{?.language}<div class="src_language">{.language}</div>{/.language}
|
||||||
<table class="src_body">
|
<table class="src_body">
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -64,6 +64,12 @@ render!(
|
|||||||
render_context.output_file,
|
render_context.output_file,
|
||||||
"stylesheet/main.css",
|
"stylesheet/main.css",
|
||||||
)?,
|
)?,
|
||||||
|
get_web_path(
|
||||||
|
render_context.config,
|
||||||
|
render_context.output_root_directory,
|
||||||
|
render_context.output_file,
|
||||||
|
"stylesheet/language_nix.css",
|
||||||
|
)?,
|
||||||
];
|
];
|
||||||
let js_files = vec![get_web_path(
|
let js_files = vec![get_web_path(
|
||||||
render_context.config,
|
render_context.config,
|
||||||
|
@ -62,6 +62,12 @@ render!(
|
|||||||
render_context.output_file,
|
render_context.output_file,
|
||||||
"stylesheet/main.css",
|
"stylesheet/main.css",
|
||||||
)?,
|
)?,
|
||||||
|
get_web_path(
|
||||||
|
render_context.config,
|
||||||
|
render_context.output_root_directory,
|
||||||
|
render_context.output_file,
|
||||||
|
"stylesheet/language_nix.css",
|
||||||
|
)?,
|
||||||
];
|
];
|
||||||
let js_files = vec![get_web_path(
|
let js_files = vec![get_web_path(
|
||||||
render_context.config,
|
render_context.config,
|
||||||
|
@ -43,6 +43,12 @@ render!(RenderPage, IPage, original, render_context, {
|
|||||||
render_context.output_file,
|
render_context.output_file,
|
||||||
"stylesheet/main.css",
|
"stylesheet/main.css",
|
||||||
)?,
|
)?,
|
||||||
|
get_web_path(
|
||||||
|
render_context.config,
|
||||||
|
render_context.output_root_directory,
|
||||||
|
render_context.output_file,
|
||||||
|
"stylesheet/language_nix.css",
|
||||||
|
)?,
|
||||||
];
|
];
|
||||||
let js_files = vec![get_web_path(
|
let js_files = vec![get_web_path(
|
||||||
render_context.config,
|
render_context.config,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user