Skip to content

feat(generic): migrate for-core-styles from tup-ui - #561

Merged
wesleyboar merged 8 commits into
feat/tup-static-asset-migrationfrom
feat/tup-c-news-css
Aug 3, 2026
Merged

feat(generic): migrate for-core-styles from tup-ui#561
wesleyboar merged 8 commits into
feat/tup-static-asset-migrationfrom
feat/tup-c-news-css

Conversation

@wesleyboar

@wesleyboar wesleyboar commented Aug 3, 2026

Copy link
Copy Markdown
Member

Overview

Migrates c-news out of TACC/tup-ui's for-core-styles/ folder.

Details

These are genuine Core-Styles gaps discovered while building tup-ui — not tup-specific overrides — so this repo's generic_assets/ (not tup/) is the right home, since it's what other projects actually check for known Core-Styles/Core-CMS gaps.

Related

Includes changes from:

Does not include c-feed-list.css cuz it is deleted in:

Changes

  • added generic_assets/css/c-news.css
  • added generic_assets/css/c-news--read.css
  • added generic_assets/css/c-news--list.css
  • added generic_assets/css/core-styles-feats.css
  • updated tup/html/css-ad-hoc-styles.html

Testing

  1. Confirm each file's content matches tup-ui's current for-core-styles/components/ copy, with tup-ui#325's diff applied to c-news.css and c-news--read.css.

…pment

Migrated from tup-ui's for-core-styles/components/ (c-news.css,
c-news--read.css, c-news--list.css) — genuine Core-Styles gaps found while
building tup-ui, not tup-specific overrides, so they belong here where
every other project can discover and use them instead of independently
re-patching the same Core-Styles gaps.

c-news.css and c-news--read.css include tup-ui#325's pending edit
(unmerged) composed in, since #325 will stop editing its local copies
once tup-ui deletes them in favor of this. c-feed-list.css is not
migrated: tup-ui#325 and #535 both delete it outright rather than keep it,
so there is nothing to migrate.
Off-by-one blank line from the initial copy; content now matches
tup-ui's source file exactly.
@wesleyboar
wesleyboar changed the base branch from main to feat/tup-static-asset-migration August 3, 2026 19:47
…snippet

c-news.css needs layer(base) to preserve its original cascade position,
but a plain <link> can't assign a layer. Rather than add another raw
<style>@import ...> block to the already-large ad-hoc CSS snippet,
core-styles-feats.css does the @import-into-layer once, so the snippet
can load it with a normal <link> like core-cms-fixes.css and
core-styles-fixes.css.

"feats" (this file) vs "fixes" (the existing ones): feats are base-layer
components meant to be overridden; fixes are unlayered patches meant to
win.
wesleyboar added a commit to TACC/tup-ui that referenced this pull request Aug 3, 2026
c-news.css, c-news--read.css, and c-news--list.css were general
Core-Styles gaps found during tup-ui development, not tup-specific
overrides, so they've moved to Core-CMS-Custom (TACC/Core-CMS-Custom#561)
where other projects can find and use them.

Loading moves to the ad-hoc CSS snippet (edited live in the CMS admin,
already migrated to TACC/Core-CMS-Custom#559/#560) instead of
assets_custom.html — no tup-ui code needs to load this CSS anymore.
@wesleyboar
wesleyboar merged commit 1d3d69e into feat/tup-static-asset-migration Aug 3, 2026
@wesleyboar
wesleyboar deleted the feat/tup-c-news-css branch August 3, 2026 21:21
@wesleyboar wesleyboar changed the title feat(generic): add news/blog component CSS found during tup-ui development feat(generic): add c-news component styles from tup-ui Aug 3, 2026
@wesleyboar wesleyboar changed the title feat(generic): add c-news component styles from tup-ui feat(generic): migrate c-news component styles from tup-ui Aug 3, 2026
@wesleyboar wesleyboar changed the title feat(generic): migrate c-news component styles from tup-ui feat(generic): migrate for-core-styles from tup-ui Aug 3, 2026
wesleyboar added a commit to TACC/tup-ui that referenced this pull request Aug 3, 2026
c-news.css and c-news--read.css: migrated to Core-CMS-Custom with this
PR's edits composed in (TACC/Core-CMS-Custom#561, merged).

c-feed-list.css, c-feed-list-tweaks.css, and tup-cms.for-core-styles.css:
this PR's deletions/edits to these are already done independently in
tup-ui#570 and #571.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant