New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@extend a selector without printing it #211

Closed
barraponto opened this Issue Nov 10, 2011 · 8 comments

Comments

Projects
None yet
4 participants
@barraponto

What I'm looking for is a way to @extend a selector without printing it.

I'm looking for this feature because I write some styles that are used several by several markups, but I don't want to tie them to any markup. Currently, I'm using classes starting with - (hyphen) since they are probably not being used in the actual markup.

@nex3 once suggested using a @quiet directive to define these non-printing classes. I thought of using _ (underscore) in the beginning of the selector, to make it consistent with partials. Either way will do.

@barraponto

This comment has been minimized.

Show comment
Hide comment
@barraponto

barraponto Nov 10, 2011

I'm thinking of funding this feature, please let me know how much would it cost to get this coded.

I'm thinking of funding this feature, please let me know how much would it cost to get this coded.

@timplunkett

This comment has been minimized.

Show comment
Hide comment
@timplunkett

timplunkett Nov 22, 2011

I keep resorting to using mixins instead when I don't want to have them print. I'm not sure of the best practice on this.

I keep resorting to using mixins instead when I don't want to have them print. I'm not sure of the best practice on this.

@barraponto

This comment has been minimized.

Show comment
Hide comment
@barraponto

barraponto Nov 27, 2011

@timplunkett resorting to mixins will print the properties everytime you @include it.
also, if you try to @include an undefined mixin it breaks compilation. if you try to @extend a class that does not exist, everything works just fine.

@timplunkett resorting to mixins will print the properties everytime you @include it.
also, if you try to @include an undefined mixin it breaks compilation. if you try to @extend a class that does not exist, everything works just fine.

@timplunkett

This comment has been minimized.

Show comment
Hide comment
@timplunkett

timplunkett Nov 27, 2011

@barraponto, not sure that the first part is a bad thing. To the second part, I think that is a bug, see #111

@barraponto, not sure that the first part is a bad thing. To the second part, I think that is a bug, see #111

@quiet-xx

This comment has been minimized.

Show comment
Hide comment
@quiet-xx

quiet-xx Nov 27, 2011

The original message was received at 2011-11-27 20:05:15 +0200
from postoffice.(null) [10.0.0.1]

----- The following addresses had permanent fatal errors -----
gurgeva@gmail.com

-----Transcript of session follows -----
... while talking to postoffice.(null).:

RCPT To:gurgeva@gmail.com
<<< 550 5.1.1 unknown or illegal alias: gurgeva@gmail.com
550 gurgeva@gmail.com... User unknown

The original message was received at 2011-11-27 20:05:15 +0200
from postoffice.(null) [10.0.0.1]

----- The following addresses had permanent fatal errors -----
gurgeva@gmail.com

-----Transcript of session follows -----
... while talking to postoffice.(null).:

RCPT To:gurgeva@gmail.com
<<< 550 5.1.1 unknown or illegal alias: gurgeva@gmail.com
550 gurgeva@gmail.com... User unknown

@barraponto

This comment has been minimized.

Show comment
Hide comment
@barraponto

barraponto Dec 5, 2011

Just noticed this has already been proposed in #102 and is discussed in depth in http://blog.millermedeiros.com/2011/11/the-problem-with-css-pre-processors/

Just noticed this has already been proposed in #102 and is discussed in depth in http://blog.millermedeiros.com/2011/11/the-problem-with-css-pre-processors/

@chriseppstein

This comment has been minimized.

Show comment
Hide comment
@chriseppstein

chriseppstein Jan 10, 2012

Member

this just landed on master for sass 3.2. The feature is called "placeholder selectors".

Member

chriseppstein commented Jan 10, 2012

this just landed on master for sass 3.2. The feature is called "placeholder selectors".

@barraponto

This comment has been minimized.

Show comment
Hide comment

<3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment