From 0bf9bbfcfb7b7cbcf6c4fd4a75a9f622926498b5 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 17 Jan 2017 22:03:25 +0000 Subject: [PATCH] restyle header --- content/pages/about.html | 12 +----------- theme/static/src/scss/index.scss | 12 +++++++++--- theme/templates/category.html | 13 ++----------- theme/templates/extras/header.html | 12 +++++++----- theme/templates/page.html | 2 +- 5 files changed, 20 insertions(+), 31 deletions(-) diff --git a/content/pages/about.html b/content/pages/about.html index 7722aae..f873c29 100644 --- a/content/pages/about.html +++ b/content/pages/about.html @@ -4,16 +4,6 @@ -
-
-
-
-

About Me

-
-
-
-
-
@@ -23,7 +13,7 @@ I work as a full stack developer, but I prefer working on servers and mobile apps.

-
+
diff --git a/theme/static/src/scss/index.scss b/theme/static/src/scss/index.scss index cdf148f..22dd28b 100644 --- a/theme/static/src/scss/index.scss +++ b/theme/static/src/scss/index.scss @@ -71,16 +71,18 @@ p a { padding: 1px 0; } -#header { +header#header { display: flex; align-items: center; + min-height: 50vh; + &.image .section-heading { @extend .text-shadow; } - @media screen and (min-height: $screen-xs-max) { - height: 40vh; + @media screen and (max-height: $screen-xs-max) { + height: 100vh; } } @@ -99,3 +101,7 @@ p a { } } } + +.github-card-container > iframe { + max-width: 100%; +} diff --git a/theme/templates/category.html b/theme/templates/category.html index a2f1216..e7cab7e 100644 --- a/theme/templates/category.html +++ b/theme/templates/category.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% block htmltitle %} - {{ category|title }} + {{ category.name|title }} {% endblock %} {% block metadata %} @@ -9,16 +9,7 @@ {% endblock %} {% block content %} -
-
-
-
-

{{ category.name|title }}

-
-
-
-
-
+ {% include 'extras/header.html' with instance=category %} {% if category.page.content %}
diff --git a/theme/templates/extras/header.html b/theme/templates/extras/header.html index f1538a7..033c1cf 100644 --- a/theme/templates/extras/header.html +++ b/theme/templates/extras/header.html @@ -1,6 +1,8 @@ - + diff --git a/theme/templates/page.html b/theme/templates/page.html index 2e16bbd..bc9f14f 100644 --- a/theme/templates/page.html +++ b/theme/templates/page.html @@ -9,8 +9,8 @@ {% endblock %} {% block content %} + {% include 'extras/header.html' with instance=page %} {% if not page.no_container %} - {% include 'extras/header.html' with instance=page %}
{{ page.content }}