diff --git a/assets/css/style.css b/assets/css/style-gemini.css similarity index 77% rename from assets/css/style.css rename to assets/css/style-gemini.css index 659fe9a..f5218f0 100644 --- a/assets/css/style.css +++ b/assets/css/style-gemini.css @@ -2,23 +2,29 @@ {{ $P := .Site.Params -}} {{- with $P.sidebar -}} +{{- $width := (int (math.Max .width 240)) -}} +{{- $pad := (add $width .offset) }} .main { {{ if eq .position "right" }} flex-direction: row-reverse; {{- end }} } .header-inner { - width: {{ .width }}px; + width: {{ $width }}px; } .main-inner { - width: calc(100% - {{ add .width .offset }}px); + width: calc(100% - {{ $pad }}px); } .sidebar { - width: {{ .width }}px; + width: {{ $width }}px; visibility: inherit; } .sidebar-inner { - padding: {{ .padding }} 10px; + padding: {{ .padding }}px 10px; +} +.footer-inner { + padding-{{ .position }}: {{ $pad }}px; + width: calc(100% - 20px); } {{- end }} @@ -31,8 +37,11 @@ {{- end }} } -.back-to-top { - bottom: 30px; +.site-state-item { + border-left: 1px solid #eee; +} +.site-state-item:first-child { + border-left: none; } .rss-link { @@ -93,3 +102,7 @@ margin-top: 5px; {{- end }} } + +.back-to-top { + bottom: 30px; +} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index eaf5956..36f8918 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -38,11 +38,6 @@ {{ partial "partials/footer.html" . }} - -