From 9406afe1f51b0e18e73d33b2abda05b600d7a88a Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 11 Oct 2016 22:39:22 -0400 Subject: [PATCH] styling for various layouts/pages --- _layouts/article.html | 16 +++++++-- _layouts/category.html | 40 ++++++++++++++++----- _layouts/default.html | 26 ++++++++++++-- css/styles.scss | 80 ++++++++++++++++++++++++++++++++++++++---- index.html | 16 ++++----- search/index.html | 41 ++++++++++++++++++---- 6 files changed, 185 insertions(+), 34 deletions(-) diff --git a/_layouts/article.html b/_layouts/article.html index c9fd12c6..bae7f65a 100644 --- a/_layouts/article.html +++ b/_layouts/article.html @@ -2,6 +2,18 @@ layout: default --- -
- {{content}} +
+ +
+
+

{{page.title}}

+
+
+ {{content}} +
+
diff --git a/_layouts/category.html b/_layouts/category.html index a9b36081..488e5627 100644 --- a/_layouts/category.html +++ b/_layouts/category.html @@ -2,13 +2,35 @@ layout: default --- -
-

{{page.title}}

-
    - {% for article in site.articles %} - {% if article.category == page.title %} -
  1. {{article.title}}
  2. - {% endif %} - {% endfor %} -
+
+
+
+
+ + + + +
+
+
+
+
+ +
+
+

{{page.title}}

+
+
+
    + {% for article in site.articles %} + {% if article.category == page.title %} +
  1. {{article.title}}
  2. + {% endif %} + {% endfor %} +
+
+
diff --git a/_layouts/default.html b/_layouts/default.html index 598488d8..53233ab1 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -51,8 +51,30 @@ {{content}}
- © Copyright 2015 - {{'now' | date: "%Y"}}
- 8bit Solutions LLC +
+ + © Copyright 2015 - {{ 'now' | date: "%Y" }}
+ 8bit Solutions LLC +
diff --git a/css/styles.scss b/css/styles.scss index 7400402f..6ca66453 100644 --- a/css/styles.scss +++ b/css/styles.scss @@ -22,10 +22,15 @@ html { } body { - margin-bottom: 60px; + margin-bottom: 160px; padding-top: 51px; font-family: $font-family-sans-serif; font-size: 15px; + background-color: #fafafa; + + @media(min-width:768px) { + margin-bottom: 101px; + } } h1, h2, h3, h4, h5 { @@ -55,15 +60,17 @@ a { .navbar-brand { font-family: $headings-font-family; - - .navbar-nav > li > a { - color: white; - } } .navbar-brand, .navbar-nav > li > a { color: white; } + + .navbar-nav > li > a { + &:hover, &:focus { + text-decoration: underline; + } + } } .search-header { @@ -77,8 +84,67 @@ footer { position: absolute; bottom: 0; width: 100%; - height: 60px; + height: 160px; background-color: $brand-dark-accent; color: white; - padding: 8px 0; + padding: 30px 0; + + @media(min-width:768px) { + height: 101px; + + .container { + position: relative; + + .social-buttons { + position: absolute; + right: 0; + top: -7px; + } + } + } +} + +.container-content { + margin-top: 20px; +} + +.btn-social { + display: inline-block; + height: 50px; + width: 50px; + border: 2px solid white; + border-radius: 100%; + text-align: center; + font-size: 20px; + line-height: 45px; +} + +.btn-outline { + color: white; + font-size: 20px; + border: solid 2px white; + background: transparent; + transition: all 0.3s ease-in-out; + + &:hover, + &:focus, + &:active, + &.active { + color: $brand-primary; + background: white; + border: solid 2px white; + } +} + + +.panel-articles { + ul, ol { + margin-bottom: 0; + margin-left: 0; + padding-left: 20px; + } +} + +.breadcrumb { + border: 1px solid #ddd; } diff --git a/index.html b/index.html index baba8028..31306850 100644 --- a/index.html +++ b/index.html @@ -20,9 +20,9 @@ title: Help, FAQ, and Support
{% for category in site.categories %} {% if category.featured == true %} -
+
-

{{category.title}}

+

{{category.title}}

    @@ -38,11 +38,11 @@ title: Help, FAQ, and Support {% endfor %}
-
+
-

Categories

+

Categories

-
+
    {% for category in site.categories %}
  • {{category.title}}
  • @@ -50,11 +50,11 @@ title: Help, FAQ, and Support
-
+
-

Popular

+

Popular

-
+
    {% for article in site.articles %} {% if article.popular == true %} diff --git a/search/index.html b/search/index.html index 42ccfcf0..052f403d 100644 --- a/search/index.html +++ b/search/index.html @@ -3,9 +3,34 @@ layout: default title: Search Results --- -
    -
      +
      +
      +
      +
      + + + + +
      +
      +
      +
      + +
      +
      +

      {{page.title}} for ""

      +
      +
      +
        +
        +
        +
        +