Re: [haml] [sass] Convert px to int? (Simply want to change the units.)

2013-04-25 Thread Chris Eppstein
-font-size { .type-*#{$i}* { font-size: $i; } } = I'd better see *.type-10* rather then *.type-10px* пятница, 15 апреля 2011 г., 1:36:33 UTC+4 пользователь Chris Eppstein написал: It's trivial to build. But I've yet to find a compelling use case for such a function

Re: [haml] [SCSS] Convert HEX to RGB

2011-06-15 Thread Chris Eppstein
I'd be interested to know why the output format matters. It seems like an implementation detail to me. Please continue this conversation on the sass mailing list. Hunt pecked on my iPhone... Sorry if it's brief! On Jun 15, 2011, at 7:46 AM, Алёна pionee...@gmail.com wrote: Not sure if

Re: [haml] [SCSS] Convert HEX to RGB

2011-06-15 Thread Chris Eppstein
This is the Haml list v Hunt pecked on my iPhone... Sorry if it's brief! On Jun 15, 2011, at 10:01 AM, Renan Couto renanco...@gmail.com wrote: I see that there is this method: http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#rgba-instance_method But it keeps rendering like this:

Re: [haml] Re: Haml interprets 0 as boolean, not string

2011-06-13 Thread Chris Eppstein
Using the command line if I run: echo %option{:value=0} 1 | haml I don't get an error. I get: option value='0'1/option I think there's something screwy with your environment. On Mon, Jun 13, 2011 at 1:49 AM, Алёна pionee...@gmail.com wrote: It doesn't help unfortunately. 2011/6/12

Re: [haml] Haml gem not working

2011-06-09 Thread Chris Eppstein
Rubygems likes to install things into places where you can't execute their scripts by default if you leave off the sudo. It's lame. Do this: export PATH=$PATH:/Users/lyssandroreis/.gem/ruby/1.8/bin * * Or do this: gem uninstall haml gem uninstall sass sudo gem install haml sudo gem install sass *

Re: [haml] Haml gem not working

2011-06-09 Thread Chris Eppstein
Uninstall everything. Try again. :( Hunt pecked on my iPhone... Sorry if it's brief! On Jun 9, 2011, at 7:49 PM, Lyssandro Reis lyssan...@gmail.com wrote: Hi Chris, thanks for your time and help. I tried both, problem persists $ haml --trace

Re: [haml] Haml gem not working

2011-06-09 Thread Chris Eppstein
compass shouldn't install haml unless you're using an old version. On Thu, Jun 9, 2011 at 8:46 PM, Lyssandro Reis lyssan...@gmail.com wrote: Thanks Chris, I will keep on digging into it. A little update. I have removed sass, haml and compass. Then installed again only compass (which

Re: [haml] inserting a comma.

2011-06-07 Thread Chris Eppstein
= succeed(,) do ... On Tue, Jun 7, 2011 at 1:39 AM, mauro mrsan...@gmail.com wrote: I have this code: %p %label Indirizzo: = @supplier.address = @supplier.street_number I want to insert a comma between supplier.address and supplier.street_number. If I do: %p %label Indirizzo:

Re: [haml] inserting a comma.

2011-06-07 Thread Chris Eppstein
http://haml-lang.com/docs/yardoc/Haml/Helpers.html#succeed-instance_method On Tue, Jun 7, 2011 at 2:15 PM, Mauro mrsan...@gmail.com wrote: On 7 June 2011 19:37, Chris Eppstein ch...@eppsteins.net wrote: = succeed(,) do I don't undestand this, can you do some examples? -- You received

Re: [haml] Cannot modify SafeBuffer in place on Rails 3.0.8

2011-06-07 Thread Chris Eppstein
This release should fix the issue: https://rubygems.org/gems/haml/versions/3.1.2 On Tue, Jun 7, 2011 at 6:56 PM, francois.beausoleil francois.beausol...@gmail.com wrote: Hi everyone! I'm not the only one with this: http://www.ruby-forum.com/topic/1881018 I found this issue when I switched

Re: [haml] sass: using multiple @extend rules

2011-05-25 Thread Chris Eppstein
This would be a nice feature to have. Please file an enhancement request: https://github.com/nex3/sass/issues Also, now that Sass and Haml have be separated, please use the sass-lang group for sass related discussions: http://groups.google.com/group/sass-lang Thanks, Chris On Wed, May 25, 2011

Re: [haml] Exponential

2011-04-24 Thread Chris Eppstein
You're not missing it. There's no syntax or function for this. You can add a custom function to sass to implement this in ruby. Chris Hunt pecked on my iPhone... Sorry if it's brief! On Apr 23, 2011, at 10:29 PM, davidyeiser da...@designintellection.com wrote: Forgive me if I'm missing

Re: [haml] Re: Exponential

2011-04-24 Thread Chris Eppstein
compact) Any idea on what I'm doing wrong? P.S. It's probably obvious that I've never programmed in Ruby before, and if this mailing list isn't supposed to be used for n00b support just let me know. Thanks! On Apr 24, 10:39 am, Chris Eppstein ch...@eppsteins.net wrote: You're not missing

Re: [haml] HSV color model support?

2011-04-24 Thread Chris Eppstein
Here's the most excellent HSL picker that Brandon made: http://hslpicker.com/ On Sun, Apr 24, 2011 at 6:43 PM, Eric Meyer eriii...@gmail.com wrote: And, for clarification, yes: Saturation is used in two different ways in the two systems. More here: http://en.wikipedia.org/wiki/HSL_and_HSV

Re: [haml] Re: Exponential

2011-04-24 Thread Chris Eppstein
Is this the wrong file? On Apr 24, 4:25 pm, Chris Eppstein ch...@eppsteins.net wrote: I suspect that you're code is not being required at all because the code you pasted isn't going to work and the behavior you're seeing is as if it's not present. The code should be: def exp(value, power

Re: [haml] Media detection

2011-04-19 Thread Chris Eppstein
Variables are computed during compilation to CSS and @media blocks are interpreted by the browser. This behavior is what you'd expect in a browser-based implementation of Sass, but it's not how it works at the present. chris On Tue, Apr 19, 2011 at 7:49 PM, David Jacobs

Re: [haml] Does Sass support dynamic variable names?

2011-04-14 Thread Chris Eppstein
You cannot dynamically construct variables. In sass 3.1 there's a new function called `if` so you can do this: width: if($orientation == portrait, $portrait_width, $landscape_width); chris On Thu, Apr 14, 2011 at 1:32 AM, Victor Nystad vnys...@gmail.com wrote: I'm writing a mixin for a grid

Re: [haml] [sass] Convert px to int? (Simply want to change the units.)

2011-04-14 Thread Chris Eppstein
40px / 1px will do the trick. On Thu, Apr 14, 2011 at 2:15 PM, Chris Roth chrisr...@gmail.com wrote: This seems like a simple enough thing to do, but I can't find it in the docs oddly enough. Is there a way to convert a value from pixels to an integer? For example: int(40px) == 40

Re: [haml] Re: [sass] Convert px to int? (Simply want to change the units.)

2011-04-14 Thread Chris Eppstein
elegant :p On Apr 14, 5:18 pm, Chris Eppstein ch...@eppsteins.net wrote: 40px / 1px will do the trick. On Thu, Apr 14, 2011 at 2:15 PM, Chris Roth chrisr...@gmail.com wrote: This seems like a simple enough thing to do, but I can't find it in the docs oddly enough

Re: [haml] How can I make Emacs load Sass mode for .scss?

2011-04-11 Thread Chris Eppstein
If you prefer .sass files, you can pass `--syntax sass` to the compass when creating your project, or set preferred_syntax = :sass in your config, or you can just make .sass files and compass will compile them appropriately. chris On Mon, Apr 11, 2011 at 11:27 AM, Arve Knudsen

Re: [haml] Hi there, anybody know how to clean up/tidy/beautify sass code?

2011-04-07 Thread Chris Eppstein
sass-convert --from scss --to scss --in-place path/to/file.scss will pretty print your file. There's also a --recursive option to process a whole directory tree of files. chris On Thu, Apr 7, 2011 at 2:03 AM, andres andres.d...@traddia.com wrote: Got here from the sass site. I guess haml and

Re: [haml] store selectors in a SASS variable

2011-04-06 Thread Chris Eppstein
You can only store values in sass variables and selectors are only dynamic if you add scripting within #{}. So the following would work for you: $selectors: .leftColumn, .rightColumn, .mainColumn; #{$selectors} { background:red; } Hunt pecked on my iPhone... Sorry if it's brief! On Apr

Re: [haml] Re: From LESS to SCSS: joys and miseries

2011-03-19 Thread Chris Eppstein
I don't like that having an extension behaves differently than not. That is sure to trip some people up. In my ideal syntax we'd have the following: @import = A browser-based import with no special meaning @include = Does what @import does now for sass/scss files @mix = Does what @include does

Re: [haml] From LESS to SCSS: joys and miseries

2011-03-19 Thread Chris Eppstein
On the subject of property extraction, I am -1. Pertinent to the general discussion, here's a blog post I wrote about how we approach the Sass language design process and the thought process we go through: http://chriseppstein.github.com/blog/2010/08/16/sass-language-design/ The goal should not

Re: [haml] Templates

2011-03-16 Thread Chris Eppstein
You'll need to use haml in conjunction with a framework for this functionality. If you just want a static site look into staticmatic, nanoc, middleman, or one the like. chris On Tue, Mar 15, 2011 at 9:46 PM, andoriyu andor...@gmail.com wrote: Hello, It there any way to include haml in haml?

Re: [haml] Using tap with Haml to create scoped local variables

2011-03-16 Thread Chris Eppstein
You don't need a block for this, you just need a local variable. chris On Wed, Mar 16, 2011 at 7:28 AM, Szymon Nowak szi...@gmail.com wrote: Hey, in ERB it was possible to use tap to not repeat some calculations, e.g.: % Model.some_complex_query.tap do |result| % %= something if

Re: [haml] [sass] Sass::SyntaxError File to import not found or unreadable

2011-03-16 Thread Chris Eppstein
Could be a regression. I just changed some code related to that. What does the generated file look like? For now, a work-around is probably to make the import relative to a directory on the sass load_path. Hunt pecked on my iPhone... Sorry if it's brief! On Mar 16, 2011, at 8:50 PM, Raving

Re: [haml] $ sass --watch style.scss:syle.css

2011-03-12 Thread Chris Eppstein
Uninstall haml-edge and see if it works. It's obsolete now. If you want the latest haml, just install haml with the --pre option to gem install. chris On Sat, Mar 12, 2011 at 6:42 PM, chirripuerco danrme...@gmail.com wrote: Hello, I'm just starting with sass and haml, I ended up becouse I'm

Re: [haml] Re: $ sass --watch style.scss:syle.css

2011-03-12 Thread Chris Eppstein
finally found it in /var/lib/gems/1.9.2/gems/haml-3.0.25 what should I do, create a symblic link from there to /usr/bin/ ? On Mar 12, 9:45 pm, Chris Eppstein ch...@eppsteins.net wrote: Uninstall haml-edge and see if it works. It's obsolete now. If you want the latest haml, just install haml

Re: [haml] Re: haml syntax and content_for?

2011-02-25 Thread Chris Eppstein
content_for?(:thing) returns a boolean indicating whether there is content stored for :thing. So you should use an if statement with it: - if content_for?(:sidebar) .sidebar= yield(:sidebar) chris On Fri, Feb 25, 2011 at 1:42 PM, Slava Mikerin mikerin.sl...@gmail.comwrote: thank you for

Re: [haml] is writing an helper better ?

2011-02-20 Thread Chris Eppstein
Helpers should be used to keep programming logic outside of your views. Haml is for generating markup. You can do this using normal haml syntax: %fb:prompt-permission(perms=offline_access) Give me access chris On Sun, Feb 20, 2011 at 8:56 AM, kadoudal kadou...@gmail.com wrote: I read in some

Re: [haml] Re: Configure sass not to autocompile?

2011-02-10 Thread Chris Eppstein
file it is as I cannot seem to find one that uses Sass:Plugin anywhere. On Dec 18 2010, 5:20 pm, Chris Eppstein ch...@eppsteins.net wrote: This disables compilation: Sass::Plugin.options[:never_update] = true chris On Sat, Dec 18, 2010 at 3:04 PM, Bradley Grzesiak listro

Re: [haml] Re: Sass slow down my spec 6 times

2011-02-08 Thread Chris Eppstein
::Plugin.options don't have any effect in the compilation proccess. Is that right? Is there any substitute for the options hash? On Feb 7, 9:19 pm, Chris Eppstein ch...@eppsteins.net wrote: it will be faster if you upgrade to the latest alpha but it will still be slower than 3.0 was. chris

Re: [haml] I am new to Sass and am getting this error..

2011-02-08 Thread Chris Eppstein
Using sass with RVM causes this because FSEvents is a library that is only available in the system install. All it means is that at worst compilation will start about 1s after you save. If you're on a laptop, polling will use up battery faster than using fsevents. chris On Tue, Feb 8, 2011 at

Re: [haml] Re: Sass slow down my spec 6 times

2011-02-08 Thread Chris Eppstein
I wrote Sass::Plugin.options = ... After read the code looks like I need to user merge! instead but I'm sure it's not related to the speed of specs. On Feb 8, 5:13 pm, Chris Eppstein ch...@eppsteins.net wrote: I don't think anything has changed in that respect unless you're running edge

Re: [haml] I am new to Sass and am getting this error..

2011-02-08 Thread Chris Eppstein
757-647-5525 geo...@stoplion.com AIM: angelmcfood http://stoplion.com/ http://noahlarmz.com On Tue, Feb 8, 2011 at 2:20 PM, Chris Eppstein ch...@eppsteins.netwrote: Using sass with RVM causes this because FSEvents is a library that is only available

Re: [haml] Super/extend for Mixins?

2011-01-26 Thread Chris Eppstein
I like this idea. In talking to Tab Atkins about the new CSS improvements coming down the pipeline, we discussed this. In CSS there will be a document cascade of mixin values, so this will be possible. In Sass, mixins currently overwrite the definition in a global map so we would need to instead

Re: [haml] Haml + Ragel

2011-01-25 Thread Chris Eppstein
Do you have the :ugly option set to true? chris On Tue, Jan 25, 2011 at 6:02 AM, Bruno Azisaka Maciel br...@azisaka.com.brwrote: Hi, is there anyone working on a parser for Haml using Ragel? I'm working on a project and Haml is our biggest problem right now. Haml takes around 80% of

Re: [haml] Re: HAML 3.0.4 Compiled CSS that causes errors in IE

2011-01-19 Thread Chris Eppstein
was to simply inquire and relay my findings. Thanks On Jan 18, 11:13 am, Chris Eppstein ch...@eppsteins.net wrote: Why would you have debug_info on when using any browser other than Firefox? It's adds a ton of bloat to your css file and should be used in development only in conjunction

Re: [haml] HAML 3.0.4 Compiled CSS that causes errors in IE

2011-01-18 Thread Chris Eppstein
Why would you have debug_info on when using any browser other than Firefox? It's adds a ton of bloat to your css file and should be used in development only in conjunction with FireSass. Chris On Tue, Jan 18, 2011 at 10:03 AM, Josh Rubinstein joshmaxrubinst...@gmail.com wrote: It is my hope

Re: [haml] Change transparency by percentage

2011-01-14 Thread Chris Eppstein
In sass 3.1 you can use: scale-color to change many different attributes by a percentage. On Fri, Jan 14, 2011 at 1:17 PM, abierbaum abierb...@gmail.com wrote: Is it possible to change a transparency by percentage? The only method I can find is transparentize (http://sass-lang.com/

Re: [haml] Using sass with qt stylesheets

2011-01-11 Thread Chris Eppstein
Regarding your first point, it can be done by monkey patching sass to change how colors behave when output. You could drop this into your compass config and I think it will do what you need (this overwrites the rgba_str method for all colors): module Sass::Script class Color Literal def

Re: [haml] Using sass with qt stylesheets

2011-01-11 Thread Chris Eppstein
::Script::Lexer#special_fun to recognize it as a syntactically non-standard function, but that would be a little tricker than the Color monkeypatch. On Tue, Jan 11, 2011 at 1:21 PM, Chris Eppstein ch...@eppsteins.netwrote: Regarding your first point, it can be done by monkey patching sass to change

Re: [haml] HAML * operator returns em instead of px

2011-01-04 Thread Chris Eppstein
Because when stored in an intermediate value it makes sense, it only becomes invalid if you try to assign a complex value to a property. On Tue, Jan 4, 2011 at 1:38 PM, Abhik Pramanik abh...@gmail.com wrote: Hmm ok, I guess why allow multiplication of two values with units? 1px * 1px would

Re: [haml] Haml can't parse element attributes containing '-' i.e. %div{:class=tipped, :data-tipped=A basic tooltip}

2010-12-22 Thread Chris Eppstein
The bit between the curly braces is parsed by ruby. Your code is not valid ruby. A symbol containing a dash should be quoted: :data-typed Chris Hunt pecked on my iPhone... Sorry if it's brief! On Dec 22, 2010, at 11:01 AM, SS stoyan.stoitch...@gmail.com wrote: Hi, I was planning to use

Re: [haml] Configure sass not to autocompile?

2010-12-18 Thread Chris Eppstein
This disables compilation: Sass::Plugin.options[:never_update] = true chris On Sat, Dec 18, 2010 at 3:04 PM, Bradley Grzesiak listro...@gmail.comwrote: Presuming you're using Bundler, you could possibly move Sass into the development group, and do: heroku config:add

Re: [haml] How to prefix ALL html elements' ids and classes?

2010-12-01 Thread Chris Eppstein
This would be pretty easy to do with Nokogiri and a block helper. On Wed, Dec 1, 2010 at 11:12 AM, Nathan Weizenbaum nex...@gmail.com wrote: There's no easy way to do this. You'd need to either modify some internal Haml code or post-process your HTML. On Wed, Dec 1, 2010 at 1:36 AM, Kot

Re: [haml] Re: How do I put a strong tag inside of a link_to

2010-11-18 Thread Chris Eppstein
%li a href=#{new_path}Create strongFREE/strong Whatever/a This and other tips available at: http://chriseppstein.github.com/blog/2010/02/08/haml-sucks-for-content/ http://chriseppstein.github.com/blog/2010/02/08/haml-sucks-for-content/ chris On Thu, Nov 18, 2010 at 3:42 PM, Geoff Evason

Re: [haml] Re: Nested mixins, why not?

2010-11-01 Thread Chris Eppstein
be fine, but I'm also building the UI in MVC JavaScript with Active.js and it seems wonky to have to manage all of these class names in the view logic. I'd much rather do: li class=tile2, and push all of the details into local sass mixins. Thoughts? On Oct 29, 2:52 pm, Chris Eppstein ch

Re: [haml] SASS and asset hosts

2010-10-28 Thread Chris Eppstein
This is a feature of compass... you can save yourself a lot of work by using it. http://compass-style.org/docs/tutorials/configuration-reference/ http://compass-style.org/docs/tutorials/configuration-reference/Search for asset_host Chris On Thu, Oct 28, 2010 at 12:13 PM, Matt Beale

Re: [haml] Haml/Sass 3.0.19 Released

2010-09-29 Thread Chris Eppstein
We've received a bug report that applies to this release: http://github.com/nex3/haml/issues/issue/286 http://github.com/nex3/haml/issues/issue/286I've already pushed a fix for it: http://github.com/nex3/haml/commit/349bc86c51f47349045f2d835f787a0f561d6fbc

Re: [haml] Hotlinking SASS

2010-09-28 Thread Chris Eppstein
In Sass 3.1, one could build an importer that goes to the internet and returns the imported file -- I don't think we'll have any such capability out of the box in 3.1. In 3.0 and earlier, you'd need to download the file locally to import it as a sass file. chris On Tue, Sep 28, 2010 at 12:33

Re: [haml] Dynamic SCSS change

2010-09-20 Thread Chris Eppstein
The sass engine does not support mutation like this (at this time). I suggest you make your changes to the string first and then parse it. Chris On Mon, Sep 20, 2010 at 8:10 AM, gmile iamex...@gmail.com wrote: I'm trying to make a admin tool to be able to change my style-sheets from withing

Re: [haml] content_tag , div_for issue

2010-09-09 Thread Chris Eppstein
http://rubygems.org/gems/haml/versions/3.0.18 On Thu, Sep 9, 2010 at 12:17 PM, radhames brito rbri...@gmail.com wrote: finally someone is answers rails (2.3.8) haml (3.0.17) On Thu, Sep 9, 2010 at 2:34 PM, Nathan Weizenbaum nex...@gmail.comwrote: What versions of Rails and Haml are you

Re: [haml] Add X11 Colors?

2010-09-09 Thread Chris Eppstein
Hi, That would be great. We have a sass release coming out pretty soon. I assume you'll be pulling the names and values from this list? http://www.w3.org/TR/css3-iccprof#x11-color http://www.w3.org/TR/css3-iccprof#x11-colorChris On Thu, Sep 9, 2010 at 2:32 PM, BladeBronson

Re: [haml] Can I make this code DRYer?

2010-09-07 Thread Chris Eppstein
Hard to say without seeing the definition of those mixins. On Tue, Sep 7, 2010 at 4:35 PM, Sonja Elen Kisa sonj...@gmail.com wrote: Can I make this SCSS DRYer? http://pastie.org/1144761 -- You received this message because you are subscribed to the Google Groups Haml group. To post to

Re: [haml] Re: Can I make this code DRYer?

2010-09-07 Thread Chris Eppstein
That is dryer input. But it's the same output. It's possible that using @extend could make smaller output but I can't say without seeing the other mixins. chris On Tue, Sep 7, 2010 at 4:44 PM, Sonja Elen Kisa sonj...@gmail.com wrote: Ah yes, like this! http://pastie.org/1144785 -- You

Re: [haml] @import whole directories

2010-09-05 Thread Chris Eppstein
We get asked for this feature a lot, but we've decided to not add it. For an explaination for why and insight into how we manage the sass language read this: http://chriseppstein.github.com/blog/2010/08/16/sass-language-design/ tl;dr - the feature has more drawbacks than benefits. make a single

Re: [haml] SASS: Eliding Vendor Specific CSS prefixes

2010-08-30 Thread Chris Eppstein
Compass is a framework built on top of Sass and it provides mixins for all your css3 needs: http://compass-style.org/docs/reference/compass/css3/ http://compass-style.org/docs/reference/compass/css3/you just need to do the following: .fadeable { @include transition-property(opacity);

Re: [haml] rails 3 generator does not find 'haml'

2010-08-29 Thread Chris Eppstein
For some reason, Haml does not provide rails 3 generators yet. I think there's some other plugins you can install but I don't know which to recommend. chris On Sun, Aug 29, 2010 at 6:47 AM, nathanvda nathan...@gmail.com wrote: If i type 'rails g controller Posts index' i get the error error

Re: [haml] Re: Sass doesn't automatically generate CSS on Rails 3

2010-08-29 Thread Chris Eppstein
I've found that unless I explicitly list in my Gemfile: gem haml then the sass plugin doesn't get activated. Can you verify if you have that set up? chris On Sun, Aug 29, 2010 at 2:59 PM, Nathan Weizenbaum nex...@gmail.com wrote: Does it work if you use Ruby 1.9.1? Does it work on a

Re: [haml] Is it possible to have Sass throw an error if it can't find the file requested to be imported?

2010-08-28 Thread Chris Eppstein
We deprecated the current behavior in 3.0 with a warning and will remove the default assumption that @import intends to import any missing file with no extension as css in the next release. Please watch your application log for deprecation warnings. chris On Sat, Aug 28, 2010 at 12:57 PM, Chris

Re: [haml] [Feature idea] Specify classes attribute as hash

2010-08-25 Thread Chris Eppstein
If you pass an array to haml it will join the values with spaces: %a{:class = [foo, bar, baz]} = a class=foo bar baz/a If one of the values is nil, it is handled for you. %a{:class = [foo, (bar if false), baz]} = a class=foo baz/a This behavior plus helpers is very useful and doesn't require

Re: [haml] Darken function affecting brightness and saturation

2010-08-25 Thread Chris Eppstein
This looks like a sass bug: $ sass -i $c : #ADC1CC #adc1cc saturation($c) 23.308% saturation(darken($c, 50%)) 23.308% darken($c, 50%) #2f414b saturation(#2f414b) 22.951% Can you file a bug? We'll get it fixed soon: http://github.com/nex3/haml/issues -chris On Wed, Aug 25, 2010 at 12:08

Re: [haml] Re: Darken function affecting brightness and saturation

2010-08-25 Thread Chris Eppstein
Would you expect this to be true or false? darken(lighten($c, 25%), 25%) == $c -chris On Wed, Aug 25, 2010 at 4:46 PM, Noel wwydi...@gmail.com wrote: For what it's worth, as a outside observer just following along and having never used the function. My initial expectation upon reading

Re: [haml] Re: Darken function affecting brightness and saturation

2010-08-25 Thread Chris Eppstein
%), 25%) == $c is false? I would expect it to be true so if I have a color I lighten it by 50% and then darken it by 50% I am back to the original color. On Wed, Aug 25, 2010 at 4:48 PM, Chris Eppstein ch...@eppsteins.net wrote: Would you expect this to be true or false? darken(lighten($c

Re: [haml] Re: problem with content_for in haml?

2010-08-24 Thread Chris Eppstein
, 2010 at 2:05 AM, Eumir imacaterpil...@gmail.com wrote: is it possible because we are mixing haml and erb?(i know it shouldn't) the one calling the yield is in erb. the one calling content_for is haml On Aug 24, 5:03 pm, Chris Eppstein ch...@eppsteins.net wrote: content_for appends when I do

Re: [haml] List inside link

2010-08-22 Thread Chris Eppstein
Haml is giving you what you're requesting but the browser is not -- some block elements within inline content are/used-to-be invalid which would cause the browser to close the inline tag when they block elements are encountered -- assuming you left off the end tag. Then when it sees the trailing

Re: [haml] Re: =function(!param) errors

2010-08-17 Thread Chris Eppstein
be the # in the color codes, but looks like it's still working cleanly for you. May have to do the Sass 3 upgrade. Much obliged for your assistance! Regards, Chris G On Aug 13, 5:44 pm, Chris Eppstein ch...@eppsteins.net wrote: I got an error because there was newlines. removing those

Re: [haml] Re: Shortcut for @extend in SASS

2010-08-16 Thread Chris Eppstein
? .bigerror error Thanks again, DAZ On Aug 15, 5:59 pm, Chris Eppstein ch...@eppsteins.net wrote: @mixin and @include were introduced for scss to avoid introducing new parsing rules into that syntax. We support the original/shortcut syntax in sass files

Re: [haml] Shortcut for @extend in SASS

2010-08-15 Thread Chris Eppstein
@mixin and @include were introduced for scss to avoid introducing new parsing rules into that syntax. We support the original/shortcut syntax in sass files for consistency and do not plan to deprecate them unless there are changes to the CSS specification require it. The examples we use on the

Re: [haml] Re: Wrong sass --update exit code in case of errors

2010-08-15 Thread Chris Eppstein
For what it's worth, I use tests for this. Compass provides a base class for testing your stylesheets. http://github.com/chriseppstein/compass/blob/stable/lib/compass/test_case.rb http://github.com/chriseppstein/compass/blob/stable/lib/compass/test_case.rb Chris On Sun, Aug 15, 2010 at 12:47

Re: [haml] [sass] =function(!param) errors

2010-08-13 Thread Chris Eppstein
In sass 3, the variable prefix has changed from ! to $ and = is now : in all cases. Once you change those, you should be good to go. if not, please let us know the deprecation warning you're getting and we'll help you decipher it. chris On Fri, Aug 13, 2010 at 2:33 PM, Chris G

Re: [haml] Re: [sass] =function(!param) errors

2010-08-13 Thread Chris Eppstein
/likeme/likeme-g/LikeMe/ public/stylesheets/sass/application.sass' Implicit strings have been deprecated and will be removed in version 2.4. 'moz' was not quoted. Please add double quotes (e.g. moz). Thanks again, Chris G On Aug 13, 3:41 pm, Chris Eppstein ch...@eppsteins.net wrote: In sass

Re: [haml] Re: [sass] =function(!param) errors

2010-08-13 Thread Chris Eppstein
}, #{! bottomcolor}) 63: background = -webkit-gradient(linear, left top, left bottom, from(#{!topcolor}), to(#{!bottomcolor})) (And understood on Sass 3 -- just very gunshy from past migrations of other tech -- but will give it a shot soon) /c On Aug 13, 3:56 pm, Chris Eppstein ch...@eppsteins.net wrote

Re: [haml] Re: [sass] =function(!param) errors

2010-08-13 Thread Chris Eppstein
that the function/mixin is what's complicating things -- but it's the only way that the parameter replacement makes sense. Thanks greatly for your time, Chris On Aug 13, 5:11 pm, Chris Eppstein ch...@eppsteins.net wrote: The following works for me in sass 2.2.22: !topcolor = red

Re: [haml] Re: Deprecating color math?

2010-08-09 Thread Chris Eppstein
On Sun, Aug 8, 2010 at 6:10 PM, Andrew Vit and...@avit.ca wrote: Hi Chris, I haven't done much new work with Sass lately but I do remember using the math arithmetic (probably from before the functions were added). I'll probably have some deprecation warnings to take care of... Not a big

[haml] Deprecating color math?

2010-08-08 Thread Chris Eppstein
Now that sass has the color functions, we are considering deprecating color math syntax which is not very useful in our experience. This means that the following syntax would be slated for removal: #abc + #321 = #ddd #abc - #321 = #79b #333 * 3 = #999 #999 / 3 = #333 The full set of color

Re: [haml] Deprecating color math?

2010-08-08 Thread Chris Eppstein
of Sass? -- Lorin Tackett http://lorintackett.com On Aug 8, 2010, at 10:15 AM, Chris Eppstein wrote: Now that sass has the color functions, we are considering deprecating color math syntax which is not very useful in our experience. This means that the following syntax would be slated

Re: [haml] Deprecating color math?

2010-08-08 Thread Chris Eppstein
functions vs. the color math, but I'm not seeing the benefit of removing them at this time. I still use color math sometimes when I'm feeling lazy (mostly :hover states). -- Lorin Tackett http://lorintackett.com On Aug 8, 2010, at 2:19 PM, Chris Eppstein wrote: It's possible that the color math

Re: [haml] Pass a string to Haml::Exec::SassConvert ?

2010-08-03 Thread Chris Eppstein
Silly rubyist, some things are better done with shell :P Try this for your command body: echo $TM_SELECTED_TEXT | sass-convert --from sass --to scss Chris On Tue, Aug 3, 2010 at 4:25 PM, Charles Roper reac...@charlesroper.co.ukwrote: Hi, Is it possible to pass a string to SassConvert? I

Re: [haml] Pass a string to Haml::Exec::SassConvert ?

2010-08-03 Thread Chris Eppstein
August 2010 00:35, Chris Eppstein ch...@eppsteins.net wrote: Silly rubyist, some things are better done with shell :P Try this for your command body: echo $TM_SELECTED_TEXT | sass-convert --from sass --to scss Chris On Tue, Aug 3, 2010 at 4:25 PM, Charles Roper reac

Re: [haml] Multiple Backgrounds

2010-07-27 Thread Chris Eppstein
We don't handle multiple backgrounds in compass yet. I'd love to see some recommendation about how that would work. I think we might actually need some sass support to do it right. chris On Tue, Jul 27, 2010 at 11:35 AM, Bradley Grzesiak listro...@gmail.comwrote: Try compass.

Re: [haml] Webkit Hack: What is the appropriate syntax to target webkit browsers only

2010-07-22 Thread Chris Eppstein
This is a great list of hacks: http://paulirish.com/2009/browser-specific-css-hacks/ http://paulirish.com/2009/browser-specific-css-hacks/but I'm curious why you need to a modern browser... Also, that @media query works fine for me in an scss file. chris On Thu, Jul 22, 2010 at 12:15 PM, Josh

Re: [haml] Webkit Hack: What is the appropriate syntax to target webkit browsers only

2010-07-22 Thread Chris Eppstein
s/need to a/need to hack a/ On Thu, Jul 22, 2010 at 12:18 PM, Chris Eppstein ch...@eppsteins.netwrote: This is a great list of hacks: http://paulirish.com/2009/browser-specific-css-hacks/ http://paulirish.com/2009/browser-specific-css-hacks/but I'm curious why you need to a modern browser

Re: [haml] Bubbles for SASS

2010-07-16 Thread Chris Eppstein
very nice! On Fri, Jul 16, 2010 at 4:02 AM, Andrea Ferretti ferrettiand...@gmail.comwrote: Hi, I just wanted to let you know that I implemented in SASS some mixins for CSS speech bubbles. The original idea is due to Nicolas Gallagher, and it is presented on

Re: [haml] Sass - Referencing parent selectors with media queries

2010-07-11 Thread Chris Eppstein
Interesting. It doesn't make sense for to refer to a directive so this seems like a sensible behavior in that case. I doubt this is very hard to implement -- would you open an issue on github so we don't forget? chris On Sun, Jul 11, 2010 at 10:53 AM, Aaron Russell aaron...@gmail.com wrote:

Re: [haml] erb renders in production

2010-06-18 Thread Chris Eppstein
We got bit by this recently too. I think the issue is that different filesystems order the files differently. Delete your unused code :) On Fri, Jun 18, 2010 at 12:01 PM, Bradley Grzesiak listro...@gmail.comwrote: I think it's actually a problem with Rails, which is fixed in Rails 3. Anyway,

Re: [haml] Sass Upgrade Issue

2010-06-18 Thread Chris Eppstein
Ok. I do think that this is a bug (nathan should confirm) or at least a better error message is needed. The error goes away when you add a space between the parent reference operator and the body selector. But: Your parent reference operators are not needed. Simple nesting will get you the

Re: [haml] escape chars in tag-names

2010-06-10 Thread Chris Eppstein
This works for me: %fb-like= value #= fb-likevalue/fb-like What version of haml are you using? chris On Thu, Jun 10, 2010 at 7:59 AM, Jonas Grau jonas.g...@gmail.com wrote: Hi group I have (what i think is) a simple question: i need to write a fb- like tag in haml, but %fb-like cannot

Re: [haml] Migrating to SASS3

2010-06-08 Thread Chris Eppstein
Most if not all of these questions are answered on nathan's blog. Please read the recent posts there an let us know if you have any further questions or concerns. http://nex-3.com/ Chris Hunt pecked on my iPhone... Sorry if it's brief! On Jun 8, 2010, at 9:20 AM, Andrea Ferretti

Re: [haml] Re: ruby variables in sass

2010-06-03 Thread Chris Eppstein
You can pass data to your functions via the engine options that you pass to Engine.new when you compile your stylesheet. Like so: css_contents = Sass::Engine.new(contents_of_sass_file, :custom = {:company_id = current_user.company.id}, :style = :compressed).render Then in your function you can

Re: [haml] HAML Case always outputs and error, code looks good, bug or errror? I dont see it please help

2010-06-03 Thread Chris Eppstein
try: - case @controller.controller_name instead of =. On Thu, Jun 3, 2010 at 4:18 AM, rubytastic voorr...@gmail.com wrote: Below application.html.haml gives me From the Haml reference my code should appear to be correct except there was no else statement example in the haml reference so

Re: [haml] Re: Bug Report: comments break when sass-convert (s)css to sass

2010-05-31 Thread Chris Eppstein
Sass comments are closed by an outdent, they don't need to be closed by */, but they may if you so desire. You can verify this by viewing the generated css of your sass file. Chris On Mon, May 31, 2010 at 7:45 PM, Matt matt.mart...@gmail.com wrote: Nathan, $ cat comment_test.sass

Re: [haml] css not updated in Rails3 development environment

2010-05-28 Thread Chris Eppstein
What is the value of Sass::Plugin.options? Hunt pecked on my iPhone... Sorry if it's brief! On May 28, 2010, at 7:30 AM, yannis_ chocolatepango...@gmail.com wrote: Hi everyone, I'm currently developing a small Rails3 app, using Haml and Sass. In the development environment, after edition

Re: [haml] [SASS] SystemStackError: stack level too deep

2010-05-20 Thread Chris Eppstein
can you extract some interesting bits from the stack trace when using --trace? chris On Thu, May 20, 2010 at 4:55 PM, joshcody joshc...@gmail.com wrote: On my local machine, I'm getting the following erro: Joshua-Codys-MacBook-Pro-4:css jcody$ sass --watch main.sass Sass is watching for

Re: [haml] opinion: = for variable assignment (sass3)

2010-05-13 Thread Chris Eppstein
I think the syntactic consistency is very important for scss, a little less so for sass, but where possible, I'd like sass and scss to be the same to make it easier for users to be able to read them both. So, I'd like to wait until decent editor support is available before considering this. It

Re: [haml] Why does test environment default to :ugly = false?

2010-05-10 Thread Chris Eppstein
In my opinion, :ugly should always be true. It's way faster. formatted output is either for debugging or stroking your geek ego. I set it to true in environment.rb. chris On Mon, May 10, 2010 at 12:02 PM, Chris Hanks christopher.m.ha...@gmail.com wrote: Hi - I'm just now playing with HAML

Re: [haml] Install Sass 2.x

2010-05-10 Thread Chris Eppstein
gem install haml --version 2.2.24 On Mon, May 10, 2010 at 10:28 PM, Brajeshwar brajesh...@gmail.com wrote: Hi, So how do I install the latest Sass 2.x version? Regards, Brajeshwar _ -- You received this message because you are subscribed to the Google Groups Haml

Re: [haml] Install Sass 2.x

2010-05-10 Thread Chris Eppstein
still on the old legacy Sass/Compass combo. Regards, Brajeshwar _ On Tue, May 11, 2010 at 11:08 AM, Chris Eppstein ch...@eppsteins.net wrote: gem install haml --version 2.2.24 On Mon, May 10, 2010 at 10:28 PM, Brajeshwar brajesh...@gmail.com wrote: Hi, So

  1   2   3   4   >