Skip to content

Commit

Permalink
version 4.3.0
Browse files Browse the repository at this point in the history
grilles compatibles jusqu'à IE8 et Android2 \o/
  • Loading branch information
raphaelgoetter committed Jul 3, 2015
1 parent e1fe703 commit cca44b5
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 12 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "KNACSS",
"version": "4.2.3",
"version": "4.3.0",
"homepage": "http://www.knacss.com/",
"authors": [
"Raphaël GOETTER, Alsacreations"
Expand Down
6 changes: 4 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# changelog v4.3.0 (3 juillet 2015)

- Les grilles de KNACSS sont à présent rétrocompatibles jusqu'à IE8 et Android2 grâce à un fallback en `display: inline-block` pour ces anciens navigateurs. Cependant les fonctionnalités resteront limitées chez ces dinosaures (pas de `flex-item-double`, de `flex-item-first`, etc.)

# changelog v4.2.3 (2 juillet 2015)

- Passage à l'indentation via 2 espaces et non plus tabulations (+ `.editorconfig` à jour)
Expand All @@ -13,8 +17,6 @@
- correction largeurs des grilles pour IE
- correction de divers doublons



# changelog v4.2.1 (25 mai 2015)

- pour les grilles, suppression de l'alignement justifié par défaut (justify-content: space-between)
Expand Down
12 changes: 10 additions & 2 deletions css/knacss-unminified.css
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@ http://www.alsacreations.com/tuto/lire/1493-css3-flexbox-layout-module.html
/* ---------------------------------- */
/* ==Grids */
/* ---------------------------------- */
/* grid container */
[class*="grid-"] {
display: -webkit-box;
display: -webkit-flex;
Expand All @@ -718,16 +719,23 @@ http://www.alsacreations.com/tuto/lire/1493-css3-flexbox-layout-module.html
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-left: -1em;
/* inline-block fallback for IE9 generation */
letter-spacing: -0.31em;
text-rendering: optimizespeed;
}
/* grid childs */
[class*="grid-"] > * {
-webkit-box-flex: 0;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
display: block;
/* IE fix */
width: calc(100% * 1 / 4 - 1em - .01px);
margin-left: 1em;
/* inline-block fallback for IE9 generation */
display: inline-block;
vertical-align: top;
letter-spacing: normal;
text-rendering: auto;
}
.grid-2 > * {
width: calc(100% * 1 / 2 - 1em - .01px);
Expand Down
2 changes: 1 addition & 1 deletion css/knacss.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/knacss.css.map

Large diffs are not rendered by default.

14 changes: 12 additions & 2 deletions less/_03-grids.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/* ==Grids */
/* ---------------------------------- */

// WARNING : KNACSS grids are flexbox based and only supported by IE10+ and Android4.4+
// Tuto : http://www.alsacreations.com/tuto/lire/1659-une-grille-responsive-avec-flexbox-et-LESS.html
// Demo : http://codepen.io/raphaelgoetter/pen/zxBMLW

Expand All @@ -17,18 +16,29 @@
// left = left ratio column (default = 2) / right = right ratio column (default = 1)
// example : .grid-perso { .uneven-grid(2, 1); }

/* grid container */
[class*="@{kna-namespace}grid-"] {
display: flex;
flex-direction: row;
flex-wrap: wrap;
margin-left: -@gutter;

/* inline-block fallback for IE9 generation */
letter-spacing: -0.31em;
text-rendering: optimizespeed;
}

/* grid childs */
[class*="@{kna-namespace}grid-"] > * {
flex: 0 0 auto;
display: block; /* IE fix */
width: ~'calc(100% * 1 / @{number} - @{gutter} - .01px)';
margin-left: @gutter;

/* inline-block fallback for IE9 generation */
display: inline-block;
vertical-align: top;
letter-spacing: normal;
text-rendering: auto;
}

// LESS mixins for *equal* columns grid container
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "knacss",
"version": "4.2.3",
"version": "4.3.0",
"homepage": "http://www.knacss.com/",
"bugs": "https://github.com/raphaelgoetter/KNACSS/issues",
"author": [
Expand Down
14 changes: 12 additions & 2 deletions sass/_03-grids.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/* ==Grids */
/* ---------------------------------- */

// WARNING : KNACSS grids are flexbox based and only supported by IE10+ and Android4.4+
// Tuto : http://www.alsacreations.com/tuto/lire/1659-une-grille-responsive-avec-flexbox-et-LESS.html
// Demo : http://codepen.io/raphaelgoetter/pen/ZYjwEB

Expand All @@ -17,18 +16,29 @@
// left = left ratio column (default = 2) / right = right ratio column (default = 1) / gutter (default = 1em)
// example : .grid-perso { @include uneven-grid(2, 1, 10px); }

/* grid container */
[class*="#{$kna-namespace}grid-"] {
display: flex;
flex-direction: row;
flex-wrap: wrap;
margin-left: -$gutter;

/* inline-block fallback for IE9 generation */
letter-spacing: -0.31em;
text-rendering: optimizespeed;
}

/* grid childs */
[class*="#{$kna-namespace}grid-"] > * {
flex: 0 0 auto;
display: block; /* IE fix */
width: calc(100% * 1 / #{$number} - #{$gutter} - .01px);
margin-left: $gutter;

/* inline-block fallback for IE9 generation */
display: inline-block;
vertical-align: top;
letter-spacing: normal;
text-rendering: auto;
}

// Sass mixins for *equal* columns grid container
Expand Down

0 comments on commit cca44b5

Please sign in to comment.