diff --git a/assets/css/style.css b/assets/css/style.css index d1ef98e..903bddd 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -82,6 +82,22 @@ h6, font-size: 14px; } +#title { + font-size: 32px; +} + +.content h2 { + font-size: 26px; +} + +.content h3 { + font-size: 20px; +} + +.content h4 { + font-size: 18px; +} + /* Button style */ .btn { font-size: 14px; @@ -621,9 +637,9 @@ textarea.form-control { } /* this is so that the header does not overlap the section title */ +.content h2:before, .content h3:before, -.content h4:before, -.content h5:before { +.content h4:before { display: block; content: ""; height: 75px; @@ -636,9 +652,9 @@ textarea.form-control { margin-left: 10px; } +.content h2:hover .title-link, .content h3:hover .title-link, -.content h4:hover .title-link, -.content h5:hover .title-link { +.content h4:hover .title-link { opacity: 1; } diff --git a/assets/js/script.js b/assets/js/script.js index b642fdf..79e87f2 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -129,7 +129,7 @@ // table of contents - $('h3, h4, h5', '.content').each(function () { + $('h2, h3, h4', '.content').each(function () { $(this).append('#'); }); diff --git a/layouts/partials/default.html b/layouts/partials/default.html index dca1ed0..d065051 100644 --- a/layouts/partials/default.html +++ b/layouts/partials/default.html @@ -30,7 +30,7 @@
-

{{ partial "title.html" . }}

+

{{ partial "title.html" . }}

{{ if .Content }}
{{ if isset .Params "status" }}