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).
## [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
* Fix the navbar height
* Fix the navbar height.
## [1.1.0] - 2020-04-28
### 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*.
### Changed
* Change the height of the navbar, use vh now
* Change the height of the navbar, use vh now.
### Fixed
* Viewport size on mobile
* Viewport size on mobile.
## [1.0.0] - 2020-04-27
### Added
* First version of the theme
* First version of the theme.

View file

@ -1,15 +1,7 @@
<!DOCTYPE html>
<html lang="fr">
{{- partial "head.html" . -}}
{{ if .Site.Params.colors }}
<style>
:root {
{{ range $key, $val := .Site.Params.colors }}
--{{ $key }}-color: {{ $val }};
{{ end }}
}
</style>
{{ end }}
{{- partial "style.html" . -}}
<body>
{{- partial "header.html" . -}}
{{- 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-block: 8em;
--navbar-height: 8vh;
}

View file

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