afc表单控件美化颜色一键切换效果代码
代码语言:html
所属分类:表单美化
代码描述:afc表单控件美化颜色一键切换效果代码,点击左上角颜色圆圈可切换表单输入组件的主题色。
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/font-awesome-4.7.0/css/font-awesome.min.css">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/afc-styles.css">
<style>
html {
background:url(//repo.bfw.wiki/bfwrepo/image/62254197e677b.png) no-repeat center fixed;
-webkit-background-size:cover;
/* pour Chrome et Safari */ -moz-background-size:cover;
/* pour Firefox */ -o-background-size:cover;
/* pour Opera */ background-size:cover;
/* version standardis茅e */ overflow-y:scroll;
}
.app-container {
position:relative;
width:100%;
height:auto;
min-height:300px;
margin:80px auto;
padding:20px 30px 50px 30px;
background:#fff;
background:rgba(255,255,255,.9);
-webkit-border-radius:4px;
-moz-border-radius:4px;
border-radius:4px;
-moz-box-shadow:0px 0px 8px 5px rgba(101,101,101,.5);
/*#656565;
*/ -webkit-box-shadow:0px 0px 8px 5px rgba(101,101,101,.5);
-o-box-shadow:0px 0px 8px 5px rgba(101,101,101,.5);
box-shadow:0px 0px 8px 5px rgba(101,101,101,.5);
filter:progid:DXImageTransform.Microsoft.Shadow(color=#656565,Direction=NaN,Strength=8);
-moz-box-sizing:border-box;
-webkit-box-sizing:border-box;
box-sizing:border-box;
}
.app-container.desktop {
position:relative;
max-width:950px;
}
.clear {
position:relative;
clear:both;
}
.row {
width:100%;
max-width:980px;
min-width:727px;
margin:0 auto;
}
/* To fix the grid into a certain size,set max-width to width */.row .row {
min-width:0;
}
.column {
margin-left:4.4%;
float:left;
min-height:1px;
position:relative;
}
.column:first-child {
margin-left:0;
}
[ class*="column"] + [ class*="column"]:last-child {
float:right;
}
.column.center {
text-align:center;
}
.row .one {
width:4.3%;
}
.row .two {
width:13%;
}
.row .three {
width:21.679%;
}
.row .four {
width:30.37%;
}
.row .five {
width:39.1%;
}
.row .six {
width:47.8%;
}
.row .seven {
width:56.5%;
}
.row .eight {
width:65.2%;
}
.row .nine {
width:73.9%;
}
.row .ten {
width:82.6%;
}
.row .eleven {
width:91.3%;
}
.row .twelve {
width:100%;
}
.afc-container label {
position:relative;
width:auto;
height:21px;
font-family:Arial,Helvetica,sans-serif;
font-size:14px;
line-height:22px;
vertical-align:super;
margin:none;
cursor:pointer;
}
#styles-container {
position:absolute;
top:24px;
left:-12px;
}
#styles-container .afc-btn {
width:24px;
height:24px;
-webkit-border-radius:50%;
-moz-border-radius:50%;
border-radius:50%;
padding:0;
margin:0 0 5px 0;
display:block;
}
h1,h3 {
font-family:"Palatino Linotype","Book Antiqua",Palatino,serif;
color:#7b8c96;
font-family:Lato,sans-serif;
font-weight:300;
}
h3 {
margin:20px 0 8px 0;
}
h1 span {
font-size:12px;
-webkit-border-radius:3px;
-moz-border-radius:3px;
border-radius:3px;
padding:2px 5px;
color:#fff;
font-family:Arial,Helvetica,sans-serif;
background:red;
}
</style>
</head>
<body>
<form method="post">
<div class="app-container desktop">
<div id="styles-container"><input type="button" value="" class="red-primary"><input type="button" value="" class="red-secondary"><input type="button" value="" class="orange-primary"><input type="button" value="" class="pink-primary"><input type="button" value="" class="blue-primary">
<input type="button" value="" class="blue-secondary"><input type="button" value="" class="brown-primary"><input type="button" value="" class="green-secondary"><input type="button" value="" class="gray-primary"><input type="button" value="&quo.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0