diff --git a/layouts/index.html b/layouts/index.html index de53e8d..1d1a353 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -10,6 +10,7 @@ {{ partial "hero.html" . }} {{ end }} {{ partial "sections.html" . }} +{{ partial "modals.html" . }} {{ partial "js.html" . }} diff --git a/layouts/partials/head/css.html b/layouts/partials/head/css.html index a78913e..c4ceb1a 100644 --- a/layouts/partials/head/css.html +++ b/layouts/partials/head/css.html @@ -2,8 +2,13 @@ + + + - + + + diff --git a/layouts/partials/head/styles.html b/layouts/partials/head/styles.html index eb86ba3..a591bd9 100644 --- a/layouts/partials/head/styles.html +++ b/layouts/partials/head/styles.html @@ -42,8 +42,6 @@ } {{ end }} - - {{ end }} /* end navbar */ {{ with .hero }} @@ -193,6 +191,34 @@ {{ end }} /* end sections */ + + {{ with .modal }} + + {{ with .font }} + .section__container--modal { font-family:{{ . }},Helvetica,Arial,sans-serif; } + {{ end }} + + {{ with .color }} + .section__container--modal { color: {{ . }}; } + {{ end }} + + {{ with .bg_color }} + .section__container--modal { background-color: {{ . }}; } + {{ end }} + + {{ with .headline_size }} + .section__headline--modal > h1 { font-size: {{ . }}em; } + {{ end }} + + {{ with .text_size }} + .section__container--modal { font-size: {{ . }}em; } + {{ end }} + + + + {{ end }} /*end modal */ + + {{ with .buttons }} {{ with .odd }} diff --git a/layouts/partials/js.html b/layouts/partials/js.html index 3c830c6..5dca0bc 100644 --- a/layouts/partials/js.html +++ b/layouts/partials/js.html @@ -3,14 +3,12 @@ - - + + - - diff --git a/layouts/partials/modals.html b/layouts/partials/modals.html new file mode 100644 index 0000000..cf1e043 --- /dev/null +++ b/layouts/partials/modals.html @@ -0,0 +1,12 @@ +{{ range where .Site.RegularPages "Section" "modal" }} + +{{ end }} diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html index 0f3db17..29f61aa 100644 --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -7,7 +7,7 @@