-
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.
- Loading branch information
Showing
6 changed files
with
46 additions
and
45 deletions.
There are no files selected for viewing
8 changes: 0 additions & 8 deletions
8
packages/documentation/src/stories/guidelines/shadowdom-parts/exportparts.sample.html
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
packages/documentation/src/stories/guidelines/shadowdom-parts/exportpartsSass.sample.scss
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
4 changes: 4 additions & 0 deletions
4
packages/documentation/src/stories/guidelines/shadowdom-parts/pseudoParts.sample.html
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,4 @@ | ||
<custom-element> | ||
<div part="header">Header content</div> | ||
<div part="footer">Footer content</div> | ||
</custom-element> |
17 changes: 17 additions & 0 deletions
17
packages/documentation/src/stories/guidelines/shadowdom-parts/pseudoPartsSass.sample.scss
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,17 @@ | ||
custom-element::part(header):hover { | ||
text-decoration: underline; | ||
} | ||
|
||
custom-element::part(footer):active { | ||
color: darkgray; | ||
} | ||
|
||
custom-element::part(header)::before { | ||
content: '>> '; | ||
color: red; | ||
} | ||
|
||
custom-element::part(footer)::after { | ||
content: ' <<'; | ||
color: lightgray; | ||
} |
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