Skip to content

Commit

Permalink
refactor: remove font-smoothing (#3052)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeripeierSBB authored Sep 4, 2024
1 parent 252fc64 commit 489ef28
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 39 deletions.
1 change: 0 additions & 1 deletion src/elements/button/common/button-common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ $icon-only: ':where([data-slot-names~=icon], [icon-name]):not([data-slot-names~=

.sbb-action-base {
@include sbb.text-xs--bold;
@include sbb.font-smoothing;

// Reset for link variant
text-decoration: none;
Expand Down
2 changes: 0 additions & 2 deletions src/elements/core/styles/mixins/panel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@
}

@mixin panel-text {
@include typo.font-smoothing;

font-family: var(--sbb-typo-font-family);
font-size: var(--sbb-panel-font-size);
font-weight: 300;
Expand Down
30 changes: 0 additions & 30 deletions src/elements/core/styles/mixins/typo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
--sbb-title-margin-block-end: var(--sbb-spacing-responsive-s);
}

@include font-smoothing;

margin: 0;
margin-block: var(--sbb-title-margin-block-start) var(--sbb-title-margin-block-end);
font-family: var(--sbb-typo-font-family);
Expand Down Expand Up @@ -169,34 +167,6 @@
text-align: inherit;
}

// ----------------------------------------------------------------------------------------------------
// Typo: Font Smoothing Mixins
// ----------------------------------------------------------------------------------------------------

/**
* Better font rendering (on OS X)
* http://maximilianhoffmann.com/posts/better-font-rendering-on-osx
*
* Usage:
*
* .var_dark_on_light {
* @include font-smoothing;
* }
* .var_light_on_dark {
* @include font-smoothing-reset;
* }
*/

@mixin font-smoothing {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

@mixin font-smoothing-reset {
-webkit-font-smoothing: subpixel-antialiased;
-moz-osx-font-smoothing: auto;
}

@mixin placeholder {
color: var(--sbb-color-metal);
-webkit-text-fill-color: var(--sbb-color-metal);
Expand Down
2 changes: 0 additions & 2 deletions src/elements/tabs/tab-label/tab-label.scss
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@
color: var(--sbb-tab-label-color);
transition: color var(--sbb-tab-label-animation-duration) var(--sbb-tab-label-animation-easing);

@include sbb.font-smoothing;
@include sbb.ellipsis;
@include sbb.text-m--bold;

Expand All @@ -184,7 +183,6 @@
transition: color var(--sbb-tab-label-animation-duration) var(--sbb-tab-label-animation-easing);

@include sbb.text-m--regular;
@include sbb.font-smoothing;

:host(:not([data-slot-names~='amount'], [amount])) & {
display: none;
Expand Down
4 changes: 0 additions & 4 deletions src/elements/teaser-hero/teaser-hero.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@
padding: 0;
}

.sbb-teaser-hero__panel-link {
@include sbb.font-smoothing;
}

::slotted([slot='image']),
sbb-image {
will-change: filter;
Expand Down

0 comments on commit 489ef28

Please sign in to comment.