-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: adapt lyne tokens change (#2582)
- Loading branch information
1 parent
3b8844c
commit 94bf4f0
Showing
9 changed files
with
44 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
@use './core/font-face'; | ||
@use './mixins/font-face'; | ||
|
||
@include font-face.font-declarations-full; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,40 @@ | ||
@use 'node_modules/@sbb-esta/lyne-design-tokens/dist/scss/sbb-variables_css--mixin.scss' as | ||
sbb-css-tokens; | ||
@use './_index' as sbb; | ||
@use './normalize'; | ||
@use './typography'; | ||
@use './core/mediaqueries'; | ||
@use './core/functions'; | ||
|
||
// Core variables, are always needed | ||
:root { | ||
// Core variables for :root context | ||
@include sbb.lyne-components-css-vars; | ||
// Grab css vars defined by `@sbb-esta/lyne-design-tokens` package | ||
@include sbb-css-tokens.lyne-design-tokens-css-variables; | ||
|
||
// Train formation | ||
--sbb-train-formation-wagon-width: #{functions.px-to-rem-build(80)}; | ||
--sbb-train-formation-wagon-height: #{functions.px-to-rem-build(40)}; | ||
--sbb-train-formation-wagon-border-radius: #{functions.px-to-rem-build(12)}; | ||
--sbb-train-formation-wagon-gap: var(--sbb-spacing-fixed-1x); | ||
|
||
// Header | ||
--sbb-header-height: var(--sbb-spacing-fixed-14x); | ||
|
||
// Time Input | ||
--sbb-time-input-max-width: #{functions.px-to-rem-build(58)}; | ||
|
||
// Overlay | ||
--sbb-overlay-default-z-index: 1000; | ||
|
||
// Infinity border radius, can be used to achieve rounded border on start and end | ||
// TODO: Check if infinity is supported by all browsers (e.g. Firefox) -> calc(1em * infinity); | ||
--sbb-border-radius-infinity: 10000000em; | ||
|
||
@include mediaqueries.mq($from: medium) { | ||
// Header | ||
--sbb-header-height: var(--sbb-spacing-fixed-24x); | ||
|
||
// Time Input | ||
--sbb-time-input-max-width: #{functions.px-to-rem-build(65)}; | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters