Make the footer multilines view variable

This commit is contained in:
Gregory Trolliet 2020-04-28 08:40:17 +02:00
parent c76fa98be3
commit b5e4178324
5 changed files with 26 additions and 13 deletions

View File

@ -5,8 +5,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased] ## [Unreleased]
### Added
* Footer height in multilines view is now dependant of params.contact variable.
### Changed
* Export the CSS variable modification to a new partial *style.css*.
### Fixed ### Fixed
* Fix the navbar height * Fix the navbar height.
## [1.1.0] - 2020-04-28 ## [1.1.0] - 2020-04-28
### Added ### Added
@ -17,11 +23,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* **font_above**, used for font above *main* color, default to *white*. * **font_above**, used for font above *main* color, default to *white*.
### Changed ### Changed
* Change the height of the navbar, use vh now * Change the height of the navbar, use vh now.
### Fixed ### Fixed
* Viewport size on mobile * Viewport size on mobile.
## [1.0.0] - 2020-04-27 ## [1.0.0] - 2020-04-27
### Added ### Added
* First version of the theme * First version of the theme.

View File

@ -1,15 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="fr"> <html lang="fr">
{{- partial "head.html" . -}} {{- partial "head.html" . -}}
{{ if .Site.Params.colors }} {{- partial "style.html" . -}}
<style>
:root {
{{ range $key, $val := .Site.Params.colors }}
--{{ $key }}-color: {{ $val }};
{{ end }}
}
</style>
{{ end }}
<body> <body>
{{- partial "header.html" . -}} {{- partial "header.html" . -}}
{{- block "main" . }}{{- end }} {{- block "main" . }}{{- end }}

View File

@ -0,0 +1,13 @@
<style>
:root {
{{ if .Site.Params.colors }}
{{ range $key, $val := .Site.Params.colors }}
--{{ $key }}-color: {{ $val }};
{{ end }}
{{ end }}
{{ if .Site.Params.contact }}
--footer-height-block: {{ mul (add (len .Site.Params.contact) 2) 2 }}em;
{{ end }}
}
</style>

View File

@ -11,6 +11,7 @@
--footer-height-inline: 4em; --footer-height-inline: 4em;
--footer-height-block: 8em; --footer-height-block: 8em;
--navbar-height: 8vh; --navbar-height: 8vh;
} }

View File

@ -29,6 +29,7 @@
} }
.front-screen { .front-screen {
margin-left: 1em; margin-left: 1em;
margin-right: 1em;
padding-left: 0; padding-left: 0;
} }
.section { .section {