Skip to content

Commit

Permalink
feat/tup-625: Migrate o-heading-steps to core-styles (#248)
Browse files Browse the repository at this point in the history
* 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
R-Tomas-Gonzalez and wesleyboar authored Oct 17, 2023
1 parent fef4c12 commit b20884a
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/core-styles.cms.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/objects/o-heading-steps.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/lib/_imports/core-styles.cms.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
@import url("./objects/o-float-content.css");
@import url("./objects/o-offset-content.css");
@import url("./objects/o-section.css");
@import url("./objects/o-heading-steps.css");


/* COMPONENTS */
@import url("./components/bootstrap.col.css");
Expand Down
17 changes: 17 additions & 0 deletions src/lib/_imports/objects/o-heading-steps.css
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);
}
3 changes: 3 additions & 0 deletions src/lib/_imports/objects/o-heading-steps/config.yml
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 src/lib/_imports/objects/o-heading-steps/o-heading-steps.hbs
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>
2 changes: 2 additions & 0 deletions src/lib/_imports/objects/o-heading-steps/readme.md
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.

0 comments on commit b20884a

Please sign in to comment.