Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

distributing components with style #4

Open

Description

@janbiedermann

creating components for hyperloop is cool and using them works, even if they depend on js, as this can be Hyperloop.import ed. Cool. just add it to Gemfile and ready to go.
But what about stylesheets?
When it comes to stylesheets, in addition to the gems, i have to instruct users to add this and that to application.css?
I guess for stylesheets to work "out of the box totally automatic", we will need to have some //= require hyperloop-stylein application.css, which is a erb and in addition have a Hyperloop.import_style

Activity

  1. changed the title [-]distributing external components with style[/-] [+]distributing components with style[/+] on Feb 19, 2018
  2. catmando commented on Feb 19, 2018

    @catmando
    Contributor

    I really want to add a DSL so that styles can be tied more directly to components, but still be overridden, but have it all work within ruby hyperloop

    There are other projects like this both in Opal land, and in JS land

  3. janbiedermann commented on Feb 19, 2018

    @janbiedermann
    ContributorAuthor

    For example, Hyper::Vis::Component depends on Vis.js, Vis.js comes with stylesheets, referred by Vis.js itself, not by the component, how to handle?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions