-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(internet-header): expose CSS custom properties
- Loading branch information
1 parent
10b906c
commit a03c6be
Showing
8 changed files
with
72 additions
and
12 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@use 'utils/mixins'; | ||
@use 'utils/variables'; | ||
|
||
:root { | ||
@include mixins.set-custom-property(--post-meta-header-height, variables.$meta-header-height); | ||
@include mixins.set-custom-property(--post-header-height, variables.$header-height); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
$meta-header-height: ( | ||
xs: 0px, | ||
sm: 0px, | ||
rg: 0px, | ||
md: 0px, | ||
lg: 3rem, | ||
xl: 3rem, | ||
xxl: 3rem, | ||
); | ||
|
||
$header-height: ( | ||
xs: 3.5rem, | ||
sm: 3.5rem, | ||
rg: 3.5rem, | ||
md: 3.5rem, | ||
lg: 4rem, | ||
xl: 4.5rem, | ||
xxl: 4.5rem, | ||
); |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Config } from '@stencil/core'; | ||
import { sass } from '@stencil/sass'; | ||
import { config as prodConfig } from './stencil.config'; | ||
|
||
export const config: Config = { | ||
...prodConfig, | ||
globalStyle: 'src/styles.scss', | ||
plugins: [ | ||
sass({ | ||
includePaths: ['node_modules'], | ||
}), | ||
], | ||
}; |
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