From 9e41e96f766248b9b921e896d38ddc5a9424123a Mon Sep 17 00:00:00 2001 From: Maxime Thirouin Date: Sun, 25 May 2014 19:44:56 +0200 Subject: [PATCH] Update example with new CSS var spec & default rework-vars behavior --- README.md | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 7d1fc1f..cf98322 100644 --- a/README.md +++ b/README.md @@ -34,15 +34,15 @@ is left as is, to fallback to the CSS3 Calc feature. ```css :root { - var-main-font-size: 16px; + --main-font-size: 16px; } body { - font-size: var(main-font-size); + font-size: var(--main-font-size); } h1 { - font-size: calc(var(main-font-size) * 2); + font-size: calc(var(--main-font-size) * 2); height: calc(100px - 2em); } ``` @@ -50,10 +50,6 @@ h1 { **yields**: ```css -:root { - var-main-font-size: 16px -} - body { font-size: 16px }