Comments (7)
I am having the same issue and have had it for quite some time.
Did you ever find a solution for this. It's extremely annoying.
from zen-grids.
I unfortunately didn't find any solution for this yet.
from zen-grids.
Thanks for replying. I get the desire to abstract the critical usage threshold but I don't really get how it works in the real world such as say if I just wanted to support IE8 up and most other modern browsers?
The docs are totally obscure as to how to go about setting things up to accomplish that which I think is a very practical thing to want to be able to do. Saying I want to support more than 0.08 browsers make little sense unless I am missing something.
In the end, I guess I could live with the setting if it didn't spew every time the SASS files were modified.
I searched and didn't find much help other than you having the same issue. Doesn't anybody have a clue on how to solve this?
from zen-grids.
The solution that worked for me was to apply this:
$zen-box-sizing: "universal-border-box";
Found this from the Zen-Grid docs and it described my setup:
If border-box is applied to all elements with a ruleset similar to * { box-sizing: border-box; } (donβt forget the vendor prefixes!), you can prevent Zen Grids from outputting redundant box-sizing rules by setting $zen-box-sizing to universal-border-box.
Ref link: http://next.zengrids.com/reference/grids/#zen-box-sizing
I think it's something to do with Zen-Grid applying redundant box-sizing rules for older IE browsers that in turn presumes that you want support for those versions. Hope it helps!
from zen-grids.
Thanks for commenting!
That would indeed work. However, it also assumes then that you're explicitly applying * {box-sizing: border-box; }
somewhere else in your SCSS.
The warning originates from this function, which should be skipped (?) when setting the minimum browser version to at least IE8.
from zen-grids.
As it says in the docs:
//
// Border-box support for IE 6/7
//
// IE6-7 don't support box-sizing: border-box. We can fix this in 1 of 3 ways:
// - Drop support for IE 6/7. :-) Set $critical-usage-threshold to a value high
// enough to drop IE7 users.
// - Install the box-sizing polyfill and set the variable below to
// the absolute path URL to the boxsizing.htc file.
// @see https://github.com/Schepp/box-sizing-polyfill
// $box-sizing-polyfill-path: '/path/to/boxsizing.htc';
// - Use the same CSS unit for grid and gutter width in resonsive-sidebars.scss
// (use px for both or use % for both) and set:
// $box-sizing: content-box;
//
Personally I prefer the first option of just dropping IE 6/7, increasing $critical-usage-threshold to .3 seems like enough to achieve this.
$critical-usage-threshold: .3 !default;
from zen-grids.
We've removed the Compass support module which was still adding IE 7 support by default. The new optional support-for()
module will output IE6-7 rules only when you ask for it, and not by default.
from zen-grids.
Related Issues (20)
- Are you the author of Zen Thems for Drupal? HOT 1
- An in-range update of mocha is breaking the build π¨ HOT 6
- [Request] npm backport for v1.5?
- An in-range update of eyeglass is breaking the build π¨ HOT 5
- An in-range update of support-for is breaking the build π¨ HOT 1
- error importing zen-grids/flow HOT 1
- Float right last item HOT 1
- zen-clear seems to not work with IE7 / IE6 HOT 1
- Setting environment documentation HOT 1
- Second column margin-left miscalculation(?) on a 2 column grid HOT 1
- Cannot activate due to conflict HOT 8
- Replace background grid gradients with svg
- Sass '!global' error with recommended gemfile versions HOT 1
- Which is the substitute of zen-nested-container on zg v2 HOT 1
- Please provide a working example of $zen-gutter-method HOT 3
- px must match the units of the grid width HOT 5
- Add support for responsive layouts with margin-based gutters and calc()
- RTL styles are broken
- problem with grid
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 zen-grids.