Coder Social home page Coder Social logo

Comments (9)

imathis avatar imathis commented on May 27, 2024

As far as gems go, you'll need the latest haml, compass, compass-colors, and fancy-buttons. After you get the gems, you'll need to install compass for a rails app and then install fancy-buttons:

Add the following lines to your compass configuration file:
require 'compass-colors'
require 'fancy-buttons'

Then run the following command:
compass -i -f fancy-buttons

At that point you should be able to do anything I'm doing in the screencast. I'll be happy to help if you get stuck, but it should be fairly simple.

from fancy-buttons.

davidchua avatar davidchua commented on May 27, 2024

Thanks imathis.

After following the instructions, I'm getting the following error:

compass -i -f fancy-buttons
exists wheresmyinvitesat
exists .
exists app/stylesheets
exists public/images
exists public/stylesheets/compiled
identical app/stylesheets/buttons.sass
identical public/images/button_bg.png
identical index.html
exists public/stylesheets/compiled
unchanged app/stylesheets/screen.sass
unchanged app/stylesheets/print.sass
unchanged app/stylesheets/ie.sass
compile app/stylesheets/buttons.sass
Sass::SyntaxError on line 77 of /usr/lib64/ruby/gems/1.8/gems/fancy-buttons-0.3.2/lib/sass/./_fancy_buttons.sass: Undefined variable: "!v_padding".
Run with --trace to see the full backtrace

from fancy-buttons.

imathis avatar imathis commented on May 27, 2024

Sorry I missed a bug with a recent update. I've pushed 0.3.3 now. If you can update that will solve the issue.

from fancy-buttons.

davidchua avatar davidchua commented on May 27, 2024

Thanks, its working great now.

I'm not sure if this is a bug, and that I just don't know how to properly add a link to it, but when I add a link to the button and press on it, it runs the action it is pointing to, twice.

http://pastie.org/714380

Is there a proper way that should be expected to be linking to the buttons?

from fancy-buttons.

imathis avatar imathis commented on May 27, 2024

Does that will yield html that has a link with a button inside of it?
I Want!
You don't need to do that. Just a plain link with a class for styling, or button will work fine. In the screencast I'm adding the mixin under a.button, button which means both buttons, and links with a class "button" will get the style. All you have to do is this, just make it a button, or a link, but not both.

from fancy-buttons.

davidchua avatar davidchua commented on May 27, 2024

That seems to fix it.

Sorry for my stupid questions.

from fancy-buttons.

bridiver avatar bridiver commented on May 27, 2024

compass -i -f fancy-buttons

No such framework: "fancy-buttons"

any ideas?

from fancy-buttons.

bridiver avatar bridiver commented on May 27, 2024

this worked: compass -r fancy-buttons -i -f fancy-buttons
but I wonder why the require statement in the config file doesn't?

from fancy-buttons.

imathis avatar imathis commented on May 27, 2024

Thanks for figuring that out, I'm not sure why it doesn't work that way. I think extensions will be greatly improved in Compass 1.0

from fancy-buttons.

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.