Code Monkey home page Code Monkey logo

Comments (5)

Snugug avatar Snugug commented on September 24, 2024

The issue I have with that is it's technically not correct. The spec allows for the all media type to be freely omitted and for it still to work, and the reason we omit it and have the force all variable is if you would like to force the printing of the all media type. Our current setup allows for optimization out of the box optimization that will always work while providing an easy way to override that optimization while not introducing incorrect syntax to the user.

On Saturday, March 16, 2013 at 1:48 PM, Rob Wierzbowski wrote:

Removing the "all" media type by default, and then adding it back in with a settings variable is complex. Why not have "false" as an allowable default media type, which prints nothing, and let default media type "all" to print as you would expect?
Thoughts?


Reply to this email directly or view it on GitHub (https://github.com/canarymason/breakpoint/issues/39).

from breakpoint.

robwierzbowski avatar robwierzbowski commented on September 24, 2024

If "false", or omitted and inferred 'all' media, is the default, Breakpoint would still have the same out of the box optimization that would always work. I see the idea of providing correct syntax to the user, but in last month's Sassy Pgh meetup I went over breakpoint quite a bit with some curious users and they found the "force all" confusing. Typing "all" as the default media query can be seen as de facto the user asking to "force all", and removes the need for an extra settings variable.

from breakpoint.

Snugug avatar Snugug commented on September 24, 2024

I would prefer better documentation as to its purpose rather than introducing a false media type.

On Mar 16, 2013, at 2:06 PM, Rob Wierzbowski [email protected] wrote:

If "false", or omitted and inferred 'all' media, is the default Breakpoint would still have the same out of the box optimization that would always work. I see the idea of providing correct syntax to the user, but in last month's Sassy Pgh meetup I went over breakpoint quite a bit with some curious users and they found the "force all" confusing. Typing "all" as the default media query can be seen as de facto the user asking to "force all", and removes the need for an extra settings variable.


Reply to this email directly or view it on GitHub.

from breakpoint.

robwierzbowski avatar robwierzbowski commented on September 24, 2024

I'm not recommending a false media type, I'm recommending

$breakpoint-default-media: false; 

Aka, no automatically added media type. Two very different things. I think it comes down to respecting user input -- css developers have reasons for @media all (rules), and they self optimize and write @media (rules). Breakpoint can be simplified by acknowledging that css authors mean what they type. The confusion among users at the meetup was not "what does force all do?", but "why not just output what users input?".

Revising this behavior would also allow the possibility of some media queries containing all media types while others don't, which is impossible in the current setup without setting and unsetting settings variables around a breakpoint include.

from breakpoint.

Snugug avatar Snugug commented on September 24, 2024

After having discussed with Mason, we've decided to close this issue and keep it as is

from breakpoint.

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.