Skip to content

Refactor rabbithole player inline CSS to proper stylesheets #328

Description

@magent-cryptograss

Context

The rabbithole player has accumulated a lot of inline CSS and style manipulation in JavaScript that should be cleaned up when we separate rabbithole into its own project.

Current Issues

  • Spotlight/flourish/glow effects set many individual style properties inline
  • Need !important overrides to fight CSS transitions (e.g., .musician-item has transition: all 0.4s)
  • Transform, transition, boxShadow, etc. all manipulated via element.style.*

Proposed Refactor

  1. Move spotlight/flourish/glow styles to CSS classes
  2. Use CSS custom properties for dynamic values (durations, intensities)
  3. Toggle classes in JS instead of setting individual style properties
  4. Consolidate and eliminate !important overrides
  5. Clean separation of concerns - CSS handles presentation, JS handles state

When

When rabbithole becomes its own standalone project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions