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 */ /* Post layout (in list pages) */
.content, .footer {
padding: 20px;
}
.header a, #navbar {
padding-left: 20px;
}
.navbar-item {
margin-right: 5px;
}
.post { .post {
padding-bottom: 20px; padding-bottom: 20px;
} }
@ -23,6 +11,11 @@
padding-top: 10px; padding-top: 10px;
} }
.post-title a {
color: inherit;
text-decoration: inherit;
}
.readmore { .readmore {
padding-top: 5px; padding-top: 5px;
} }
@ -31,37 +24,49 @@
padding-left: 5px; padding-left: 5px;
} }
body {
margin: auto;
max-width: 720px;
}
* {
box-sizing: border-box;
}
/* Header formatting (website title and article section headers) */
.header a {
/* Styling */ padding-left: 20px;
#navbar h2 {
color: inherit;
text-decoration: inherit;
} }
.header a, .section-header a { .header a, .section-header a {
color: inherit; color: inherit;
} }
.post-title a {
/* Content formatting */
.content {
padding: 20px;
}
/* Navbar formatting */
#navbar {
padding-left: 20px;
}
#navbar h2 {
color: inherit; color: inherit;
text-decoration: inherit; text-decoration: inherit;
} }
.navbar-item {
margin-right: 5px;
}
/* Basic elements */
body { body {
background-color: #111; background-color: #111;
color: lightgray; color: lightgray;
font-family: sans-serif; font-family: sans-serif;
margin: auto;
max-width: 720px;
} }
a { a {
@ -82,7 +87,13 @@ hr {
color: #444; color: #444;
} }
/* Breadcrumb Navigation */ * {
box-sizing: border-box;
}
/* Breadcrumb navigation */
ul.breadcrumb { ul.breadcrumb {
padding 10px 16px; padding 10px 16px;
list-style: none; list-style: none;
@ -101,6 +112,8 @@ ul.breadcrumb li.active a {
color: inherit; color: inherit;
} }
/* Pagination */ /* Pagination */
.pagination { .pagination {
list-style: none; list-style: none;

View File

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