Skip to content

Commit 4e0c6cb

Browse files
authored
Fix banner image scaling on Case Studies pages (#43056)
* image flow is synchronized with the responsive design. * Update single.html * Update quote.html * fixed banner image
1 parent 0c63fb8 commit 4e0c6cb

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

layouts/case-studies/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{{ else }}
55
{{ if .Params.new_case_study_styles }}
66
<!-- Heading -->
7-
<div class="banner {{ if .Params.use_gradient_overlay }}overlay{{ end }}" {{ if isset .Params "heading_background" }}style="background-image: url({{ .Params.heading_background }})"{{ end }}>
7+
<div class="banner {{ if .Params.use_gradient_overlay }}overlay{{ end }}" {{ if isset .Params "heading_background" }}style="background-image: url({{ .Params.heading_background }});"{{ end }}>
88
<h1>
99
<span class="heading">{{ .Params.title_prefix | default "CASE STUDY:" }}</span>
1010
{{- if isset .Params "heading_title_logo" -}}

layouts/shortcodes/case-studies/quote.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{ if .Get "image" }}
2-
<div class="quote banner {{ if $.Page.Params.use_gradient_overlay }}overlay{{ end }}" style="background-image: url({{ .Get "image" }})">
2+
<div class="quote banner {{ if $.Page.Params.use_gradient_overlay }}overlay{{ end }}" style="background-image: url({{ .Get "image" }});">
33
{{ else }}
44
<div class="quote banner">
55
{{ end }}

static/css/new-case-studies.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ h4[id]:before {
6666
padding-left: 11.9%;
6767
padding-right: 11.9%;
6868
font-size: 1.2em;
69-
background-size: 100% auto;
69+
background-position: center;
70+
background-size: cover;
7071
background-color: #666;
7172
background-repeat: no-repeat;
7273
}

0 commit comments

Comments
 (0)