From f2601243981f3a18be0207f7d33bef5c2cb2628d Mon Sep 17 00:00:00 2001 From: liuboaibc Date: Sat, 20 Jun 2020 23:47:57 +0800 Subject: [PATCH] change footer style --- assets/scss/footer-tr.scss | 9 --------- assets/scss/footer.scss | 10 +++++++--- layouts/partials/css.html | 10 ---------- layouts/partials/footer.html | 2 +- layouts/partials/head.html | 2 +- 5 files changed, 9 insertions(+), 24 deletions(-) delete mode 100644 assets/scss/footer-tr.scss diff --git a/assets/scss/footer-tr.scss b/assets/scss/footer-tr.scss deleted file mode 100644 index 93b176a32..000000000 --- a/assets/scss/footer-tr.scss +++ /dev/null @@ -1,9 +0,0 @@ -@import 'footer'; - -.footer > .footer-main > .up-main { - .right-div { - & > ul > li { - margin-right: 30px; - } - } -} \ No newline at end of file diff --git a/assets/scss/footer.scss b/assets/scss/footer.scss index 4397c46c2..de77c09be 100644 --- a/assets/scss/footer.scss +++ b/assets/scss/footer.scss @@ -86,16 +86,20 @@ } .right-div { margin-left: 60px; + width: 732px; @media only screen and (max-width: $mobile-max-width) { + display: block; + width: 100%; margin-left: 0px; } & > ul { + @media only screen and (max-width: $mobile-max-width) { + justify-content: start; + } li { - display: inline-block; - margin-right: 60px; - vertical-align: top; + margin-right: 32px; @media only screen and (max-width: $mobile-max-width) { margin-top: 20px; diff --git a/layouts/partials/css.html b/layouts/partials/css.html index c0942420f..be14e87c7 100644 --- a/layouts/partials/css.html +++ b/layouts/partials/css.html @@ -5,11 +5,6 @@ {{ $common := resources.Get "scss/common.scss" | toCSS | minify | fingerprint }} -{{ if eq .Site.Language.Lang "tr" }} -{{ $footer := resources.Get "scss/footer-tr.scss" | toCSS | minify | fingerprint }} - -{{ end }} - {{ if .Params.minCss }} {{ range (split .Params.minCss ",")}} @@ -21,11 +16,6 @@ {{ end }} -{{ if eq .Site.Language.Lang "tr" }} -{{ $footer := resources.Get "scss/footer-tr.scss" | toCSS | minify | fingerprint }} - -{{ end }} - {{ if strings.HasSuffix .Permalink "404.html" }} {{ $style := resources.Get "scss/404.scss" | toCSS | minify | fingerprint }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 3b2ec0208..5de0f98c6 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -20,7 +20,7 @@
-