From 5c5f98322b4166a97112d7f9b8bf63e6a8fa4fb3 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Sun, 3 Oct 2021 19:31:56 -0500 Subject: [PATCH] Reorganize CSS --- assets/css/bobastyle.css | 71 +++++++++++++++++++++--------------- layouts/_default/baseof.html | 2 - layouts/partials/footer.html | 0 3 files changed, 42 insertions(+), 31 deletions(-) delete mode 100644 layouts/partials/footer.html diff --git a/assets/css/bobastyle.css b/assets/css/bobastyle.css index bbaa8c9..685139b 100644 --- a/assets/css/bobastyle.css +++ b/assets/css/bobastyle.css @@ -1,16 +1,4 @@ -/* Layout */ -.content, .footer { - padding: 20px; -} - -.header a, #navbar { - padding-left: 20px; -} - -.navbar-item { - margin-right: 5px; -} - +/* Post layout (in list pages) */ .post { padding-bottom: 20px; } @@ -23,6 +11,11 @@ padding-top: 10px; } +.post-title a { + color: inherit; + text-decoration: inherit; +} + .readmore { padding-top: 5px; } @@ -31,37 +24,49 @@ padding-left: 5px; } -body { - margin: auto; - max-width: 720px; -} - -* { - box-sizing: border-box; -} - - -/* Styling */ -#navbar h2 { - color: inherit; - text-decoration: inherit; +/* Header formatting (website title and article section headers) */ +.header a { + padding-left: 20px; } .header a, .section-header a { color: inherit; } -.post-title a { + + +/* Content formatting */ +.content { + padding: 20px; +} + + + +/* Navbar formatting */ +#navbar { + padding-left: 20px; +} + +#navbar h2 { color: inherit; text-decoration: inherit; } +.navbar-item { + margin-right: 5px; +} + + + +/* Basic elements */ body { background-color: #111; color: lightgray; font-family: sans-serif; + margin: auto; + max-width: 720px; } a { @@ -82,7 +87,13 @@ hr { color: #444; } -/* Breadcrumb Navigation */ +* { + box-sizing: border-box; +} + + + +/* Breadcrumb navigation */ ul.breadcrumb { padding 10px 16px; list-style: none; @@ -101,6 +112,8 @@ ul.breadcrumb li.active a { color: inherit; } + + /* Pagination */ .pagination { list-style: none; diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 6ec109c..5289770 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -26,8 +26,6 @@ {{ .Content }} {{- end }} - - {{- partial "footer.html" . -}} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html deleted file mode 100644 index e69de29..0000000