style changes

master
Araozu 2024-03-27 20:55:46 -05:00
parent 79020222e5
commit 516947a247
2 changed files with 6 additions and 6 deletions

View File

@ -87,8 +87,8 @@ pub fn generate_pages_html(file_tree: &Node, current_path: &Path, config: &Confi
Node::File(file) => { Node::File(file) => {
if file.path == "index" { if file.path == "index" {
format!( format!(
"<li class=\"my-1\"> "<li class=\"\">
<a class=\"inline-block rounded-md w-full hover:text-c2-primary p-1\" href=\"/{}\">Index</a> <a class=\"inline-block rounded-2xl w-full hover:bg-neutral-800 transition-colors px-3 py-2\" href=\"/{}\">Index</a>
</li>", </li>",
current_path.to_str().unwrap() current_path.to_str().unwrap()
) )
@ -96,8 +96,8 @@ pub fn generate_pages_html(file_tree: &Node, current_path: &Path, config: &Confi
String::from("") String::from("")
} else { } else {
format!( format!(
"<li class=\"my-1\"> "<li class=\"\">
<a class=\"inline-block rounded-md w-full hover:text-c2-primary p-1\" href=\"/{}/{}.{}\">{}</a> <a class=\"inline-block rounded-2xl w-full hover:bg-neutral-800 transition-colors px-3 py-2\" href=\"/{}/{}.{}\">{}</a>
</li>", </li>",
current_path.to_str().unwrap(), current_path.to_str().unwrap(),
file.path, file.path,
@ -122,7 +122,7 @@ pub fn generate_pages_html(file_tree: &Node, current_path: &Path, config: &Confi
} else { } else {
format!( format!(
"<li class=\"my-1\"> "<li class=\"my-1\">
<div class=\"opacity-80 mt-6 {}\">{}</div> <div class=\"mt-6 px-3 py-1 {}\">{}</div>
<ul>{}</ul> <ul>{}</ul>
</li>", </li>",
&config.file_tree_title_classes, &config.file_tree_title_classes,

View File

@ -54,7 +54,7 @@ impl Topic {
let html_fragment_link = utils::to_html_fragment(&self.text); let html_fragment_link = utils::to_html_fragment(&self.text);
format!( format!(
"<li class=\"m-2\"><a href=\"#{}\" class=\"inline-block w-full hover:text-c2-primary\">{}</a>{}</li>", "<li class=\"py-1\"><a href=\"#{}\" class=\"inline-block w-full hover:text-c2-primary hover:underline\">{}</a>{}</li>",
html_fragment_link, self.text, extra html_fragment_link, self.text, extra
) )
} }