From 528e4f0fb13d1c39b9ee529adfe9627b2f9ec75d Mon Sep 17 00:00:00 2001 From: Raphael Goetter Date: Tue, 24 Sep 2013 11:43:59 +0200 Subject: [PATCH] minor .grid corrections issue : https://github.com/raphaelgoetter/KNACSS/issues/32 --- css/grids.css | 6 ++---- css/knacss.css | 14 +++++++------- less/02-grids.less | 6 ++---- 3 files changed, 11 insertions(+), 15 deletions(-) diff --git a/css/grids.css b/css/grids.css index 2e1800d..4688c60 100644 --- a/css/grids.css +++ b/css/grids.css @@ -12,16 +12,14 @@ margin: 0 -10px; /* half gutter value */ text-align: left; letter-spacing: -0.31em; + word-spacing: -0.43em; text-rendering: optimizespeed; } -/* Opera hack */ -.opera:-o-prefocus, -.grid > * {word-spacing: -0.43em;} - .grid > * > * { width: 100%; display: inline-block; padding: 0 10px; /* half gutter value */ + margin-left: 0; vertical-align: top; text-align: left; letter-spacing: normal; diff --git a/css/knacss.css b/css/knacss.css index 13a5496..a4d03ec 100644 --- a/css/knacss.css +++ b/css/knacss.css @@ -1,5 +1,5 @@ /* -* www.KNACSS.com V2.8a (2013-09) @author: Raphael Goetter, Alsacreations +* www.KNACSS.com V2.8b (2013-09) @author: Raphael Goetter, Alsacreations * Licence CC-BY http://creativecommons.org/licenses/by/3.0/fr/ */ @@ -40,32 +40,32 @@ figure { h1, .h1-like { margin: 0.6563em 0 0 0; font-size: 2.2857em; /* equiv 32px */ - line-height: 1.3126em; + line-height: 1.3126; } h2, .h2-like { margin: 0.75em 0 0 0; font-size: 2em; /* equiv 28px */ - line-height: 1.5em; + line-height: 1.5; } h3, .h3-like { margin: 0.875em 0 0 0; font-size: 1.7143em; /* equiv 24px */ - line-height: 1.75em; + line-height: 1.75; } h4, .h4-like { margin: 1.05em 0 0 0; font-size: 1.4286em; /* equiv 20px */ - line-height: 1.05em; + line-height: 1.05; } h5, .h5-like { margin: 1.1667em 0 0 0; font-size: 1.2857em; /* equiv 18px */ - line-height: 1.1667em; + line-height: 1.1667; } h6, .h6-like { margin: 1.3125em 0 0 0; font-size: 1.1429em; /* equiv 16px */ - line-height: 1.3125em; + line-height: 1.3125; } /* alternate font-sizing */ diff --git a/less/02-grids.less b/less/02-grids.less index e91fd3f..388aad2 100644 --- a/less/02-grids.less +++ b/less/02-grids.less @@ -8,16 +8,14 @@ margin: 0 (@gutter/2); /* half gutter value */ text-align: left; letter-spacing: -0.31em; + word-spacing: -0.43em; text-rendering: optimizespeed; } -/* Opera hack */ -.opera:-o-prefocus, -.grid > * {word-spacing: -0.43em;} - .grid > * > * { width: 100%; display: inline-block; padding: 0 (@gutter/2); /* half gutter value */ + margin-left: 0; vertical-align: top; text-align: left; letter-spacing: normal;