From e981931a456d40008949a1a87ca71158fc706b64 Mon Sep 17 00:00:00 2001 From: Dominique Quatravaux Date: Sun, 23 Nov 2014 15:08:29 +0100 Subject: [PATCH] =?UTF-8?q?Stylus=20avec=20nib=20=E2=80=93=20Pas=20besoin?= =?UTF-8?q?=20de=20bidouiller=20les=20chemins=20d'acc=C3=A8s.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- calculator/calc.js | 4 ---- calculator/stylus/style.styl | 3 ++- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/calculator/calc.js b/calculator/calc.js index ac740a4..ef07e26 100644 --- a/calculator/calc.js +++ b/calculator/calc.js @@ -52,10 +52,6 @@ app.use(stylus.middleware( , compile: function (str, path) { return stylus(str) .set('filename', path) - .set('paths', [ - __dirname - , __dirname + '/node_modules' - ]) .use(nib()) } } diff --git a/calculator/stylus/style.styl b/calculator/stylus/style.styl index f9d8e34..33a1d72 100644 --- a/calculator/stylus/style.styl +++ b/calculator/stylus/style.styl @@ -1,4 +1,5 @@ -//@import "nib/index.styl" +@import nib + body font 12px Helvetica, Arial, sans-serif background-image url(http://www.mathovore.fr/wp-content/uploads/2014/07/calculatrice.jpg)