From f02ed876363ba524bb8012b9edb37b02072894fb Mon Sep 17 00:00:00 2001 From: David Kebler Date: Fri, 7 Apr 2017 01:40:29 -0700 Subject: [PATCH] modals working --- layouts/index.html | 1 + layouts/partials/head/css.html | 7 ++- layouts/partials/head/styles.html | 30 +++++++++++- layouts/partials/js.html | 6 +-- layouts/partials/modals.html | 12 +++++ layouts/partials/navbar.html | 4 +- layouts/partials/sections.html | 7 ++- layouts/partials/services.html | 58 ---------------------- layouts/shortcodes/link.html | 6 +-- static/css/base.css | 1 - static/css/navbar.css | 2 +- static/css/page.css | 80 +++++++++++++++++++++++++++---- static/css/responsive.css | 26 +++++++++- static/js/docready.js | 2 + static/js/page.js | 41 +++++++++++++++- 15 files changed, 197 insertions(+), 86 deletions(-) create mode 100644 layouts/partials/modals.html delete mode 100644 layouts/partials/services.html 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 @@