html 生成曲线图,HTML5 分形曲线生成器

CSS

语言:

CSSSCSS

确定

@import url(http://fonts.googleapis.com/css?family=Open+Sans:300);

@import url(http://fonts.googleapis.com/css?family=Open+Sans:300);

.custom-inputs.light input[type="checkbox"],

.custom-inputs.light input[type="radio"],

.custom-inputs.dark input[type="checkbox"],

.custom-inputs.dark input[type="radio"],

input[type="checkbox"] {

position: absolute;

left: -99999em;

}

.custom-inputs.light input[type="checkbox"] + label,

.custom-inputs.light input[type="radio"] + label,

.custom-inputs.dark input[type="checkbox"] + label,

.custom-inputs.dark input[type="radio"] + label,

input[type="checkbox"] + label {

box-sizing: border-box;

position: relative;

margin-right: 0.5em;

-webkit-user-select: none;

-moz-user-select: none;

-ms-user-select: none;

user-select: none;

cursor: pointer;

font-family: 'Open Sans', sans-serif;

font-weight: 300;

padding-left: 1.5em;

}

.custom-inputs.light input[type="checkbox"] + label:before,

.custom-inputs.light input[type="radio"] + label:before,

.custom-inputs.dark input[type="checkbox"] + label:before,

.custom-inputs.dark input[type="radio"] + label:before,

input[type="checkbox"] + label:before,

.custom-inputs.light input[type="checkbox"] + label:after,

.custom-inputs.light input[type="radio"] + label:after,

.custom-inputs.dark input[type="checkbox"] + label:after,

.custom-inputs.dark input[type="radio"] + label:after,

input[type="checkbox"] + label:after {

content: '';

box-sizing: border-box;

position: absolute;

left: 0;

top: 0;

line-height: 0;

width: 1em;

height: 1em;

display: inline-block;

}

.custom-inputs.light input[type="checkbox"] + label:before,

.custom-inputs.light input[type="radio"] + label:before,

.custom-inputs.dark input[type="checkbox"] + label:before,

.custom-inputs.dark input[type="radio"] + label:before,

input[type="checkbox"] + label:before {

border-top: 1px solid black;

border-left: 1px solid black;

}

.custom-inputs.light input[type="checkbox"] + label:after,

.custom-inputs.light input[type="radio"] + label:after,

.custom-inputs.dark input[type="checkbox"] + label:after,

.custom-inputs.dark input[type="radio"] + label:after,

input[type="checkbox"] + label:after {

-webkit-transition-property: all;

transition-property: all;

-webkit-transition-duration: 150ms;

transition-duration: 150ms;

-webkit-transition-timing-function: cubic-bezier(0, 0.67, 0.67, 1);

transition-timing-function: cubic-bezier(0, 0.67, 0.67, 1);

border-bottom: 1px solid black;

border-right: 1px solid black;

}

.custom-inputs.light input[disabled][type="checkbox"] + label,

.custom-inputs.light input[disabled][type="radio"] + label,

.custom-inputs.dark input[disabled][type="checkbox"] + label,

.custom-inputs.dark input[disabled][type="radio"] + label,

input[disabled][type="checkbox"] + label {

opacity: 0.5;

cursor: default;

}

.custom-inputs.light input[type="checkbox"]:checked + label:after,

.custom-inputs.light input[type="radio"]:checked + label:after,

.custom-inputs.dark input[type="checkbox"]:checked + label:after,

.custom-inputs.dark input[type="radio"]:checked + label:after,

input[type="checkbox"]:checked + label:after {

-webkit-transition-duration: 250ms;

transition-duration: 250ms;

-webkit-transition-timing-function: cubic-bezier(0.46, 1.01, 0.5, 1.98);

transition-timing-function: cubic-bezier(0.46, 1.01, 0.5, 1.98);

}

.custom-inputs {

padding: 10px;

}

.custom-inputs.light {

background: #fff;

}

.custom-inputs.light input[type="checkbox"] + label {

color: #000;

}

.custom-inputs.light input[type="checkbox"] + label:before {

border-color: #000;

}

.custom-inputs.light input[type="checkbox"] + label:after {

border-color: #000;

}

.custom-inputs.light input[type="checkbox"]:checked + label:after {

border-width: 0 2px 1px 0;

-webkit-transform: rotate(50deg) skew(20deg, 0) scale(0.5, 1.5) translate3d(0.25em, -0.25em, 0);

transform: rotate(50deg) skew(20deg, 0) scale(0.5, 1.5) translate3d(0.25em, -0.25em, 0);

}

.custom-inputs.light input[type="radio"] + label {

color: #000;

}

.custom-inputs.light input[type="radio"] + label:before {

border-radius: 100%;

border: 1px solid black;

border-color: #000;

}

.custom-inputs.light input[type="radio"] + label:after {

border-radius: 100%;

border: 1px solid black;

border-color: #000;

}

.custom-inputs.light input[type="radio"]:checked + label:after {

border-width: 2px;

-webkit-transform: scale(0.5);

-ms-transform: scale(0.5);

transform: scale(0.5);

}

.custom-inputs.dark {

background: #000;

}

.custom-inputs.dark input[type="checkbox"] + label {

color: #fff;

}

.custom-inputs.dark input[type="checkbox"] + label:before {

border-color: #fff;

}

.custom-inputs.dark input[type="checkbox"] + label:after {

border-color: #fff;

}

.custom-inputs.dark input[type="checkbox"]:checked + label:after {

border-width: 0 2px 1px 0;

-webkit-transform: rotate(50deg) skew(20deg, 0) scale(0.5, 1.5) translate3d(0.25em, -0.25em, 0);

transform: rotate(50deg) skew(20deg, 0) scale(0.5, 1.5) translate3d(0.25em, -0.25em, 0);

}

.custom-inputs.dark input[type="radio"] + label {

color: #fff;

}

.custom-inputs.dark input[type="radio"] + label:before {

border-radius: 100%;

border: 1px solid black;

border-color: #fff;

}

.custom-inputs.dark input[type="radio"] + label:after {

border-radius: 100%;

border: 1px solid black;

border-color: #fff;

}

.custom-inputs.dark input[type="radio"]:checked + label:after {

border-width: 2px;

-webkit-transform: scale(0.5);

-ms-transform: scale(0.5);

transform: scale(0.5);

}

body {

margin: 0;

-webkit-user-select: none;

-moz-user-select: none;

-ms-user-select: none;

user-select: none;

font-family: 'Open Sans', sans-serif;

background-color: #fafafa;

color: black;

display: -webkit-box;

display: -webkit-flex;

display: -ms-flexbox;

display: flex;

-webkit-flex-flow: column;

-ms-flex-flow: column;

flex-flow: column;

-webkit-box-pack: center;

-webkit-justify-content: center;

-ms-flex-pack: center;

justify-content: center;

align-tiems: center;

}

* {

box-sizing: border-box;

font-family: inherit;

font-weight: 300;

text-transform: uppercase;

}

.model {

line-height: 0;

display: -webkit-box;

display: -webkit-flex;

display: -ms-flexbox;

display: flex;

width: 100%;

-webkit-box-pack: center;

-webkit-justify-content: center;

-ms-flex-pack: center;

justify-content: center;

}

.model h2 {

margin: 0;

font-size: 15px;

line-height: 2;

font-family: sans-serif;

}

.model .options > label,

.model .colors > label {

padding: 10px 0;

}

.model > div {

padding: 10px;

display: -webkit-box;

display: -webkit-flex;

display: -ms-flexbox;

display: flex;

-webkit-flex-flow: column;

-ms-flex-flow: column;

flex-flow: column;

-webkit-box-pack: start;

-webkit-justify-content: flex-start;

-ms-flex-pack: start;

justify-content: flex-start;

-webkit-box-align: start;

-webkit-align-items: flex-start;

-ms-flex-align: start;

align-items: flex-start;

}

.model canvas {

margin: 10px;

-webkit-box-flex: 0;

-webkit-flex: 0 0 100px;

-ms-flex: 0 0 100px;

flex: 0 0 100px;

wisth: 100px;

height: 100px;

}

.model canvas.grab {

cursor: -webkit-grab;

cursor: grab;

}

.model canvas.grabbing {

cursor: -webkit-grabbing;

cursor: grabbing;

}

canvas {

background: #fff;

box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3), 0 -2px 3px rgba(0, 0, 0, 0.1);

}

.result {

height: 650px;

width: 100%;

padding: 10px;

display: -webkit-box;

display: -webkit-flex;

display: -ms-flexbox;

display: flex;

-webkit-box-pack: center;

-webkit-justify-content: center;

-ms-flex-pack: center;

justify-content: center;

}

.result canvas {

width: 500px;

height: 500px;

-webkit-box-flex: 0;

-webkit-flex: 0 0 500px;

-ms-flex: 0 0 500px;

flex: 0 0 500px;

}

.result h2 {

margin: 0;

font-size: 15px;

line-height: 2;

font-family: sans-serif;

}

input[type="range"] {

display: block;

margin: 1em 0;

height: 2em;

width: 100%;

}

.hue {

padding-top: 10px;

height: 40px;

overflow: hidden;

-webkit-transition: all 0.5s ease-in-out;

transition: all 0.5s ease-in-out;

will-change: visibility, height, opacity;

}

#rb:checked ~ .hue {

visibility: hidden;

height: 0;

opacity: 0;

}

input[type="checkbox"] + label {

color: #000;

}

input[type="checkbox"] + label:before {

border-color: #000;

}

input[type="checkbox"] + label:after {

border-color: #000;

}

input[type="checkbox"]:checked + label:after {

border-width: 0 2px 1px 0;

-webkit-transform: rotate(50deg) skew(20deg, 0) scale(0.5, 1.5) translate3d(0.25em, -0.25em, 0);

transform: rotate(50deg) skew(20deg, 0) scale(0.5, 1.5) translate3d(0.25em, -0.25em, 0);

}

button {

background: none;

color: #000;

border: 1px solid #000;

border-radius: 2px;

cursor: pointer;

font-size: 1em;

margin: 0 10px;

width: calc(100% - 20px);

}

button:focus {

outline: none;

}

button:hover {

color: #fff;

background: #000;

}

input[type='range'] {

-webkit-align-self: center;

-ms-flex-item-align: center;

align-self: center;

border: solid 0 transparent;

border-width: 0 0.75em;

padding: 0;

width: 16.125em;

height: 0.9em;

background: none;

font-size: 1em;

cursor: pointer;

overflow: visible;

color: #000;

}

input[type='range'],

input[type='range']::-webkit-slider-runnable-track,

input[type='range']::-webkit-slider-thumb {

-webkit-appearance: none;

}

input[type='range']::-webkit-slider-runnable-track {

position: relative;

width: 16.125em;

height: 0.3em;

background: -webkit-linear-gradient(#dadada, #dadada) no-repeat 50% 0;

background: linear-gradient(#dadada, #dadada) no-repeat 50% 0;

background-size: 16.125em 0.3em;

}

input[type='range']::-moz-range-track {

width: 16.125em;

height: 0.3em;

background: linear-gradient(#dadada, #dadada) no-repeat 50% 0;

background-size: 16.125em 0.3em;

}

input[type='range']::-ms-track {

margin-left: 0.375em;

border: none;

width: 16.125em;

height: 0.3em;

background: linear-gradient(#dadada, #dadada) no-repeat 50% 0;

background-size: 16em 0.3em;

color: transparent;

}

input[type='range']::-webkit-slider-thumb {

position: relative;

margin-top: -0.225em;

border: none;

border-radius: 50%;

background: currentColor;

width: 0.75em;

height: 0.75em;

}

input[type='range']::-moz-range-thumb {

border: none;

border-radius: 50%;

background: currentColor;

width: 0.125em;

height: 0.125em;

}

input[type='range']::-ms-thumb {

border: none;

border-radius: 50%;

background: currentColor;

width: 0.75em;

height: 0.75em;

}

input[type='range']::-ms-tooltip {

display: none;

}

input[type='range']:focus {

outline: none;

/* Chrome/ Opera */

}

input[type='range']:not(*:root) {

width: 16.75em;

/* IE */

}

_:-ms-input-placeholder,

:root input[type='range'] {

width: 16.75em;

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值