diff --git a/assets/css/_main.scss b/assets/css/_main.scss index 4fd1b1e31..43d1423a8 100644 --- a/assets/css/_main.scss +++ b/assets/css/_main.scss @@ -51,7 +51,7 @@ body { } } -.section { +.content, .section { padding: calc(var(--feather-grid-mega) * 2) 0; } @@ -348,7 +348,7 @@ br { /* Less than 600px */ @media (max-width: 600px) { - .section { + .content, .section { padding: calc(var(--feather-grid-mega) * 1.5) 0; } @@ -356,3 +356,9 @@ br { margin: 0 var(--feather-grid-medium); } } + +@media (max-width: 480px) { + .content, .section { + padding: var(--feather-grid-large) 0; + } +} diff --git a/assets/css/index.scss b/assets/css/index.scss index 5fc3c024b..ca97cdd57 100644 --- a/assets/css/index.scss +++ b/assets/css/index.scss @@ -1,5 +1,9 @@ /* Styles specific to home page */ +.content { + padding: 0; +} + .grey { background-color: var(--tw-color-gray-faint); diff --git a/assets/css/memberships.scss b/assets/css/memberships.scss index 6767ba4f0..bd8885db6 100644 --- a/assets/css/memberships.scss +++ b/assets/css/memberships.scss @@ -27,12 +27,6 @@ } } -@media (max-width: 480px) { - .section { - padding: var(--feather-grid-large) 0; - } -} - /* Membership card elements that are consistent throughout all screen sizes */ .membership { diff --git a/assets/css/projects.scss b/assets/css/projects.scss index 52e662bc8..a8fe85962 100644 --- a/assets/css/projects.scss +++ b/assets/css/projects.scss @@ -7,12 +7,6 @@ --search-bar-width: 450px; } -.all-projects { - padding-top: var(--feather-grid-mega); - padding-bottom: calc(var(--feather-grid-mega) * 2); -} - - .project-card { position: relative; padding: var(--feather-grid-mega) calc(var(--feather-grid-mega) * 1.5); diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 94b7931a7..b5c107fe2 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -8,7 +8,7 @@ {{ partial "nav.html" . }} -
+
@@ -19,8 +19,10 @@
- {{ block "main" . }}{{ end }} -
+
+ {{ block "content" . }}{{ end }} +
+ {{ partial "footer.html" . }} diff --git a/layouts/_default/memberships.html b/layouts/_default/memberships.html index 9eb8bac3c..36e04c549 100644 --- a/layouts/_default/memberships.html +++ b/layouts/_default/memberships.html @@ -1,5 +1,4 @@ -{{ define "main" }} -
+{{ define "content" }}
{{ range $.Site.Data.memberships }}
@@ -29,5 +28,4 @@

{{ .name }}

{{ end }}
-
{{ end }} diff --git a/layouts/_default/projects.html b/layouts/_default/projects.html index e3071ddbc..fdcd78cf5 100644 --- a/layouts/_default/projects.html +++ b/layouts/_default/projects.html @@ -6,7 +6,7 @@

Projects

{{ end }} -{{ define "main" }} +{{ define "content" }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index e0e83081c..f3e1485a3 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,3 +1,5 @@ -{{ define "main" }} - {{ .Content }} +{{ define "content" }} +
+ {{ .Content }} +
{{ end }} diff --git a/layouts/index.html b/layouts/index.html index 12ca9da04..88fcc748e 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -5,6 +5,6 @@

Open Source is Happening

{{ end }} -{{ define "main" }} +{{ define "content" }} {{ .Content }} {{ end }}