From 11428597ae699bac4ff460ce460534c2cca39a03 Mon Sep 17 00:00:00 2001 From: Raphael Goetter Date: Mon, 31 Oct 2016 10:53:57 +0100 Subject: [PATCH] optimisation des variables de config --- bower.json | 2 +- package.json | 2 +- sass/_config/_variables.scss | 24 +++++++++--------------- sass/knacss.scss | 2 +- sass/library/_base.scss | 8 ++++---- 5 files changed, 16 insertions(+), 22 deletions(-) diff --git a/bower.json b/bower.json index 6173e4f..d291663 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "KNACSS", - "version": "6.0.2", + "version": "6.0.3", "homepage": "http://www.knacss.com/", "authors": [ "Raphaƫl GOETTER, Alsacreations" diff --git a/package.json b/package.json index 3b8d011..52b3219 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "knacss", - "version": "6.0.2", + "version": "6.0.3", "homepage": "http://www.knacss.com/", "bugs": "https://github.com/alsacreations/KNACSS/issues", "author": [ diff --git a/sass/_config/_variables.scss b/sass/_config/_variables.scss index 5329e36..3483ac7 100644 --- a/sass/_config/_variables.scss +++ b/sass/_config/_variables.scss @@ -1,7 +1,7 @@ // Config file and project variables // font sizes -$base-font-size : 1.6rem !default; // ex. 1.4rem would be "14px" equivalent +$base-font-size : 1.6rem !default; // ex. 1.6rem would be "16px" equivalent $line-height : 1.5 !default; // equiv line-height 1.5 $h1-size : 3.2rem !default; // equiv "32px" $h2-size : 2.8rem !default; // equiv "28px" @@ -16,20 +16,14 @@ $font-stack-headings : sans-serif !default; // headings font $font-stack-monospace : consolas, courier, monospace !default; // monospace font // font colors -$base-color : #000 !default; // text color on body and content -$alpha-color : #000 !default; // text color on primary elements -$beta-color : #000 !default; // text color on secondary elements -$headings-color : #000 !default; // text color on headings -$headings-1-color : #000 !default; // text color on headings level 1 -$headings-2-color : #000 !default; // text color on headings level 2 -$headings-3-color : #000 !default; // text color on headings level 3 -$base-color-link : #333 !default; // base links color -$base-color-link-hover : #000 !default; // base hovered/focused links color - -// backgrounds -$base-background : #fff !default; // body background color -$alpha-background : #fff !default; // primary elements background color -$beta-background : #fff !default; // secondary elements background color +$base-color : #000 !default; // text color on body and content +$alpha-color : #fff !default; +$beta-color : #333 !default; +$gamma-color : #000 !default; +$delta-color : #000 !default; +$epsilon-color : #000 !default; +$zeta-color : #333 !default; +$theta-color : #000 !default; // spacings (choose unit you prefer) $tiny-value : .5rem !default; // tiny value for margins / paddings diff --git a/sass/knacss.scss b/sass/knacss.scss index 03949ba..74275f9 100644 --- a/sass/knacss.scss +++ b/sass/knacss.scss @@ -1,5 +1,5 @@ /*! -* www.KNACSS.com V6.0.2 (27 octobre 2016) @author: Alsacreations, Raphael Goetter +* www.KNACSS.com V6.0.3 (31 octobre 2016) @author: Alsacreations, Raphael Goetter * Licence WTFPL http://www.wtfpl.net/ */ diff --git a/sass/library/_base.scss b/sass/library/_base.scss index 817c891..9ae0bab 100644 --- a/sass/library/_base.scss +++ b/sass/library/_base.scss @@ -21,16 +21,16 @@ html { body { font-size: $base-font-size; - background-color: $base-background; + background-color: $alpha-color; color: $base-color; font-family: $font-stack-common; line-height: $line-height; } a { - color: $base-color-link; + color: $zeta-color; &:hover, &:focus, &:active { - color: $base-color-link-hover; + color: $base-color; } } @@ -186,4 +186,4 @@ svg { img { height: auto; -} \ No newline at end of file +}