From ad425a4d65dce19946b6591a6b82868d05d0faec Mon Sep 17 00:00:00 2001 From: Peter Blazejewicz Date: Fri, 10 Jun 2016 22:38:14 +0200 Subject: [PATCH] Add svg file workaround to site.css This commit adds custom css rule to site.css See: aspnet/Templates@bc93039 Thanks! --- templates/projects/web/wwwroot/css/site.css | 6 ++++++ templates/projects/web/wwwroot/css/site.min.css | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/templates/projects/web/wwwroot/css/site.css b/templates/projects/web/wwwroot/css/site.css index 6baa84da..5933ebab 100755 --- a/templates/projects/web/wwwroot/css/site.css +++ b/templates/projects/web/wwwroot/css/site.css @@ -35,6 +35,12 @@ textarea { padding-left: 0.5em; } +/* Make .svg files in the carousel display properly in older browsers */ +.carousel-inner .item img[src$=".svg"] +{ + width: 100%; +} + /* Hide/rearrange for smaller screens */ @media screen and (max-width: 767px) { /* Hide captions */ diff --git a/templates/projects/web/wwwroot/css/site.min.css b/templates/projects/web/wwwroot/css/site.min.css index c8f600ac..8c23178f 100755 --- a/templates/projects/web/wwwroot/css/site.min.css +++ b/templates/projects/web/wwwroot/css/site.min.css @@ -1 +1 @@ -body{padding-top:50px;padding-bottom:20px}.body-content{padding-left:15px;padding-right:15px}input,select,textarea{max-width:280px}.carousel-caption p{font-size:20px;line-height:1.4}.btn-bracketed::before{display:inline-block;content:"[";padding-right:.5em}.btn-bracketed::after{display:inline-block;content:"]";padding-left:.5em}@media screen and (max-width:767px){.carousel-caption{display:none}} +body{padding-top:50px;padding-bottom:20px}.body-content{padding-left:15px;padding-right:15px}input,select,textarea{max-width:280px}.carousel-caption p{font-size:20px;line-height:1.4}.btn-bracketed::before{display:inline-block;content:"[";padding-right:.5em}.btn-bracketed::after{display:inline-block;content:"]";padding-left:.5em}.carousel-inner .item img[src$=".svg"]{width:100%}@media screen and (max-width:767px){.carousel-caption{display:none}}