From 98bdaa04f53c432a62fc56d392255d27ae1bf35c Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Tue, 7 Jul 2015 04:16:04 +0500 Subject: Files img files --- web/sass-files/sass/partials/_files.scss | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'web/sass-files/sass/partials/_files.scss') diff --git a/web/sass-files/sass/partials/_files.scss b/web/sass-files/sass/partials/_files.scss index b01d2e157..16881e81c 100644 --- a/web/sass-files/sass/partials/_files.scss +++ b/web/sass-files/sass/partials/_files.scss @@ -13,6 +13,7 @@ vertical-align: top; position: relative; border: 1px solid #DDD; + @include clearfix; &.custom-file { width: 85px; height: 100px; @@ -31,8 +32,9 @@ } } .preview-img { - width:100%; - height:100%; + height: auto; + max-width: 100%; + max-height } .remove-preview { position: absolute; @@ -136,6 +138,7 @@ border: 1px solid #E2E2E2; background-color: #FFF; background-repeat: no-repeat; + background-position: left center; } a { text-decoration: none; -- cgit v1.2.3-1-g7c22