Sass issues
flag
Messages 11 - 20 of 45 - Collapse all
/groups/adfetch?adid=VQWsbg4AAADqhfDtC1Gumw3vljc0eJo-
Sass issues - Email updates to me  
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
5.  Tlvenn  
View profile  
 More options Oct 6 2011, 11:18 pm
From: Tlvenn <tlv...@gmail.com>
Date: Thu, 6 Oct 2011 20:18:22 -0700 (PDT)
Local: Thurs, Oct 6 2011 11:18 pm
Subject: Re: Sass issues
Thanks Nathan for your feedback, it pointed me into the right
direction !

I am now doing this instead :

RubyModule Sass = (RubyModule) container.runScriptlet("Sass");
return (String) container.callMethod(Sass, "compile", template);

And it works just fine now :)
There should be a way to construct the Engine programmatically as well
but since the Sass module has a facade for what I am trying to do,
it's enough.

Thanks again, everyone !

On Oct 7, 4:04 am, Nathan Weizenbaum <nex...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Feature request: ability to prepend a selector - Email updates to me  
1.  wheresrhys  
View profile  
 More options Oct 6 2011, 5:12 am
From: wheresrhys <wheresr...@gmail.com>
Date: Thu, 6 Oct 2011 02:12:52 -0700 (PDT)
Local: Thurs, Oct 6 2011 5:12 am
Subject: Feature request: ability to prepend a selector
Given the current vogue for feature detection javascript libraries
which add classes to the <html> tag, I reckon the following might be a
useful (and maybe not too difficult to add) feature for SASS.

Imagine a scenario where you have some nested SASS rules for an
element, but want these changed if the browser doesn't support a
certain feature. With current SASS you would need to do something like
the following

#page {
    //some rules
    .video {
        display: block;
    }

}

html.no-html-video {
   #page {
        .video {
            display: none;
        }
    }

}

But if sass had a "prepend to the selector string" operator (I'll use
^, though this may not be a sensible choice) you could do the
following

#page {
    //some rules
    .video {
        display: block;
    }

    ^html.no-html-video { // equivalent to html.no-html-video
#page .video
         .video {
             display: none;
          }
    }

}

In the example I've given the difference isn't very striking, but when
you get into several levels of nested rules it could be very useful
for keeping the CSS statements well-organised and more easily
maintainable as you only have to have one copy of the nested CSS
selectors.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
2.  Nathan Weizenbaum  
View profile  
 More options Oct 6 2011, 4:06 pm
From: Nathan Weizenbaum <nex...@gmail.com>
Date: Thu, 6 Oct 2011 13:06:03 -0700
Local: Thurs, Oct 6 2011 4:06 pm
Subject: Re: [Sass] Feature request: ability to prepend a selector

You can do this using the parent selector; e.g. "html.no-html-video &".


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
3.  wheresrhys  
View profile  
 More options Oct 7 2011, 4:32 am
From: wheresrhys <wheresr...@gmail.com>
Date: Fri, 7 Oct 2011 01:32:22 -0700 (PDT)
Local: Fri, Oct 7 2011 4:32 am
Subject: Re: Feature request: ability to prepend a selector
So you can - thanks for the pointing it out

On Oct 6, 9:06 pm, Nathan Weizenbaum <nex...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
4.  wheresrhys  
View profile  
 More options Oct 7 2011, 5:21 am
From: wheresrhys <wheresr...@gmail.com>
Date: Fri, 7 Oct 2011 02:21:54 -0700 (PDT)
Local: Fri, Oct 7 2011 5:21 am
Subject: Re: Feature request: ability to prepend a selector
But here's an interesting case, when combining with @extend :

.full-height-carousel {
        html.xlarge & {     height:775px; }
        html.large & { height:620px; }
        html.medium & { height:493px; }
        html.small & { height:432px; }

}

article#main #pages.generic-carousel {

        div.carousel-wrap{
                float:left;
                width:100%;
                position:relative;

                @extend .full-height-carousel;
        }

}

results in e.g.

html.xlarge .full-height-carousel,
html.xlarge article#main #pages.generic-carousel div.carousel-wrap,
article#main #pages.generic-carousel html.xlarge div.carousel-wrap {
    height: 775px;

}

The last selector is unexpected. Again, is this a bug (with @extedn
rather than &)?

Rhys

On Oct 6, 9:06 pm, Nathan Weizenbaum <nex...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bug/documentation update - Email updates to me  
1.  wheresrhys  
View profile  
 More options Oct 6 2011, 7:09 am
From: wheresrhys <wheresr...@gmail.com>
Date: Thu, 6 Oct 2011 04:09:02 -0700 (PDT)
Local: Thurs, Oct 6 2011 7:09 am
Subject: Bug/documentation update
While writing some mixins I just realised that putting a control
directive inside a nested property doesn't work. So

.class {
    font {
        @if true == true {
             style: italic;
        }
    }

}

doesn't work.

NOt sure if this is a bug to fix or maybe something that shoudl be
mentioned in the documentation


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
2.  Nathan Weizenbaum  
View profile  
 More options Oct 6 2011, 4:06 pm
From: Nathan Weizenbaum <nex...@gmail.com>
Date: Thu, 6 Oct 2011 13:06:26 -0700
Local: Thurs, Oct 6 2011 4:06 pm
Subject: Re: [Sass] Bug/documentation update

I'd consider this a bug. Please file it in the Sass issue tracker:
http://github.com/nex3/sass/issues.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
3.  wheresrhys  
View profile  
 More options Oct 7 2011, 4:32 am
From: wheresrhys <wheresr...@gmail.com>
Date: Fri, 7 Oct 2011 01:32:29 -0700 (PDT)
Local: Fri, Oct 7 2011 4:32 am
Subject: Re: Bug/documentation update
done

On Oct 6, 9:06 pm, Nathan Weizenbaum <nex...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Error after upgrade to OS X Lion - Email updates to me  
1.  James Childers  
View profile  
 More options Oct 11 2011, 2:20 pm
From: James Childers <jchilder...@gmail.com>
Date: Tue, 11 Oct 2011 11:20:50 -0700 (PDT)
Local: Tues, Oct 11 2011 2:20 pm
Subject: Re: Error after upgrade to OS X Lion

Ran into this as well. I just uninstalled the sass gem and then reinstalled
it. Worked fine afterwards.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
@content samples/info - Email updates to me  
1.  Gary Clarke  
View profile  
 More options Oct 12 2011, 4:01 pm
From: Gary Clarke <gxcla...@gmail.com>
Date: Wed, 12 Oct 2011 13:01:55 -0700 (PDT)
Local: Wed, Oct 12 2011 4:01 pm
Subject: @content samples/info

A few weeks ago I saw some information from Chris Eppstein that includes
examples of using @content. Now, I can't find it. Do you know the link?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2013 Google