Improve Case Studies CSS

Signed-off-by: Dmitry Shurupov <dmitry.shurupov@palark.com>
pull/49598/head
Dmitry Shurupov 2025-01-30 13:42:05 +07:00
parent ff5a1a221c
commit 9b372e733a
No known key found for this signature in database
3 changed files with 19 additions and 6 deletions

View File

@ -70,6 +70,10 @@ body.cid-casestudies {
background-repeat: no-repeat;
}
.banner h2 {
color: #fff;
}
.banner * {
position: relative;
}
@ -213,15 +217,16 @@ body.td-section.cid-casestudies {
}
.video-quote, .case-study-video {
max-width: calc(clamp(40em, 50vw + 20em, 100vw - 4em));
margin-left: auto;
margin-right: auto;
width: 50%;
padding-top: 1em;
padding-bottom: 1em;
box-sizing: border-box;
text-align: center;
iframe {
display: block;
margin-left: auto;
margin-top: 1.5em;
width: 90%;
aspect-ratio: 16 / 9;
}
}
@ -269,12 +274,17 @@ body.td-section.cid-casestudies {
}
}
@media (max-width: 1000px) {
@media (max-width: 1200px) {
body.td-section.cid-casestudies {
.case-study {
width: initial;
flex-basis: 90vw;
margin-bottom: 40px;
}
.video-quote, .case-study-video {
width: initial;
flex-basis: 90%;
}
}
}

View File

@ -2,7 +2,7 @@
<section class="case-study-header">
<div class="banner {{ if .Params.use_gradient_overlay }}overlay{{ end }}" {{ if isset .Params "heading_background" }}style="background-image: url({{ .Params.heading_background }});"{{ end }}>
<h2>
{{ .Params.title_prefix | default ( T "case_study_prefix" ) }}
{{- .Params.title_prefix | default ( T "case_study_prefix" ) -}}&nbsp;
{{- if isset .Params "heading_title_logo" -}}
<img class="heading-logo" src="{{ .Params.heading_title_logo}}" />
{{- else if isset .Params "heading_title_text" -}}

View File

@ -74,6 +74,9 @@ p.attrib {
background: #f9f9f9;
height: auto;
/*height: 340px;*/
display: flex;
flex-wrap: wrap;
align-items: center;
}
.gridPage #video .main-section {