From 7dd6e532f2762edddcebf0ac7fcf34b40914455f Mon Sep 17 00:00:00 2001 From: RealOrangeOne Date: Fri, 18 Mar 2016 22:01:13 +0000 Subject: [PATCH] Style project thumbnails --- static/src/less/homepage.less | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/static/src/less/homepage.less b/static/src/less/homepage.less index 544d4e2..8ddcf97 100644 --- a/static/src/less/homepage.less +++ b/static/src/less/homepage.less @@ -108,9 +108,29 @@ body.index { } #project-thumbnails { - img { - max-width: 90%; + margin-top: @container-inset; + margin-bottom: @container-inset; + .thumbnail { + padding: 15px; + height: 300px; + @media (max-width: @screen-xs-max) { + height: 400px; + } + text-align: center; + img { + max-width: 100%; + @media (min-width: @screen-sm-min) { + max-height: 200px; + } + @media (max-width: @screen-xs-max) { + max-height: 275px; + } + } + h3 { + margin: 10px 0; + } } + } }