Skip to content

✨ Ship default stylesheet for changes views#79

Merged
fusion94 merged 1 commit intomasterfrom
feat/70-default-stylesheet
Mar 18, 2026
Merged

✨ Ship default stylesheet for changes views#79
fusion94 merged 1 commit intomasterfrom
feat/70-default-stylesheet

Conversation

@fusion94
Copy link
Copy Markdown
Collaborator

Summary

Default CSS stylesheet so the changes UI looks decent out of the box.

Changes

  • app/assets/stylesheets/paper_trail_manager/changes.css: Full stylesheet (~160 lines)
  • README.md: Include instructions (stylesheet_link_tag or require)

Styles Include

  • Table layout with hover states
  • Event-specific colors: green (create), blue (update), red (destroy)
  • Diff highlighting: red (previous) → green (current)
  • Rollback button styling
  • Date filter form layout
  • Empty state
  • Low-specificity selectors — easy to override

Test Results

  • 50 examples, 0 failures

Closes #70

Provides out-of-the-box styling for the changes UI:
- Table formatting with border-collapse and hover states
- Event-specific color coding (green create, blue update, red destroy)
- Diff highlighting (red previous, green current)
- Styled rollback button
- Date filter form layout
- Empty state styling
- Low-specificity selectors for easy overriding

Include via stylesheet_link_tag or require in application.css.
Documented in README.

Closes #70
@fusion94 fusion94 force-pushed the feat/70-default-stylesheet branch from e2b8027 to 30c201c Compare March 18, 2026 19:04
@fusion94 fusion94 merged commit b8c8496 into master Mar 18, 2026
18 checks passed
@fusion94 fusion94 deleted the feat/70-default-stylesheet branch March 18, 2026 19:06
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.

Ship a default stylesheet for changes views

1 participant