From fef701a84ba8900a4a61d491acef086b5ada2fdb Mon Sep 17 00:00:00 2001 From: yuanchuan Date: Fri, 24 Feb 2017 21:39:58 +0800 Subject: [PATCH] update code sample --- samples/circles.html | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/samples/circles.html b/samples/circles.html index cf1f712..9b16309 100644 --- a/samples/circles.html +++ b/samples/circles.html @@ -12,23 +12,20 @@
- + :host { - width: 100vw; - height: 100vw; + width: 50vh; + height: 50vh; + border-radius: 50%; + overflow: hidden; + background: #f1ffd9; } - --size: @rand(200%); width: var(--size); height: var(--size); background: hsla(@rand(100), 80%, 50%, @rand(.8)); - border-radius: @rand(50%, 100%); - transform: translate( - @any(-50%, 50%), - @any(-50%, 50%) - ); + border-radius: 50%; -