Give help. Get help.

  • # April 12, 2013 at 8:33 am

    can’t get /* */-comments (do we say ‘normal css comments’?) to compile into comments on the same line as a property.


    color: #369
    font-size: 2em /* i like ems */
    padding: 20px

    …should compile into:

    .foo {
    color: #336699;
    font-size: 2em; /* i like ems */
    padding: 20px; }


    feels like they work in the same way as silent comments (//)

    thoughts anyone?

    # April 12, 2013 at 9:40 am

    Not sure if it’s typos or anything (or if your compiler allows this) but your pre-compiled code doesn’t have brackets and semicolons.

    I use as my SASS compiler and if I use this code:

    .foo {
    color: #369;
    font-size: 2em; /* i like ems */
    padding: 20px;

    …it compiles into:

    .foo {
    color: #369;
    font-size: 2em;
    /* i like ems */
    padding: 20px;

    # April 12, 2013 at 11:13 am

    Try placing `!` mark, like so: `/*! comment */`.

    I never leave comments in production code, but I never had issues with SASS compiler on Linux when I just compile it with
    `sass –watch app.scss:app.css`
    and adding
    `–style compressed`
    would make the code production ready, which strips out the comments.

    # April 28, 2013 at 5:24 pm

    tnx for answers, ppl!

    i’m using [Guard](,d.ZGU) on win7.
    i’ll minify the css for production for sure, but at the moment it is set to **:style => :expanded** in my Guardfile.

    i’m using the SASS syntax (without the brackets/semicolons.)
    only if i use the SCSS syntax i can get the comment to (at least) pop down under + then i don’t need to use the bang (!) in the comment.

    # April 29, 2013 at 2:38 am

    Works with scss syntax but not with sass.

    You can also download [Prepros App]( for windows which does compiling and live browser refresh.

    # April 29, 2013 at 7:51 pm

    sweet. never heard of it.
    will check. cheers!
    the LiveReload beta was dodgy. this might be an alternative, but i’m trying to use the command line as much as possible (though even Guard prevents it ;))

    # April 29, 2013 at 8:04 pm

    now… if i only could get that executable it would be nice…

    # April 30, 2013 at 3:39 am

    Sorry @twincy, Now you can download. Cheers !

    # May 11, 2013 at 2:54 pm

    awesomesauce :)

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.