Skip to content
Snippets Groups Projects
Commit a0404946 authored by Ekaterina Kondareva's avatar Ekaterina Kondareva
Browse files

Merge branch 'NXSTAGE-617-Introduction_final_fixes' into 'development'

Padding fixes, image ratio fix

See merge request julkiset-sivut/design-system-lib!70
parents 214ccc0d 4ee60f96
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,9 @@
}
.hy-heading__introduction {
padding: 0;
@include breakpoint($wide) {
padding-top: 0;
}
}
}
......
......@@ -81,6 +81,10 @@
background: linear-gradient(90deg, var(--brand-main-light) 90%, var(--grayscale-white) 50%);
}
@include breakpoint($extrawide) {
background: linear-gradient(90deg, var(--brand-main-light) 85%, var(--grayscale-white) 50%);
}
.hy-introduction__content--with-image {
background: var(--brand-main-light);
}
......@@ -107,6 +111,10 @@
background: linear-gradient(90deg, var(--grayscale-black) 90%, var(--grayscale-white) 50%);
}
@include breakpoint($extrawide) {
background: linear-gradient(90deg, var(--grayscale-black) 85%, var(--grayscale-white) 50%);
}
.hy-introduction__content--with-image {
background: var(--grayscale-black);
}
......@@ -163,7 +171,7 @@
}
}
&__title {
.hy-heading__container.sc-hy-heading-wide {
.hy-heading__container {
@include breakpoint($wide) {
padding-top: 0;
}
......@@ -184,16 +192,22 @@
}
&__description {
@include font-size(18px, 28px);
@include font-size(16px, 24px);
@include font-weight($semibold);
color: var(--grayscale-black);
font-family: var(--main-font-family);
letter-spacing: -0.1px;
margin-bottom: 48px;
margin-bottom: 28px;
@include breakpoint($medium) {
@include font-size(18px, 28px);
margin-bottom: 38px;
}
@include breakpoint($wide) {
@include font-size(20px, 32px);
margin-bottom: 48px;
}
}
......
......@@ -58,7 +58,7 @@ export class HyIntroduction {
</div>
{this.imageUrl && (
<div class="hy-introduction__image">
<hy-image image-url={this.imageUrl} aspectRatioWidth={7} aspectRatioHeight={5} />
<hy-image image-url={this.imageUrl} aspectRatioWidth={3} aspectRatioHeight={2} />
</div>
)}
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment