Skip to content

import class as local classes #46

Closed

Description

@nsisodiya

it is possible to have this kind of behaviour ?
https://github.com/gajus/react-css-modules/issues/17

Activity

  1. nsisodiya commented on Sep 4, 2015

    @nsisodiya
    Author

    I have defined
    style.css like

    .font-lg {
        font-size:large;
    }
    .rfloat {
        float:left;
    }
    

    now, i am using this class in my
    HelloComponent.css like this

    .rfloat {
        composes: rfloat from '../../../../css/common/style.css';
    }
    .font-lg {
        composes: font-lg from '../../../../css/common/style.css';
    }
    .saveBtn {
          //CSS for save button
    }
    

    is it possible to do this kind of operations in
    HelloComponent.css

    import rfloat, font-lg from '../../../../css/common/style.css';
    .saveBtn {
          //CSS for save button
    }
    
  2. NekR commented on Sep 4, 2015

    @NekR

    @nsisodiya see this: #25

  3. geelen commented on Sep 29, 2015

    @geelen
    Member
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