Comments (9)
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.
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.
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.
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.
Is there a proper way that should be expected to be linking to the buttons?
from fancy-buttons.
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.
That seems to fix it.
Sorry for my stupid questions.
from fancy-buttons.
compass -i -f fancy-buttons
No such framework: "fancy-buttons"
any ideas?
from fancy-buttons.
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.
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)
- File "button_bg.png" not copied to Rails public/images by default HOT 2
- Can't disable fb-inset with fancy-buttons 1.0.4 HOT 4
- Syntax error: Not a valid color stop: #6a6a6a 10% HOT 5
- default font HOT 2
- validating fancy-buttons scss problems with browser specific attributes HOT 1
- Undefined mixin fancy-button HOT 1
- Line 98: At least two color stops are required HOT 1
- Not compatible with haml >= 3.1.0 HOT 1
- Fancy without gradient HOT 1
- Customizing a gradient stop. HOT 1
- How to easily set a button as 'active'? HOT 2
- Take a background image as an argument HOT 2
- Edit readme HOT 1
- File to import not found or unreadable: fancy-buttons HOT 11
- Making links and buttons look the same HOT 2
- file to import not found or unreadable HOT 9
- Mixin not working correct in Rails 3.2
- Please add License file HOT 1
- Error: ambiguous option: -f HOT 1
- Failure/Error: @import "fancy-buttons" with rails 6.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fancy-buttons.