Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(components): c-feed-list (wip) #89

Draft
wants to merge 24 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
7f02d45
feat(components): c-feed-list (wip)
wesleyboar Dec 13, 2022
8ebf4cd
fix(components): c-feed-list, add borders
wesleyboar Dec 15, 2022
b509a3b
feat(settings): …color-accent--secondary/tertiary
wesleyboar Dec 15, 2022
58c1582
feat(elements): time
wesleyboar Dec 15, 2022
be6a29a
Merge branch 'main' into task/c-feed-list
wesleyboar Dec 15, 2022
ad350fd
feat(elements): cms, allow bold vs black
wesleyboar Jan 5, 2023
ae19b48
feat(elements): cms, easier bold vs black
wesleyboar Jan 5, 2023
f1c3693
chore(dist): build 4550f16
wesleyboar Jan 9, 2023
aac24bc
fix(demo): do not capitalize `<dt>`
wesleyboar Jan 10, 2023
a284f20
feat(demo): c-data-list pattern (#98)
wesleyboar Jan 10, 2023
d31fe56
Merge branch 'main' of github.com:TACC/Core-Styles
wesleyboar Jan 10, 2023
f9ae138
feat(components): c-data-list, custom selectors (#99)
wesleyboar Jan 10, 2023
d8d17ab
Merge branch 'main' into task/c-feed-list
wesleyboar Jan 10, 2023
a7867d3
fix(components): c-feed-list, no capitalize time
wesleyboar Jan 10, 2023
b86cc7e
Merge branch 'main' into task/c-feed-list
wesleyboar Jan 26, 2023
0ff566c
Merge branch 'main' into task/c-feed-list
wesleyboar Jan 26, 2023
0c90add
style: fix a quote mistake
wesleyboar Oct 12, 2023
7b85f93
Merge branch 'main' into feat/tup-463
wesleyboar Oct 13, 2023
0885524
Merge branch 'main' into task/c-feed-list
wesleyboar Oct 13, 2023
780b639
Merge branch 'feat/tup-463' into task/c-feed-list
wesleyboar Oct 17, 2023
503448e
Merge branch 'main' into task/c-feed-list
wesleyboar Oct 17, 2023
2179ed3
Merge branch 'main' into task/c-feed-list
wesleyboar Jan 8, 2024
06d743c
Merge branch 'main' into task/c-feed-list
wesleyboar Feb 18, 2025
4c55f63
Merge branch 'main' into task/c-feed-list (CONT…)
wesleyboar Feb 18, 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.

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/core-styles.docs.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/elements/html-elements.cms.css

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

97 changes: 97 additions & 0 deletions src/lib/_imports/components/c-feed-list.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
/* A list of preview content for articles, documents, or pages. */



/* Settings */

:root {
--global-space--unnamed: 50px;
}



/* Block */

.c-feed-list {
display: flex;
flex-direction: column;

font-size: 12px;
}



/* Elements */

/* Elements: Title */

.c-feed-list > :is(h1, h2, h3, h4, h5, h6) {
margin-top: 0;
margin-bottom: 10px;

/* TODO: When migrated to core-styles, use @extend instead */
/* @extend .x-truncate--one-line; */
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}

/* Elements: Items */

.c-feed-list > :is(div, article) {
flex-grow: 1; /* to shrink feed title */

display: grid;
grid-template-areas:
'time link'
'name link'
'desc link';

padding-block: 10px;
border-top: var(--global-border-width--normal) solid var(--global-color-primary--dark);
}
.c-feed-list > :is(div, article):last-of-type {
border-bottom: var(--global-border-width--normal) solid var(--global-color-primary--xx-dark);
}
.c-feed-list > :is(div, article) > time { grid-area: time; }
.c-feed-list > :is(div, article) > :is(h1, h2, h3, h4, h5, h6) { grid-area: name; }
.c-feed-list > :is(div, article) > p:first-of-type { grid-area: desc; }
.c-feed-list > :is(div, article) > p:not(:first-of-type) { grid-area: link; }

.c-feed-list > :is(div, article) > :is(h1, h2, h3, h4, h5, h6) {
margin-top: 10px;
margin-bottom: 5px;
}

.c-feed-list > :is(div, article) > p {
margin-bottom: unset;
}
.c-feed-list > :is(div, article) > p:not(:first-of-type) {
padding-inline: var(--global-space--unnamed);

/* To vertically center content */
display: flex;
align-items: center;
}

/* Elements: Link */

.c-feed-list > a:last-child {
font-weight: var(--bold);
}
.c-feed-list > a:last-child {
padding-top: 15px;

/* TODO: When migrated to core-styles, use @extend instead */
/* @extend .x-truncate--one-line; */
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
/* max-width: 100%; /* SEE: https://stackoverflow.com/a/44521595 */
}
.o-section--style-dark .c-feed-list > a:last-child {
color: var(--global-color-primary--xx-light);
}
.o-section--style-light .c-feed-list > a:last-child {
color: var(--global-color-primary--xx-dark);
}
1 change: 1 addition & 0 deletions src/lib/_imports/core-styles.base.css
Original file line number Diff line number Diff line change
@@ -37,6 +37,7 @@
@import url("./components/c-button.css");
@import url("./components/c-callout.css");
@import url("./components/c-data-list.css");
@import url("./components/c-feed-list.css");
@import url("./components/c-form.css");
@import url("./components/c-island.css");
@import url("./components/c-nav.css");
8 changes: 8 additions & 0 deletions src/lib/_imports/elements/html-elements.cms.css
Original file line number Diff line number Diff line change
@@ -128,6 +128,14 @@ Reference:
Styleguide Elements.InlineTextSemantics
*/

/* Miscellaneous */

& time {
color: var(--global-color-accent--secondary);
font-weight: var(--medium);
text-transform: uppercase;
}

/* To allow user to distinguish bold and black */
& strong {
font-weight: var(--bold);