Skip to content

Commit 8711794

Browse files
authored
feat: c-feed-list (#508)
1 parent bf1c662 commit 8711794

18 files changed

+440
-5
lines changed

dist/components/c-feed-list.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/*! @tacc/core-styles 2.43.2+ | MIT | github.com/TACC/Core-Styles */

dist/components/demo.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core-styles.cms.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core-styles.demo.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core-styles.portal.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/tools/x-feed-list.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
@import url('../tools/x-feed-list.css');
2+
3+
@import url('../tools/selectors.common.css');
4+
@import url("./c-feed-list.selectors.css");
5+
6+
7+
8+
9+
/* BASE */
10+
11+
.c-feed-list {
12+
@mixin feed-list;
13+
}
14+
15+
16+
17+
18+
/* ELEMENTS */
19+
20+
21+
/* Title */
22+
23+
.c-feed-list > :--heading {
24+
@mixin feed-list__title;
25+
}
26+
27+
28+
/* Item */
29+
30+
:--c-feed-list__item {
31+
@mixin feed-list__item;
32+
}
33+
34+
/* Item: Elements */
35+
36+
/* IDEA: Share time styles between c-news and c-feed-list */
37+
:--c-feed-list__item > time,
38+
:--c-feed-list__item > p:has(time) {
39+
@mixin feed-list__item-time;
40+
}
41+
:--c-feed-list__item > p:has(time) {
42+
margin-bottom: unset;
43+
}
44+
45+
:--c-feed-list__item > :--heading {
46+
@mixin feed-list__item-name;
47+
}
48+
49+
:--c-feed-list__item > p:not(:has(time, a:only-child)) {
50+
@mixin feed-list__item-desc;
51+
}
52+
53+
:--c-feed-list__item > p:has(a:only-child) {
54+
@mixin feed-list__item-link;
55+
}
56+
57+
58+
59+
60+
/* "(See) More" Link */
61+
62+
.c-feed-list > a:last-child,
63+
.c-feed-list > p:has(a:only-child) {
64+
@mixin feed-list__more;
65+
}
66+
.c-feed-list > a:last-child,
67+
.c-feed-list > p > a:only-child {
68+
@mixin feed-list__more-link;
69+
70+
& .icon {
71+
@mixin feed-list__more-icon;
72+
}
73+
}
74+
75+
76+
77+
78+
/* PATTERNS */
79+
80+
.c-feed-list .c-pill {
81+
@mixin feed-list__pill;
82+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@custom-selector :--c-feed-list__item
2+
.c-feed-list > div,
3+
.c-feed-list > article;
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<h2>Table of Contents</h2>
2+
<nav class="c-nav">
3+
<ul>
4+
<li><a href="#minimal">Minimal Example</a></li>
5+
<li><a href="#complex">Complex Example</a></li>
6+
</ul>
7+
</nav>
8+
9+
<div class="demo-grid demo-grid--plain">
10+
<section>
11+
<h2 id="minimal">Minimal Example</h2>
12+
<div class="c-feed-list">
13+
<h3>Upcoming Events</h3>
14+
15+
<article>
16+
<time>May 15, 2024</time>
17+
<h4>
18+
<a href="#">Workshop: Advanced Data Analysis</a>
19+
</h4>
20+
<p>Join us for an in-depth workshop on advanced data analysis techniques and best practices.</p>
21+
</article>
22+
23+
<article>
24+
<time>May 20–22, 2024</time>
25+
<h4>
26+
<a href="#">Annual Conference</a>
27+
</h4>
28+
<p>Our flagship event featuring keynote speakers, technical sessions, and networking opportunities.</p>
29+
</article>
30+
31+
<p>
32+
<a href="#">
33+
<i class="icon icon-push-right">&gt;</i>
34+
See All Events
35+
</a>
36+
</p>
37+
</div>
38+
</section>
39+
40+
<section>
41+
<h2 id="complex">Complex Example</h2>
42+
<div class="c-feed-list">
43+
<h3>User Updates</h3>
44+
45+
<article>
46+
<time data-prefix="Published:" datetime="2024-04-29">
47+
<span>April 29, 2024</span>
48+
</time>
49+
<h4><a href="#" target="_blank">New Feature Release</a></h4>
50+
<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>
51+
<p><a href="#" class="c-button c-button--primary" target="_blank">Learn More</a></p>
52+
</article>
53+
54+
<article class="has-update">
55+
<time data-prefix="Published:" datetime="2024-04-28">
56+
<span>April 28, 2024</span>
57+
<span class="c-pill c-pill--is-updated">Update</span>
58+
</time>
59+
<h4><a href="#" target="_blank">System Maintenance</a></h4>
60+
<p>Planned maintenance will occur this weekend. The system will be unavailable from 10 PM to 2 AM.</p>
61+
<p><a href="#" class="c-button c-button--primary" target="_blank">View Details</a></p>
62+
</article>
63+
64+
<p>
65+
<a href="#">
66+
<i class="icon icon-push-right">&gt;</i>
67+
See All Updates
68+
</a>
69+
</p>
70+
</div>
71+
</section>
72+
</div>

0 commit comments

Comments
 (0)