-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat/tup-625: Migrate o-heading-steps to core-styles (#248)
* added o-heading-steps * had a weird backtick at the end of the div on accident * chore: delete excess dist file * chore: delete dev cruft in dist --------- Co-authored-by: Wesley B <62723358+wesleyboar@users.noreply.github.com>
- Loading branch information
1 parent
fef4c12
commit b20884a
Showing
7 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* To add numbers to steps */ | ||
.heading-steps, | ||
[class*="heading-steps--"] { | ||
counter-reset: step; | ||
} | ||
|
||
.heading-steps :is(h1, h2, h3, h4, h5, h6), | ||
[class*="heading-steps--"] :is(h1, h2, h3, h4, h5, h6) { | ||
counter-increment: step; | ||
} | ||
|
||
.heading-steps--root :is(h1, h2, h3, h4, h5, h6)::before, | ||
.heading-steps__item :is(h1, h2, h3, h4, h5, h6)::before { | ||
content: counter(step) '. '; | ||
color: var(--global-color-accent--secondary); | ||
font-weight: var(--medium); | ||
} |
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,3 @@ | ||
status: ready | ||
context: | ||
shouldLoadCMS: true |
14 changes: 14 additions & 0 deletions
14
src/lib/_imports/objects/o-heading-steps/o-heading-steps.hbs
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,14 @@ | ||
<div class="heading-steps"> | ||
<article class="heading-steps__item"> | ||
<h3>Create an Account</h3> | ||
</article> | ||
<article class="heading-steps__item"> | ||
<h3>Request Allocations</h3> | ||
</article> | ||
<article class="heading-steps__item"> | ||
<h3>Learn How to Use Our Resources</h3> | ||
</article> | ||
<article class="heading-steps__item"> | ||
<h3>Work With Our Team</h3> | ||
</article> | ||
</div> |
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,2 @@ | ||
Heading Steps will add numbers to the beginning of a heading. | ||
A visual representation of this is shown in the numebers 1-4 listed in the example above. |