I'm doing a project in Django and using djangos-css (http://github.com/dziegler/django-css) and Sass (http://sass-lang.com/). The Sass files are served in development using django-css. I want to write a JavaScript routine that will every one second retrieve the CSS assets. The purpose of this is so that the designer can edit the Sass ...
I've been looking into Compass and the more I look, the more it feels like the way that CSS should be written. As a test case, I'd like to use it in one of my CakePHP projects. Unfortunately, I'm having some trouble with the initial configuration. Specifically, with getting the resources in the right place and referenced properly in the ...
I have Haml/Sass installed as a Gem and using it with Rails. I can't figure out, how to pass options like template_location and style to Sass. Sass::Plugin.options doesn't work (since Haml/Sass isn't installed as a plugin). The gem is required through Rails::Initializer#gem.
Thanx a lot for help!
...
I've been reading up about HAML/SASS lately and I'm not quite sure why any one would not want to use it. It seems to be very easy to switch, makes things cleaner and more efficient.
Update:
What about using one or the other? Most of the complaints (the few complaints there are) I hear seem to be about HAML, would there be any probl...
I'm currently using a modified CSS Cacheer as an alternative but its syntax is somewhat vague and adoption is, well, abysmally low... Documentation is hard to come by as well.
I'm looking to switch to SASS as it has a bigger user base than CSS Cacheer and better documentation. I am aware of phpHaml but it doesn't have support for SASS y...
hi all
I have a rails app that is a sort of CMS and i alow users to create their own version of the applicaton on a sub domain.
I also want to let them style their app version the way they want but changing a few fields or small config file.
I was hoping to be able to use sass and compass and be able to let users change varialbes for ...
How do I configure compass to output smaller or compressed CSS files? I tried compass -s compressed but that didn't work.
...
hello fellow programmers,
i recently stumbled upon "elastic css" framework, which looks like a good thing to me. i tried blueprint already but i must say this seems to be an overkill for me (tried it with compass).
so my question to you rails/xhtml webdevelopers out there: is the elastic css framework together with rails (3) and haml/sa...
Let say I would like to set nested style for development and compressed for production. There is only one option in Compass configuration file:
output_style = :compact # or :nested, :expanded, :compressed
...
I couldn't figure out that from SASS documentation. For example I would like to use Compass mixin with 5 parameters:
=link-colors(!normal, !hover = false, !active = false, !visited = false, !focus = false)
I would like to declare 5 constants with semantically understandable names like those:
!top_line_navigation_link_normal_color = ...
Can't for the life of me figure out what I'm doing wrong...
Downloaded Kohaml from http://github.com/transphorm/kohaml
Dropped it into modules/kohaml
# My Bootstrap reference
'kohaml' => MODPATH.'kohaml', // kohaml
Keep getting this error... (snapshot of the error and my modules folder)
http://wellcommentedcode.com/st...
I am using Padrino and when I try to specify my application.sass file I get this error NameError at / uninitialized constant Sass::SyntaxError
I thought I might have something missing, so I checked out the sample_blog application at their GIT to verify my SASS is working correct. It was working correct and the blog app was running fine....
Hi -
This is a newb question, I know, but I can't seem to figure it out. I've been using rails for a while but always went with regular css. Not sure if I'm supposed to use
<%= stylesheet_link_tag 'style' %>
I store my sass file in public/stylesheets/sass/style.sass, and did the whole
$ sass --rails /path/to/app
thing.
Oh, I'...
get '/stylesheets/style.css' do
header 'Content-Type' => 'text/css; charset=utf-8'
sass :style
end
does not produce the stylesheet anymore.
What would be a version 1.0 compatible way to do this? Or, troubleshooting suggestions if you think that the issue is with the code?
The style.sass file is in the /views folder. Haml files fr...
Sass variables can be used like this:
!blue = #3bbfce
.content_navigation
border-color = !blue
color = !blue - #111
This works very well on "single-value" variables. I'm not able to use them on "multi-value" css rules, such as background:
!blue = #3bbfce
//this doesn't work
.content_navigation
background =!blue url(/path/to/i...
I do a lot of design work with XHTML, CSS, and PHP. A friend mentioned Sass to me and it looks pretty cool. I don't know anything about Ruby or Rails and I am running a windows machine.
Does anyone know a good tutorial for a beginner to dig in to something like this?
...
In SASS I can do
!pink = #ff43a7
!darker_pink = !pink - #333333
I'd like to the same in ruby.
...
So I wanted to mess around with Sass so I created this tiny incredibly simple little page. For reasons unknown to me when I add a top-margin to #content it effects my wrapper div instead. Any information as to why this is happening would be greatly appreciated. Thanks!
Here is the page live: http://cheapramen.com/omg/
html:
<!DOCTYPE ...
Skip to bottom for question, but first, a little context.
So I have been looking into CSS compilers (like Sass & Less) for a while, and have been really interested in them, not because they help me understand anything easier (I've been doing css for a couple of years now) but rather they cut down on cruft and help me see things easier.
...
So I've recently been playing around with CSS compilers, but I have no idea how (or if it's possible) to dynamically generate pieces of a selector.
For instance, let's say I wanted to make mixins to get
display: inline-block;
to work cross browser. I would have to do the styles, yeah, but I would have to do the IE6/7 selector hacks ...