Skip to content

Commit

Permalink
fix: fix sass build errors, correct use case usage
Browse files Browse the repository at this point in the history
  • Loading branch information
frshwtr committed Jan 21, 2025
1 parent 3b8cd03 commit facabe1
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 25 deletions.
1 change: 0 additions & 1 deletion components/o-teaser/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

@import 'src/scss/variables';
@import 'src/scss/mixins';
@import 'src/scss/deprecated';

@import 'src/scss/elements/default';
@import 'src/scss/elements/images';
Expand Down
27 changes: 10 additions & 17 deletions components/o-teaser/src/scss/elements/_default.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,18 @@

/// Meta area and colouring styles
@mixin _oTeaserMeta {
font-family: oPrivateFoundationGet('o3-typography-use-case-body-base-font-family');
font-size: oPrivateFoundationGet('o3-typography-use-case-body-base-font-size');
font-weight: oPrivateFoundationGet('o3-typography-use-case-body-base-font-weight');
line-height: oPrivateFoundationGet('o3-typography-use-case-body-base-line-height');
font-family: oPrivateFoundationGet('o3-typography-use-case-detail-font-family');
font-size: oPrivateFoundationGet('o3-typography-use-case-detail-font-size');
font-weight: oPrivateFoundationGet('o3-typography-use-case-detail-font-weight');
line-height: oPrivateFoundationGet('o3-typography-use-case-detail-line-height');
color: oPrivateFoundationGet('o3-color-palette-claret');
margin-bottom: oPrivateSpacingByName('s3');
}

/// Tag styling.
/// Element should be a link, otherwise use _oTeaserMeta
@mixin _oTeaserTag {
font-family: oPrivateFoundationGet('o3-typography-use-case-body-base-font-family');
font-size: oPrivateFoundationGet('o3-typography-use-case-body-base-font-size');
font-weight: oPrivateFoundationGet('o3-typography-use-case-body-base-font-weight');
line-height: oPrivateFoundationGet('o3-typography-use-case-body-base-line-height');
font-weight: oPrivateFoundationGet('o3-font-weight-regular');
color: inherit;
text-decoration: none;
border: 0;
Expand All @@ -74,11 +71,7 @@
}

@mixin _oTeaserTagPrefix {
font-family: oPrivateFoundationGet('o3-typography-use-case-body-highlight-font-family');
font-size: oPrivateFoundationGet('o3-typography-use-case-body-highlight-font-size');
font-weight: oPrivateFoundationGet('o3-typography-use-case-body-highlight-font-weight');
line-height: oPrivateFoundationGet('o3-typography-use-case-body-highlight-line-height');
margin-right: 0.25em;
font-weight: oPrivateFoundationGet('o3-font-weight-semibold');
}

@mixin _oTeaserTagSuffix {
Expand All @@ -91,10 +84,10 @@

/// Styles for standfirst element
@mixin _oTeaserStandfirst {
font-family: oPrivateFoundationGet('o3-typography-use-case-body-base-font-family');
font-size: oPrivateFoundationGet('o3-typography-use-case-body-base-font-size');
font-weight: oPrivateFoundationGet('o3-typography-use-case-body-base-font-weight');
line-height: 20px;
font-family: oPrivateFoundationGet('o3-typography-use-case-detail-font-family');
font-size: oPrivateFoundationGet('o3-typography-use-case-detail-font-size');
font-weight: oPrivateFoundationGet('o3-typography-use-case-detail-font-weight');
line-height: oPrivateFoundationGet('o3-typography-use-case-detail-line-height');

@include _oTeaserLink();
color: $_o-teaser-muted;
Expand Down
6 changes: 3 additions & 3 deletions components/o-teaser/src/scss/themes/_small.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@
margin-bottom: oPrivateSpacingByName('s2');
}
.o-teaser__tag-prefix {
font-family: oPrivateFoundationGet('o3-typography-use-case-body-base-font-family');
font-size: oPrivateFoundationGet('o3-typography-use-case-body-base-font-size');
font-family: oPrivateFoundationGet('o3-typography-use-case-detail-font-family');
font-size: oPrivateFoundationGet('o3-typography-use-case-detail-font-size');
font-weight: oPrivateFoundationGet('o3-font-weight-semibold');
line-height: oPrivateFoundationGet('o3-typography-use-case-body-base-line-height');
line-height: oPrivateFoundationGet('o3-typography-use-case-detail-line-height');
color: oPrivateFoundationGet('o3-color-palette-claret-60');
margin-right: oPrivateSpacingByName('s1');
}
Expand Down
8 changes: 4 additions & 4 deletions components/o-topper/src/scss/_elements.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
}

@mixin _oTopperSummary {
font-family: oPrivateFoundationGet('o3-typography-use-case-body-lg-font-family');
font-size: oPrivateFoundationGet('o3-typography-use-case-body-lg-font-size');
font-weight: oPrivateFoundationGet('o3-typography-use-case-body-lg-font-weight');
line-height: oPrivateFoundationGet('o3-typography-use-case-body-lg-font-line-height');
font-family: oPrivateFoundationGet('o3-typography-use-case-body-base-font-family');
font-size: oPrivateFoundationGet('o3-typography-use-case-body-base-font-size');
font-weight: oPrivateFoundationGet('o3-typography-use-case-body-base-font-weight');
line-height: oPrivateFoundationGet('o3-typography-use-case-body-base-line-height');
> ul {
padding: 0 oPrivateSpacingByIncrement(5);
}
Expand Down

0 comments on commit facabe1

Please sign in to comment.