Skip to content

refactor(scaffold): rename c-page-* to l-* and add p-* page styles - #881

Open
yusasa16 wants to merge 10 commits into
v6from
refactor/scaffold-layout-naming
Open

refactor(scaffold): rename c-page-* to l-* and add p-* page styles#881
yusasa16 wants to merge 10 commits into
v6from
refactor/scaffold-layout-naming

Conversation

@yusasa16

@yusasa16 yusasa16 commented Mar 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • l-home/l-sub for base layout, p-* for page-specific layout
  • Replace c-page-home/c-page-sub with l-home/l-sub
  • Add p-home, p-sub-default, p-blog-index, p-form

- Replace c-page-home/c-page-sub with l-home/l-sub for layout
- Add p-home, p-sub-default, p-blog-index, p-form for page-specific styles
- Replace c-content-index with c-categories component

Made-with: Cursor
@yusasa16 yusasa16 self-assigned this Mar 10, 2026
@yusasa16 yusasa16 added this to the frontend-env v6.0.0 milestone Apr 23, 2026
@yusasa16

Copy link
Copy Markdown
Collaborator Author

リントエラー(p-* / l-* クラス名が stylelint の selector-class-pattern に一致しない件)は、ルール側で対応中。d-zero-dev/linters#847 がマージ・パブリッシュされ、本PRに新バージョンを反映できたタイミングでドラフトを外す。

@yusasa16
yusasa16 changed the base branch from dev to v6 September 7, 2026 01:19
@yusasa16
yusasa16 marked this pull request as ready for review September 7, 2026 01:20
…t-naming

Resolve conflicts caused by the sample component cleanup on v6:

- l-home.css, l-sub.css: keep l-* naming, drop nav-global/nav-sitemap/content-index rules
- home.pug, sub.pug: keep l-* naming, drop the nav-global/nav-sitemap slots
- 200/210_blog_index.pug: accept the deletion and drop the orphaned p-blog-index.css
- style.css: keep the layout/page layers, follow the c-content-main and burger-editor moves
- index.spec.js.snap: regenerate

Note: scaffold markuplint still rejects l-*/p-* class names. Pending d-zero-dev/linters#847.
…ha.2

Pick up d-zero-dev/linters#847, which allows the l- and p- class name prefixes, so the
l-*/p-* layout and page classes introduced in this branch now pass markuplint.
…rk around #1040

at-rule-prelude-no-invalid and declaration-property-value-no-unknown throw
"Bad syntax reference" on valid CSS because css-tree is pinned to 3.1.0 while
@csstools/css-syntax-patches-for-csstree resolves to 1.1.5. The exception is raised
inside the rules, so stylelint-disable comments cannot avoid it.

This is a temporary workaround for #1040. Drop these two lines once that issue is fixed.
…selector list

stylelint-config 6.0.0-alpha.2 surfaced a selector-nested-pattern error on
`* { &, &::before, &::after { ... } }` that the earlier css-tree crash had masked.
The compiled CSS is unchanged.

This is a temporary workaround: d-zero-dev/linters#862 fixes the rule to allow a bare `&`
in a selector list, so this can go back to the nested form once that lands in the 6.x line.
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