-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tup-components, tup-ui): tup-519 UserNews component UI (#248)
* fix: UserNews CSS+HTML & supporting global styles * fix: UserNews max items from 12 to 5 * chore: npx nx format:write * fix: pill to say "Update" not "Updated" (to match CMS) * fix: move status pill back into "Posted" * chore: set indent to match .editorconfig * chore: set indent to match .editorconfig * fix: change "Posted" to "Published" --------- Co-authored-by: Jake Rosenberg <[email protected]>
- Loading branch information
1 parent
15061d4
commit 62fca8f
Showing
4 changed files
with
73 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,50 @@ | ||
.news-list { | ||
padding: 0px; | ||
font-size: var(--global-font-size--small); | ||
} | ||
|
||
.news-list-item { | ||
list-style: none; | ||
border-top: 1px solid #707070; | ||
padding-top: 10px; | ||
padding-bottom: 10px; | ||
padding-block: 10px; | ||
border-top: var(--global-border-width--normal) solid var(--global-color-primary--dark); | ||
} | ||
|
||
.body { | ||
display: -webkit-box; | ||
font-size: 1rem; | ||
-webkit-line-clamp: 3; | ||
-webkit-box-orient: vertical; | ||
overflow: hidden; | ||
composes: x-truncate--many-lines from '@tacc/core-styles/dist/tools/x-truncate.css'; | ||
|
||
margin-bottom: 1.15rem; | ||
} | ||
|
||
.posted-date { | ||
font-size: 1rem; | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
color: var(--global-color-accent--secondary); | ||
font-weight: var(--medium); | ||
text-transform: uppercase; | ||
} | ||
.posted-date .status-pill { | ||
text-transform: none; | ||
|
||
vertical-align: middle; | ||
transform: translateY(-0.125em); | ||
} | ||
|
||
.status-pill { | ||
padding-bottom: 0px; | ||
padding-top: 0px; | ||
margin-left: 1rem; | ||
margin-left: 0.5ch; | ||
vertical-align: middle; | ||
|
||
/* Mimics .c-pill font-size */ | ||
/* TODO: Update <Pill> to use .c-pill, then remove this */ | ||
font-size: var(--global-font-size--x-small); | ||
} | ||
|
||
.title { | ||
font-size: 1.25rem; | ||
font-weight: bolder; | ||
composes: x-truncate--many-lines from '@tacc/core-styles/dist/tools/x-truncate.css'; | ||
|
||
margin-top: 10px; | ||
margin-bottom: 5px; | ||
} | ||
|
||
.news-error { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
color: var(--global-color-accent--normal); | ||
padding: 30px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
color: var(--global-color-accent--normal); | ||
padding: 30px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters