jquery gradX dom-drag colorpicker渐变拖拽颜色选择生成代码器
代码语言:html
所属分类:其他
代码描述:jquery gradX dom-drag colorpicker渐变拖拽颜色选择生成代码器
代码标签: colorpicker 渐变 拖拽 颜色 选择 生成 器
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/colorpicker.css"> <style> *{ margin:0; padding:0;} body{} .targets { margin:0 auto; text-align: center; border: 1px solid #ccc; background: #f8f8f8; margin: 0 auto; border-radius: 4px; width:auto; padding:10px; } .target_text { margin: 0px auto; margin-top: 40%; background: #f8f8f8; width: 70px; border: 1px solid #ddd; padding: 2px; border-radius: 2px; color: #111; } .target { border: 1px solid; margin: 0px 10%; width: 150px; height: 150px; display:inline-block; } #target { border-radius: 150px; } .result { text-align: center; text-transform: uppercase; font-weight: bold; padding:12px; padding-left: 15px; margin: 10px 0px; border: 1px solid #ddd; background: #f8f8f8; } #gradX { height: 200px; margin: 100px 34%; } .gradx_hide { display: none; } .gradx { position: relative; background: #FAFAFA; background: -moz-linear-gradient(top, #FAFAFA 0%, #DFDFDF 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #FAFAFA), color-stop(100%, #DFDFDF)); background: -webkit-linear-gradient(top, #FAFAFA 0%, #DFDFDF 100%); background: -o-linear-gradient(top, #FAFAFA 0%, #DFDFDF 100%); background: -ms-linear-gradient(top, #FAFAFA 0%, #DFDFDF 100%); background: linear-gradient(top, #FAFAFA 0%, #DFDFDF 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fafafa', endColorstr='#dfdfdf', GradientType=0 ); border: 4px solid #dfdfdf; padding: 10px; font-weight: normal; width: 444px; font-size: 12px; } .gradx textarea, input, select { font-size: 12px; } .gradx_container { padding: 10px; background: white; padding-left: 16px; border: 5px solid #e5e5e5; border-radius: 2px; -webkit-border-radius: 2px; -moz-border-radius: 2px; -o-border-radius: 2px; margin-top: 10px; margin-bottom: 10px; } .gradx_panel { width: 400px; height: 42px; border: 1px solid #ccc; } .gradx_start_sliders { width: 412px; margin-top: 8px; margin-left: -0.4em; background: whitesmoke; height: 12px; box-shadow: 5px 9px 30px rgba(0, 0, 0, .5) inset; -webkit-box-shadow: 5px 9px 30px rgba(0, 0, 0, .5) inset; -moz-box-shadow: 5px 9px 30px rgba(0, 0, 0, .5) inset; -o-box-shadow: 5px 9px 30px rgba(0, 0, 0, .5) inset; border: 1px solid #f1f1f1; } .gradx_slider { position: absolute; left: 0px; width: 10px; height: 10px; background: red; border: 1px solid black; display: inline-block; opacity: 0.6; } .gradx_slider:hover { opacity: 1; cursor: move; } .gradx_slectboxes select { color: black; vertical-align: baseline; } .gradx_slider:after { content: ""; position: absolute; bottom: 10px; left: 4px; border-style: solid; border-width: 70px 1px 0px 0px; border-color: transparent #000; display: block; width: 0; z-index: 1; } .gradx_code, gradx_code:focus { padding: 8px; color: #111; text-shadow: #eee 0 1px; background: #bba; margin-top: 5px; border-radius: 4px; font-size: 12px; display: none; overflow: auto; width: 100%; min-height: 200px; border: 1px solid #ccc; resize: vertical; font-family: 'Maven Pro', sans-serif; border: 0; box-shadow: none !important; -webkit-box-shadow: none !important; -moz-box-shadow: none !important; -o-box-shadow: none !important; line-height: 14px; /* the long awaited dream of 100% width comes true */ /* All hail CSS3 */ box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -o-box-sizing: border-box; } #gradx_slider_info { display: none; border: 1px solid #ccc; padding: 2px; background: #f1f1f1; } #gradx_slider_controls { margin-left: 15px; padding-top:4px; padding-bottom: 4px; } .gradx_add_slider { border: 1px solid black; width: 50px; margin-bottom: 4px; } .gradx_slectboxes { display: inline; } .gradx_gradient_type { height: 25px; background: #efefef; border: 1px solid #ccc; padding-right: 2px; width: 115px; margin: 0; } .gradx_btn > .icon { position: relative; left: -3px; background-size: 12px 12px; top: 2px; display: inline-block; height: 12px; width: 12px; background-position: 0 0; } .gradx_btn > .icon-add { background-image: url("//repo.bfw.wiki/bfwrepo/image/60d2b7618092e.png"); left: -10px; } .gradx_btn > .icon-remove { background-image: url("//repo.bfw.wiki/bfwrepo/image/6038571b445ab.png"); } .gradx_btn > .icon-file-css { background-image: url("//repo.bfw.wiki/bfwrepo/icon/5da7cbad5aee0.png"); } .gradx_btn > .icon-preset { background-image: url("//repo.bfw.wiki/bfwrepo/icon/5d8351ea29698.png"); } /* Common stuff */ .picker-wra.........完整代码请登录后点击上方下载按钮下载查看
网友评论0