-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: align style use between docs and demo (#1862)
* chore: align style use between docs and demo/dev-server use cases * chore: add tokens layer to layer cascade * chore: organize demo/dev-server styles * chore: correct stylesheet name * chore: call individiual layers instead of styles.css as a whole * chore: remove demo layer forgot to remove last commit * fix: ignore tokens loaded from node_modules in litcssOptions --------- Co-authored-by: Benny Powers - עם ישראל חי! <[email protected]>
- Loading branch information
1 parent
a98a060
commit 8a3a88e
Showing
9 changed files
with
74 additions
and
64 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,56 @@ | ||
@layer | ||
reset, | ||
fonts, | ||
tokens, | ||
typography, | ||
base, | ||
layout, | ||
third-party; | ||
|
||
@import url('../reset.css') layer(reset); | ||
@import url('../fonts.css') layer(fonts); | ||
@import url('/node_modules/@rhds/tokens/css/global.css') layer(tokens); | ||
@import url('../typography.css') layer(typography); | ||
@import url('../third-party/prism-rhds.css') layer(third-party); | ||
|
||
@layer base { | ||
/** | ||
* PFE based styles as we do not have control over the | ||
* html layout that is upstream with no current override | ||
*/ | ||
#main-header { | ||
--pf-theme--color--surface--accent: black; | ||
--pf-theme--color--accent: black; | ||
} | ||
} | ||
|
||
@layer layout { | ||
html, | ||
body, | ||
main { height: 100%; } | ||
|
||
[data-demo] { | ||
display: contents; | ||
} | ||
|
||
main { | ||
display: block; | ||
position: relative; | ||
max-height: initial; | ||
} | ||
|
||
#nav { | ||
height: 100%; | ||
} | ||
|
||
#main-header a img { | ||
margin-right: 0; | ||
} | ||
|
||
/* offset the padding on the demo container from above */ | ||
rh-context-demo { | ||
min-height: calc(100% + 2 * var(--rh-space-xl, 24px)); | ||
height: auto; | ||
} | ||
} | ||
|
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,11 @@ | ||
@layer | ||
reset, | ||
fonts, | ||
tokens, | ||
typography; | ||
|
||
@import url('../reset.css') layer(reset); | ||
@import url('../fonts.css') layer(fonts); | ||
@import url('/assets/packages/@rhds/tokens/css/global.css') layer(tokens); | ||
@import url('../typography.css') layer(typography); | ||
|
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
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