diff --git a/templates/gist_insert.html b/templates/gist_insert.html index 858f730..c2b29c5 100644 --- a/templates/gist_insert.html +++ b/templates/gist_insert.html @@ -1,8 +1,10 @@ <. let gist_id = data.get_gist_id(src); .> <. let (_, gist)= gists.as_ref().unwrap().iter().find(|(id, _)| id == gist_id).as_ref().unwrap(); .> +
<. for file in &gist.files {.> - <.= file.get_html_content() .> + <.= file.get_html_content() .> <.}.> -See gist on GitHub +
diff --git a/templates/main.css b/templates/main.css index d5c8112..4885427 100644 --- a/templates/main.css +++ b/templates/main.css @@ -63,9 +63,15 @@ code { font-family: monospace; font-size: 15px; white-space: pre-wrap; - display: block; font-weight: 600; line-height: 1rem; + padding: 5px; + border-radius: 6px; + background-color: rgba(175, 184, 193, 0.2); +} + +.code-block { + display: block; } iframe { @@ -118,3 +124,12 @@ iframe { .meta { display: inline-flex; } + +.gist_contianer { + border-radius: 6px; + border: 1px solid rgb(211, 211, 211); +} + +.gist_link { + margin-left: 5px; +}