Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
a349d97
feat: c-feed-list
wesleyboar Apr 29, 2025
893a89e
fix(c-feed-list): icon spacing & selector
wesleyboar Apr 29, 2025
b56d390
fix(c-feed-list): inaccurate markup
wesleyboar Apr 29, 2025
004169b
chore(c-feed-list): template whitespace
wesleyboar Apr 29, 2025
59bd6a7
feat: x-action
wesleyboar Apr 30, 2025
d6780d9
docs(c-button): consistently use c-button__icon--…
wesleyboar Apr 30, 2025
a01b3d8
fix(c-button): consistently align buttons w/ icons
wesleyboar Apr 30, 2025
ff1b33d
fix(c-button): cms button icon size too small
wesleyboar Apr 30, 2025
6efbb3c
refactor(c-button): use new `action` mixins
wesleyboar Apr 30, 2025
f9a8710
feat: demo-grid
wesleyboar Apr 30, 2025
678e303
feat: x-feed-list (`feed-list` mixin)
wesleyboar Apr 30, 2025
ed84df4
build
wesleyboar Apr 30, 2025
324349e
fix(feed-list): inconsistent margin-top
wesleyboar Apr 30, 2025
164fd92
fix(feed-list): inconsistent margin-top 2
wesleyboar Apr 30, 2025
f57ad4d
fix(feed-list): missing pill mixin
wesleyboar Apr 30, 2025
3ee4d72
refactor(c-feed-list): use feed-list mixins
wesleyboar Apr 30, 2025
da17d78
refactor(feed-link): rename "see all" link
wesleyboar Apr 30, 2025
59f3c70
chore(x-feed-link): use truncate mixin
wesleyboar Apr 30, 2025
56d8d04
Merge branch 'main' into feat/c-feed-list
wesleyboar Apr 30, 2025
7a8e422
Merge branch 'main' into feat/c-feed-list
wesleyboar May 2, 2025
757bc70
Merge branch 'main' into feat/c-feed-list
wesleyboar May 2, 2025
12a51b3
Merge branch 'main' into feat/c-feed-list
wesleyboar May 2, 2025
eea81e7
fix(x-feed-list): time and pill alignment
wesleyboar May 2, 2025
111ba8b
feat(x-feed-list): load in core-styles.portal
wesleyboar May 2, 2025
6d0bdc2
refactor(x-feed-list): no :--c-feed-list__more…
wesleyboar May 2, 2025
64352e3
refactor(x-feed-list): no :--c-feed-list
wesleyboar May 2, 2025
e54d8ef
chore(c-feed-list): no redundant support styles
wesleyboar May 2, 2025
30a6d0b
fix(c-feed-list): typos in custom selector names
wesleyboar May 2, 2025
1d13233
chore(c-feed-list): remove unused import
wesleyboar May 2, 2025
5107594
chore(c-feed-list): remove whitespace
wesleyboar May 2, 2025
45ba268
chore(c-feed-list): remove redundant .demo-grid
wesleyboar May 2, 2025
07e7303
docs(x-feed-list): status ready
wesleyboar May 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dist/components/c-feed-list.css

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

1 change: 1 addition & 0 deletions dist/components/c-feed-list.selectors.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/*! @tacc/core-styles 2.43.2+ | MIT | github.com/TACC/Core-Styles */
2 changes: 1 addition & 1 deletion dist/components/demo.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.cms.css

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/tools/x-feed-list.css

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

82 changes: 82 additions & 0 deletions src/lib/_imports/components/c-feed-list.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
@import url('../tools/x-feed-list.css');

@import url('../tools/selectors.common.css');
@import url("./c-feed-list.selectors.css");




/* BASE */

.c-feed-list {
@mixin feed-list;
}




/* ELEMENTS */


/* Title */

.c-feed-list > :--heading {
@mixin feed-list__title;
}


/* Item */

:--c-feed-list__item {
@mixin feed-list__item;
}

/* Item: Elements */

/* IDEA: Share time styles between c-news and c-feed-list */
:--c-feed-list__item > time,
:--c-feed-list__item > p:has(time) {
@mixin feed-list__item-time;
}
:--c-feed-list__item > p:has(time) {
margin-bottom: unset;
}

:--c-feed-list__item > :--heading {
@mixin feed-list__item-name;
}

:--c-feed-list__item > p:not(:has(time, a:only-child)) {
@mixin feed-list__item-desc;
}

:--c-feed-list__item > p:has(a:only-child) {
@mixin feed-list__item-link;
}




/* "(See) More" Link */

.c-feed-list > a:last-child,
.c-feed-list > p:has(a:only-child) {
@mixin feed-list__more;
}
.c-feed-list > a:last-child,
.c-feed-list > p > a:only-child {
@mixin feed-list__more-link;

& .icon {
@mixin feed-list__more-icon;
}
}




/* PATTERNS */

.c-feed-list .c-pill {
@mixin feed-list__pill;
}
3 changes: 3 additions & 0 deletions src/lib/_imports/components/c-feed-list.selectors.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@custom-selector :--c-feed-list__item
.c-feed-list > div,
.c-feed-list > article;
72 changes: 72 additions & 0 deletions src/lib/_imports/components/c-feed-list/c-feed-list.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<h2>Table of Contents</h2>
<nav class="c-nav">
<ul>
<li><a href="#minimal">Minimal Example</a></li>
<li><a href="#complex">Complex Example</a></li>
</ul>
</nav>

<div class="demo-grid demo-grid--plain">
<section>
<h2 id="minimal">Minimal Example</h2>
<div class="c-feed-list">
<h3>Upcoming Events</h3>

<article>
<time>May 15, 2024</time>
<h4>
<a href="#">Workshop: Advanced Data Analysis</a>
</h4>
<p>Join us for an in-depth workshop on advanced data analysis techniques and best practices.</p>
</article>

<article>
<time>May 20–22, 2024</time>
<h4>
<a href="#">Annual Conference</a>
</h4>
<p>Our flagship event featuring keynote speakers, technical sessions, and networking opportunities.</p>
</article>

<p>
<a href="#">
<i class="icon icon-push-right">&gt;</i>
See All Events
</a>
</p>
</div>
</section>

<section>
<h2 id="complex">Complex Example</h2>
<div class="c-feed-list">
<h3>User Updates</h3>

<article>
<time data-prefix="Published:" datetime="2024-04-29">
<span>April 29, 2024</span>
</time>
<h4><a href="#" target="_blank">New Feature Release</a></h4>
<p>We're excited to announce the release of new features to enhance your experience. These updates include improved performance and additional customization options.</p>
<p><a href="#" class="c-button c-button--primary" target="_blank">Learn More</a></p>
</article>

<article class="has-update">
<time data-prefix="Published:" datetime="2024-04-28">
<span>April 28, 2024</span>
<span class="c-pill c-pill--is-updated">Update</span>
</time>
<h4><a href="#" target="_blank">System Maintenance</a></h4>
<p>Planned maintenance will occur this weekend. The system will be unavailable from 10 PM to 2 AM.</p>
<p><a href="#" class="c-button c-button--primary" target="_blank">View Details</a></p>
</article>

<p>
<a href="#">
<i class="icon icon-push-right">&gt;</i>
See All Updates
</a>
</p>
</div>
</section>
</div>
14 changes: 14 additions & 0 deletions src/lib/_imports/components/c-feed-list/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
status: ready
variants:
- name: default
label: Default
context:
shouldSkipPattern: false
- name: cms
label: CMS
context:
shouldLoadCMS: true
- name: portal
label: Portal
context:
shouldLoadPortal: true
17 changes: 16 additions & 1 deletion src/lib/_imports/components/demo.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,27 @@

.demo-grid {
display: grid;
gap: 10px;
gap: var(--global-space--grid-gap);
}
.demo-grid > figure {
margin: unset; /* undo browser & Bootstrap */
}

/* Grid: Plain */

.demo-grid--plain {
--min-width: 400px;

grid-template-columns: repeat(
auto-fit,
minmax(
min(100%, var(--min-width)),
1fr
)
);
}


/* Grid: Boxes */

.demo-grid--boxes > * {
Expand Down
1 change: 1 addition & 0 deletions src/lib/_imports/core-styles.cms.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
@import url("./components/c-button--cms.css");
@import url("./components/c-card.css");
@import url("./components/c-card-list.css");
@import url("./components/c-feed-list.css");
@import url("./components/c-form--cms.css");
@import url("./components/c-message.css");
@import url("./components/c-message--expanded.css");
Expand Down
1 change: 1 addition & 0 deletions src/lib/_imports/core-styles.portal.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
@import url("./components/bootstrap.form.css");
@import url("./components/cortal.icon.css");
@import url("./components/mui.tabs.css");
@import url("./components/c-feed-list.css");
@import url("./components/c-form--portal.css");
@import url("./components/c-message.css");
@import url("./components/c-message--compact.css");
Expand Down
Loading