Comments (5)
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.
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.
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.
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.
After having discussed with Mason, we've decided to close this issue and keep it as is
from breakpoint.
Related Issues (20)
- How to import breakpoint with webpack? HOT 5
- Sourcemaps Issue Stylesheet could not be loaded...
- W3C error on min-aspect-ratio and max-aspect-ratio
- Spelling mistake in error message in _legacy-settings.scss
- component/sass/styles.scss (Line 3: File to import not found or unreadable: breakpoint.
- Consider using >=0.8.2 for eyeglass "needs"
- Can't seem to extend a placeholder or class which consists solely of media query content coming from Breakpoint HOT 2
- Typo in documentation
- Installation for breakpoint doesn't work
- Can media queries be grouped in css? HOT 1
- eyeglass usage notes
- Using "only screen" with the mixin HOT 1
- can't override default variables HOT 1
- Dual license clarification HOT 2
- Sass needs to be replaced as it is EoL HOT 1
- Are Level 4 Media Queries supported??? HOT 3
- licence MIT AND/OR GPL HOT 1
- breakpoint doesn't work with sass 1.49.9 because of breaking change: slash as division HOT 5
- Breakpoint v3.0.0 is incompatible with Python libsass
- hover: hover doesn't work because of missing value in variable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from breakpoint.