update sample code

This commit is contained in:
yuanchuan 2017-02-24 18:42:11 +08:00
parent e4e821fb48
commit e5a695bf10
1 changed files with 4 additions and 5 deletions

View File

@ -13,15 +13,14 @@
</head>
<body>
<css-doodle grid="1, 16">
--size: @rand(10%, 80%);
--color: hsla(@rand(100), 80%, 40%, @rand(.4, .9));
width: var(--size);
width: @rand(10%, 80%);
height: 50%;
left: @rand(32%);
border-radius: 5px 0 0 5px;
background-image: linear-gradient(
to right, var(--color) 20%, transparent 80%
to right,
hsla(@rand(100), 80%, 40%, @rand(.4, .9)) 20%,
transparent 80%
);
</css-doodle>
</body>