Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/chipsenkbeil/grid-side.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChip Senkbeil <rcsenkbe@us.ibm.com>2015-08-18 16:35:58 +0300
committerChip Senkbeil <rcsenkbe@us.ibm.com>2015-08-18 16:35:58 +0300
commit0d922e015ffd1bb7242fde82ddcd0ab9b419f8c0 (patch)
tree2104f7c95a6dabbb3cccc395ee22597d4e967a35
parent8075ca1030b5164fed64d23f9415a308f8d08627 (diff)
Fixed Materialize row issue on homepage, renamed header.html to header-scrolling.html
-rw-r--r--layouts/index.html4
-rw-r--r--layouts/partials/css.html12
-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