docs: replace flames with star

This commit is contained in:
yuanchuan 2017-06-05 20:08:11 +08:00
parent 6cf2dbef38
commit 60597a8bdc
3 changed files with 19 additions and 14 deletions

View File

@ -35,8 +35,8 @@
<div class="playground">
<div class="doodle" front>
<ul class="nav" data-current="leaves">
<li data-name="flames">Leaves</li>
<li data-name="leaves">Flames</li>
<li data-name="star">Leaves</li>
<li data-name="leaves">Star</li>
</ul>
<!-- insert dynamicly -->
</div>

View File

@ -86,21 +86,26 @@
);
`),
flames: indent(`
clip-path: @shape(bicorn);
star: indent(`
:doodle {
clip-path: @shape(bud, 5);
background: #673AB7;
}
clip-path: @shape(bud, 5);
background: hsla(
calc(200 + 2 * @index()),
70%, 60%,
@rand(.8)
calc(300 + 3 * @index()),
75%, 70%, @rand(.8)
);
transition: .2s ease @rand(300ms);
transform:
rotate(@rand(360deg))
scale(@rand(.5, 3))
translate(
@rand(-100%, 100%),
@rand(-100%, 100%)
scale(@rand(.2, 1.5))
translate3d(
@rand(-50%, 50%),
@rand(-50%, 50%),
0
);
`)
}

View File

@ -233,8 +233,8 @@ textarea[code] {
background: #E5F5FC;
display: none;
}
.doodle [data-current="leaves"] [data-name="flames"],
.doodle [data-current="flames"] [data-name="leaves"] {
.doodle [data-current="leaves"] [data-name="star"],
.doodle [data-current="star"] [data-name="leaves"] {
display: block;
}
.playground .doodle,