Skip to content

Commit

Permalink
feat: tup-624 c-update migration (#247)
Browse files Browse the repository at this point in the history
* c-update migration

* moved import to cms.css

* updating dist files

* updated dist file...

* update browserlist
  • Loading branch information
R-Tomas-Gonzalez authored Oct 16, 2023
1 parent 4249947 commit fef4c12
Show file tree
Hide file tree
Showing 14 changed files with 59 additions and 10 deletions.
1 change: 1 addition & 0 deletions dist/components/c-update.css

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

2 changes: 1 addition & 1 deletion dist/core-styles.base.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-styles.cms.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/elements/table--basic.css

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

2 changes: 1 addition & 1 deletion dist/elements/table--nested.css

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

2 changes: 1 addition & 1 deletion dist/elements/table.css

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

2 changes: 1 addition & 1 deletion dist/trumps/s-image-grid.css

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

2 changes: 1 addition & 1 deletion dist/trumps/s-inline-dl.css

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

10 changes: 7 additions & 3 deletions package-lock.json

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

10 changes: 10 additions & 0 deletions src/lib/_imports/components/c-update.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.c-update__header {
display: flex;
align-items: baseline;
}

.c-update__title {
margin-right: 0.5em;

text-transform: uppercase;
}
27 changes: 27 additions & 0 deletions src/lib/_imports/components/c-update/c-update.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<dl>
<dt>Update</dt>
<dd>
<aside class="c-update">
<header class="c-update__header">
<h3 class="c-update__title">
<span class="c-pill c-pill--is-updated">Update</span>&nbsp;
</h3>
<span>Published:</span>&nbsp;
<time datetime="2023-10-13T14:27:18.637000">
October 13, 2023
</time>
</header>
</aside>
</dd>
<dd>
</dd>
<dt>Original</dt>
<dd>
<header class="c-update__header">
<span>Published:</span>&nbsp;
<time datetime="2023-10-03T17:55:22.513000">
October 03, 2023
</time>
</header>
</dd>
</dl>
3 changes: 3 additions & 0 deletions src/lib/_imports/components/c-update/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
status: ready
context:
shouldLoadCMS: true
2 changes: 2 additions & 0 deletions src/lib/_imports/components/c-update/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Will show "Update" pill and date
- Will show "ORIGINAL MESSAGE" and date
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 @@ -38,6 +38,8 @@
@import url("./components/c-message.css");
@import url("./components/c-message--expanded.css");
@import url("./components/c-recognition.css");
@import url("./components/c-update.css");

/* TODO: Move to TACC/Core-CMS-Resources:/frontera-cms
or — alternatively — TACC/Core-CMS */
@import url("./components/c-card--frontera-about-page.css");
Expand Down

0 comments on commit fef4c12

Please sign in to comment.