Resolve some confusion between margin and padding

This commit is contained in:
BBaoVanC 2021-10-07 16:52:47 -05:00
parent 93b8c26323
commit 76b5f58674
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A

View File

@ -1,9 +1,9 @@
/* Post layout (in list pages) */ /* Post layout (in list pages) */
.post { .post {
padding-bottom: 20px; margin-bottom: 40px;
} }
.post-title, .post-title h1 { .post-title {
margin-bottom: 10px; margin-bottom: 10px;
} }
@ -13,19 +13,19 @@
} }
.post-description { .post-description {
padding-top: 10px; margin-top: 10px;
} }
.post-image { .post-image {
padding-top: 15px; margin-top: 15px;
} }
.readmore { .readmore {
padding-top: 5px; margin-top: 5px;
} }
.tags { .tags {
padding-left: 10px; margin-left: 10px;
} }
.tag { .tag {
@ -33,7 +33,7 @@
} }
.rss-link { .rss-link {
padding-left: 5px; margin-left: 5px;
} }
h1 svg.icon { h1 svg.icon {
@ -44,8 +44,8 @@ h1 svg.icon {
/* Header formatting (website title and article section headers) */ /* Header formatting (website title and article section headers) */
.header a { .top {
padding-left: 20px; margin-left: 20px;
} }
.header a, .section-header a { .header a, .section-header a {
@ -62,10 +62,6 @@ h1 svg.icon {
/* Navbar formatting */ /* Navbar formatting */
#navbar {
padding-left: 20px;
}
#navbar h2 { #navbar h2 {
color: inherit; color: inherit;
text-decoration: inherit; text-decoration: inherit;
@ -106,7 +102,6 @@ a:hover {
blockquote { blockquote {
border-left: 5px solid #333; border-left: 5px solid #333;
padding-left: 10px;
} }
hr { hr {