Coder Social home page Coder Social logo

Comments (5)

mirisuzanne avatar mirisuzanne commented on July 20, 2024

That is exactly how it works, and has been working fine for me. Can you show me what happens when you try it?

BTW - ie fallback class is a simple string, without the "." (I should probably document that, if I didn't).

from susy.

alanhogan avatar alanhogan commented on July 20, 2024

oh… yeah, that was probably my mistake, then — I was passing the class name with the leading dot.

Hmm.

Is there a programmatic way to strip a leading dot in sass?

from susy.

mirisuzanne avatar mirisuzanne commented on July 20, 2024

Not yet, but it's coming: sass/sass#401

In the meantime, it's easy add the leading dot in Sass:

$ie: lt-ie9;
$ie-class: ".#{$ie}";

There are actually several ways you could write that, I think.

I wonder if there's a way for me to check and accept either one? I imagine that would be coming in the same commit I linked above...

from susy.

alanhogan avatar alanhogan commented on July 20, 2024

Right, yeah.

I ended up just using the IE class as you suggested – the reason this was a (small!) issue at all, and why I asked about removing the leading dot, was that I have a Sass function that takes a browser identifier like “ie” or “ie8” and generates a selector that matches our body tag in that browser or browsers (.brwsr-X); the idea was it could be used throughout the project and if we changed how browser detection happened we’d only have to change this function. (And I did already, going from body.brwsr-X to just .brwsr-X for less specificity.) But since I’m only using susy’s grid mixins directly in a few places, it’s really not a big deal at all

from susy.

mirisuzanne avatar mirisuzanne commented on July 20, 2024

Documented by: e3ebfbf

from susy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.