From fc058814c7681c7a01ca596364f4dffad44025da Mon Sep 17 00:00:00 2001 From: RealOrangeOne Date: Thu, 14 Jul 2016 16:52:37 +0100 Subject: [PATCH] force portfolio box too show if no image --- theme/static/src/scss/homepage.scss | 10 ---------- theme/static/src/scss/index.scss | 14 ++++++++++++++ theme/templates/category.html | 6 +++++- 3 files changed, 19 insertions(+), 11 deletions(-) diff --git a/theme/static/src/scss/homepage.scss b/theme/static/src/scss/homepage.scss index b7dfbd5..f7cac4f 100644 --- a/theme/static/src/scss/homepage.scss +++ b/theme/static/src/scss/homepage.scss @@ -1,13 +1,3 @@ -.portfolio-box { - background-color: $brand-grey-dark; - max-width: initial; - min-height: 300px; - - .portfolio-box-caption { - background-color: transparentize($brand-orange, 0.3); - } -} - header { min-height: 100%; } diff --git a/theme/static/src/scss/index.scss b/theme/static/src/scss/index.scss index 87cadf8..4c2e372 100644 --- a/theme/static/src/scss/index.scss +++ b/theme/static/src/scss/index.scss @@ -51,3 +51,17 @@ p a { margin: 10px 0; width: 100%; } + +.portfolio-box { + background-color: $brand-grey-dark; + max-width: initial; + min-height: 300px; + + &.show .portfolio-box-caption { + opacity: 1; + } + + .portfolio-box-caption { + background-color: transparentize($brand-orange, 0.2); + } +} diff --git a/theme/templates/category.html b/theme/templates/category.html index 3acc878..bbd76a7 100644 --- a/theme/templates/category.html +++ b/theme/templates/category.html @@ -34,7 +34,11 @@
{% for article in dates %}