Reorganize CSS

This commit is contained in:
BBaoVanC 2021-10-03 19:31:56 -05:00
parent 165e6a580e
commit 5c5f98322b
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
3 changed files with 42 additions and 31 deletions

View File

@ -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;

View File

@ -26,8 +26,6 @@
{{ .Content }}
{{- end }}
</div>
{{- partial "footer.html" . -}}
</body>
</html>