From 7bd7fb9807f38cdf98b458fbd36723d708af603c Mon Sep 17 00:00:00 2001 From: Raphael Goetter Date: Tue, 1 Aug 2017 11:57:50 +0200 Subject: [PATCH] * {min-width: 0} --- changelog.md | 1 + sass/_library/_base.scss | 2 ++ sass/components/autogrid.scss | 4 ---- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/changelog.md b/changelog.md index 3a97991..f657007 100644 --- a/changelog.md +++ b/changelog.md @@ -11,6 +11,7 @@ - regroupement des styles des tableaux - suppression du namespace "kna-", ne devrait pas être problématique dès lors que Grillade sera devenu inutile dans KNACSS - automatisation des classes utilitaires via Sass +- ajout de `* {min-width: 0}` pour éviter la valeur `auto` sur les flex-items et grid-items # changelog v6.1.2 (21 juin 2017) - alignement des helpers flexbox sur ceux de Bootstrap (`.d-flex`, `.flex-row`, `.flex-column`, `.mr-auto`) diff --git a/sass/_library/_base.scss b/sass/_library/_base.scss index 8f93a60..cb92492 100644 --- a/sass/_library/_base.scss +++ b/sass/_library/_base.scss @@ -9,6 +9,8 @@ html { * { box-sizing: inherit; + /* avoid min-width: auto on flex and grid children */ + min-width: 0; } html { diff --git a/sass/components/autogrid.scss b/sass/components/autogrid.scss index 07a1cda..fee9d85 100644 --- a/sass/components/autogrid.scss +++ b/sass/components/autogrid.scss @@ -21,9 +21,5 @@ grid-column-gap: $size; } } - - & > * { - min-width: 0; /* avoid min-width: auto on children */ - } } }