Skip to content

Commit 516813d

Browse files
authored
Merge pull request #49598 from shurup/css-improve-case-studies
Improve the styles for case studies' pages
2 parents aef5138 + 9b372e7 commit 516813d

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

assets/scss/case_studies.scss

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ body.cid-casestudies {
7070
background-repeat: no-repeat;
7171
}
7272

73+
.banner h2 {
74+
color: #fff;
75+
}
76+
7377
.banner * {
7478
position: relative;
7579
}
@@ -213,15 +217,16 @@ body.td-section.cid-casestudies {
213217
}
214218

215219
.video-quote, .case-study-video {
216-
max-width: calc(clamp(40em, 50vw + 20em, 100vw - 4em));
217-
margin-left: auto;
218-
margin-right: auto;
220+
width: 50%;
219221
padding-top: 1em;
220222
padding-bottom: 1em;
223+
box-sizing: border-box;
224+
text-align: center;
221225
iframe {
222226
display: block;
223227
margin-left: auto;
224-
margin-top: 1.5em;
228+
width: 90%;
229+
aspect-ratio: 16 / 9;
225230
}
226231
}
227232

@@ -269,12 +274,17 @@ body.td-section.cid-casestudies {
269274
}
270275
}
271276

272-
@media (max-width: 1000px) {
277+
@media (max-width: 1200px) {
273278
body.td-section.cid-casestudies {
274279
.case-study {
275280
width: initial;
276281
flex-basis: 90vw;
277282
margin-bottom: 40px;
278283
}
284+
285+
.video-quote, .case-study-video {
286+
width: initial;
287+
flex-basis: 90%;
288+
}
279289
}
280290
}

layouts/case-studies/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<section class="case-study-header">
33
<div class="banner {{ if .Params.use_gradient_overlay }}overlay{{ end }}" {{ if isset .Params "heading_background" }}style="background-image: url({{ .Params.heading_background }});"{{ end }}>
44
<h2>
5-
{{ .Params.title_prefix | default ( T "case_study_prefix" ) }}
5+
{{- .Params.title_prefix | default ( T "case_study_prefix" ) -}}&nbsp;
66
{{- if isset .Params "heading_title_logo" -}}
77
<img class="heading-logo" src="{{ .Params.heading_title_logo}}" />
88
{{- else if isset .Params "heading_title_text" -}}

static/css/gridpage.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ p.attrib {
7474
background: #f9f9f9;
7575
height: auto;
7676
/*height: 340px;*/
77+
display: flex;
78+
flex-wrap: wrap;
79+
align-items: center;
7780
}
7881

7982
.gridPage #video .main-section {

0 commit comments

Comments
 (0)