Coder Social home page Coder Social logo

how to use about compass-mixins HOT 8 CLOSED

igosuki avatar igosuki commented on August 20, 2024
how to use

from compass-mixins.

Comments (8)

talgautb avatar talgautb commented on August 20, 2024

may be some info to Read.me - Usage ?

from compass-mixins.

luisfmsouza avatar luisfmsouza commented on August 20, 2024

I've imported as your import... and I agree that it seems wrong.

from compass-mixins.

talgautb avatar talgautb commented on August 20, 2024

easy way to add only compass stylsheets on project)

from compass-mixins.

IAMtheIAM avatar IAMtheIAM commented on August 20, 2024

Please add usage instructions on the readme file. I agree it is confusing to implement.

from compass-mixins.

talgautb avatar talgautb commented on August 20, 2024

@Igosuki ?

from compass-mixins.

ItIsInspiring avatar ItIsInspiring commented on August 20, 2024

I agree with the comments. It is not easy to understand how to configure compass-mixin.
it would be nice to have a more detailed tutorial about this plugin.
Thanks

from compass-mixins.

kevinelliott avatar kevinelliott commented on August 20, 2024

Why did this get closed? The instructions were never added.

from compass-mixins.

stephenasamoah avatar stephenasamoah commented on August 20, 2024

Was having trouble too, but here's how I got it to work:

  1. Install the module via npm.
  2. Inside the scss file, import the module, e.g. @import "../../../../node_modules/compass-mixins/lib/compass";

or if using bower:

  1. add the module as a dependency in your bower.json file like so:
    {
    "name": "imprv-workflow",
    "description": "Improved Workflow",
    "main": "build/index.html",
    "authors": [
    "Kwesi Jnr."
    ],
    "license": "MIT",
    "homepage": "",
    "ignore": [
    "**/.*",
    "node_modules",
    "bower_components",
    "test",
    "tests"
    ],
    "dependencies": {
    "compass-mixins": "~1.0.2"
    }

    }

  2. Run $ bower install

  3. Import it the same way as stated above but with bower_components in the path, not node_modules:
    @import "../../../../bower_components/compass-mixins/lib/compass";

I observed that using bower_components was slightly faster than node_modules.

from compass-mixins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.