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 <chip.senkbeil@gmail.com>2015-09-27 22:11:08 +0300
committerChip Senkbeil <chip.senkbeil@gmail.com>2015-09-27 22:11:08 +0300
commit563ac18e28fb3475476ef006da6c17c4f45c14fe (patch)
treea17e1729394a4058bd77f847dc80fa35571f8e54
parent7d3b4b469cc6823ec4584611201ebb230c1601a2 (diff)
Added background color (white) for transparent images on projects
-rw-r--r--layouts/partials/project/item.html4
-rw-r--r--static/css/main.css4
2 files changed, 7 insertions, 1 deletions
diff --git a/layouts/partials/project/item.html b/layouts/partials/project/item.html
index cdd28f9..080ca4d 100644
--- a/layouts/partials/project/item.html
+++ b/layouts/partials/project/item.html
@@ -10,7 +10,9 @@
<noscript>
<a href="{{ $link }}">
<div class="project-container rounded-corners z-depth-1">
- <img src="{{ $image }}" class="fill-container-width rounded-corners-top" />
+ <div class="project-container-image rounded-corners-top">
+ <img src="{{ $image }}" class="fill-container-width rounded-corners-top" />
+ </div>
<div class="rounded-corners-bottom center-text project-container-title">
<h4 class="white-text">{{ $title }}</h4>
{{ partial "extra/categories.html" . }}
diff --git a/static/css/main.css b/static/css/main.css
index 675b5aa..ae7545a 100644
--- a/static/css/main.css
+++ b/static/css/main.css
@@ -54,6 +54,10 @@
/* Contains the project image and title */
.project-container {}
+.project-container-image {
+ background-color: #FFFFFF;
+}
+
.project-container-title {
padding: 10px;
background-color: #455A64;