I just made my error messages use Foundation styles (http://foundation.zurb.com/docs/forms.php, scroll until Error States)
I edited the simple_form initializer:
Now you have cool error/alert/whatever messages.
Be happy
Showing posts with label foundation. Show all posts
Showing posts with label foundation. Show all posts
Tuesday, February 19, 2013
Tuesday, February 12, 2013
Foundation fonts not working
I just made my application work with Foundation Fonts. It is simple but not obvious if you follow the step-by-step.
Acabei de fazer minha aplicação usar as fontes do , é bem simples mas não tão óbvio se você seguir o
They say it is simple like adding a bit of code, of course you need to make some changes.
I won't work.
I made some tests, read some stackoverflow answers and nothing...
Just to make sure the problem wasn't with assets pipeline I printed this in my console:
Guess what. My fonts path was there.
/app/assets/fonts so I was sure there problem was my CSS
That's when I checked the downloaded file from Zurb and the one from the page and notice the difference.
See? There are some classes references to each icon so it's not just adding those i tags and you're done.
In case you need a CSS with all fonts, I have a gist for you
Be happy!
Acabei de fazer minha aplicação usar as fontes do , é bem simples mas não tão óbvio se você seguir o
They say it is simple like adding a bit of code, of course you need to make some changes.
I won't work.
I made some tests, read some stackoverflow answers and nothing...
Just to make sure the problem wasn't with assets pipeline I printed this in my console:
p Rails.application.config.assets.paths
Guess what. My fonts path was there.
/app/assets/fonts so I was sure there problem was my CSS
That's when I checked the downloaded file from Zurb and the one from the page and notice the difference.
See? There are some classes references to each icon so it's not just adding those i tags and you're done.
In case you need a CSS with all fonts, I have a gist for you
Be happy!
Labels:
assets,
assets-pipeline,
css,
fonts,
foundation,
pipeline,
rails,
zurb
Subscribe to:
Posts (Atom)