Skip to content

Commit

Permalink
Merge pull request #30 from mirus-ua/fix-centerTheme-footer-issue
Browse files Browse the repository at this point in the history
Copyright footer is not centered
  • Loading branch information
mirus-ua authored Dec 22, 2024
2 parents 588095c + 90c0a89 commit 10e3658
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 4 additions & 2 deletions assets/css/footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
padding: 40px 0;
flex-grow: 0;
opacity: .5;
display: flex;
justify-content: $centerTheme;

&__inner {
display: flex;
Expand All @@ -24,9 +26,9 @@
display: flex;
flex-flow: row wrap;
flex: 1;
align-items: center;
align-items: $centerTheme;
font-size: 1rem;
justify-content: center;
justify-content: $centerTheme;

&--user {
margin: auto;
Expand Down
4 changes: 3 additions & 1 deletion assets/css/style.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$centerTheme: {{ if $.Site.Params.CenterTheme }}center{{ else }}flex-start{{ end }};

@import "variables";

@import "font";
Expand All @@ -17,4 +19,4 @@
@import "syntax";
@import "code";
@import "terms";
@import "gist";
@import "gist";
3 changes: 2 additions & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@

{{ template "_internal/google_analytics.html" . }}

{{ $defaultStyles := resources.Get "css/style.scss" }}
{{ $defaultStylesTemplate := resources.Get "css/style.scss" }}
{{ $defaultStyles := $defaultStylesTemplate | resources.ExecuteAsTemplate "main.scss" .}}
<!-- Local Theme Variables -->
{{ if and (isset .Params "color") (not (eq .Params.color "")) }}
{{ $localColorCss := resources.Get (printf "css/color/%s.scss" .Params.color) }}
Expand Down

0 comments on commit 10e3658

Please sign in to comment.