diff options
author | Chip Senkbeil <rcsenkbe@us.ibm.com> | 2015-08-18 16:35:58 +0300 |
---|---|---|
committer | Chip Senkbeil <rcsenkbe@us.ibm.com> | 2015-08-18 16:35:58 +0300 |
commit | 0d922e015ffd1bb7242fde82ddcd0ab9b419f8c0 (patch) | |
tree | 2104f7c95a6dabbb3cccc395ee22597d4e967a35 | |
parent | 8075ca1030b5164fed64d23f9415a308f8d08627 (diff) |
Fixed Materialize row issue on homepage, renamed header.html to header-scrolling.html
-rw-r--r-- | layouts/index.html | 4 | ||||
-rw-r--r-- | layouts/partials/css.html | 12 | ||||
-rw-r--r-- | layouts/partials/header-scrolling.html (renamed from layouts/partials/header.html) | 0 |
3 files changed, 14 insertions, 2 deletions
diff --git a/layouts/index.html b/layouts/index.html index dc2339b..530038d 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -3,9 +3,9 @@ {{ partial "head.html" . }} <body class="blue-grey darken-2"> - <div class="row" style="margin-bottom: 0px;"> + <div class="row force-materialize-row" style="margin-bottom: 0px;"> {{ with .Site.Params.Header }} - {{ partial "header.html" . }} + {{ partial "header-scrolling.html" . }} {{ end }} {{ with .Site.Params.About }} diff --git a/layouts/partials/css.html b/layouts/partials/css.html index 8eb069c..95b45dd 100644 --- a/layouts/partials/css.html +++ b/layouts/partials/css.html @@ -3,6 +3,18 @@ <link rel="stylesheet" href="{{ .Site.BaseURL }}css/font-awesome.min.css"> <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> <style> +/* + * Force overriding of Flexbox Grid row properties that cause compatibility + * issues with Materialize row (opposite using Flexbox with Materialize + * properties is not an issue). + */ +.force-materialize-row { + display: block !important; + margin-left: auto !important; + margin-right: auto !important; + margin-bottom: 20px !important; +} + .cell { position: relative; border: 1px solid #FFF; diff --git a/layouts/partials/header.html b/layouts/partials/header-scrolling.html index a50952c..a50952c 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header-scrolling.html |