Skip to content

Commit

Permalink
Reorganize CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
BBaoVanC committed Oct 4, 2021
1 parent 165e6a5 commit 5c5f983
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 28 deletions.
65 changes: 39 additions & 26 deletions assets/css/bobastyle.css
Original file line number Diff line number Diff line change
@@ -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;
}
Expand All @@ -23,6 +11,11 @@
padding-top: 10px;
}

.post-title a {
color: inherit;
text-decoration: inherit;
}

.readmore {
padding-top: 5px;
}
Expand All @@ -31,37 +24,49 @@
padding-left: 5px;
}

body {
margin: auto;
max-width: 720px;


/* Header formatting (website title and article section headers) */
.header a {
padding-left: 20px;
}

* {
box-sizing: border-box;
.header a, .section-header a {
color: inherit;
}



/* Content formatting */
.content {
padding: 20px;
}



/* Navbar formatting */
#navbar {
padding-left: 20px;
}

/* Styling */
#navbar h2 {
color: inherit;
text-decoration: inherit;
}

.header a, .section-header a {
color: inherit;
.navbar-item {
margin-right: 5px;
}

.post-title a {
color: inherit;
text-decoration: inherit;
}


/* Basic elements */
body {
background-color: #111;
color: lightgray;
font-family: sans-serif;
margin: auto;
max-width: 720px;
}

a {
Expand All @@ -82,7 +87,13 @@ hr {
color: #444;
}

/* Breadcrumb Navigation */
* {
box-sizing: border-box;
}



/* Breadcrumb navigation */
ul.breadcrumb {
padding 10px 16px;
list-style: none;
Expand All @@ -101,6 +112,8 @@ ul.breadcrumb li.active a {
color: inherit;
}



/* Pagination */
.pagination {
list-style: none;
Expand Down
2 changes: 0 additions & 2 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ <h2 class="header">
{{ .Content }}
{{- end }}
</div>

{{- partial "footer.html" . -}}
</body>

</html>
Empty file removed layouts/partials/footer.html
Empty file.

0 comments on commit 5c5f983

Please sign in to comment.