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="" class="white-primary"></div> <div class="row"> <div class="column twelve afc-container"> <h1>Auto Form Customizer <span>v 1.0</span></h1> </div> </div> <div class="row" id="afc-content"> <div class="column six afc-container"> <h3>First name</h3><input type="text" placeholder="First name"> <h3> Password</h3><input type="password" placeholder="Password"> <h3> Country (finder)</h3><select class="finder fullwidth" name="country"><option value="1">AFGHANISTAN</option><option value="2">ALAND ISLANDS</option><option value="3">ALBANIA</option><option value="4">ALGERIA</option><option value="212">ALL COUNTRY</option><option value="219">AMERICAN SAMOA</option><option value="5">ANDORRA</option><option value="6">ANGOLA</option><option value="7">ANGUILLA</option><option value="220">ANTARCTICA</option><option value="8">ANTIGUA AND BARBUDA</option><option value="215">ANTIGUA AND BERMUDA</option><option value="9">ARGENTINA</option><option value="10">ARMENIA</option><option value="11">ARUBA</option><option value="270">ASIA PACIFIC</option><option value="12">AUSTRALIA</option><option value="13">AUSTRIA</option><option value="14">AZERBAIJAN</option><option value="15">BAHAMAS</option><option value="16">BAHRAIN</option><option value="17">BANGLADESH</option><option value="18">BARBADOS</option><option value="19">BELARUS</option><option value="20">BELGIUM</option><option value="21">BELIZE</option><option value="214">BENGLADESH</option><option value="22">BENIN</option><option value="23">BERMUDA</option><option value="24">BHUTAN</option><option value="25">BOLIVIA</option><option value="26">BOSNIA</option><option value="27">BOTSWANA</option><option value="221">BOUVET ISLAND</option><option value="28">BRAZIL</option><option value="222">BRITISH INDIAN OCEAN TERRITORY</option><option value="218">BRITISH VIRGIN ISLAND</option><option value="29">BRUNEI DARUSSALAM</option><option value="30">BULGARIA</option><option value="31">BURKINA FASO</option><option value="32">BURUNDI</option><option value="46">C0TE D'IVOIRE</option><option value="33">CAMBODIA</option><option value="34">CAMEROON</option><option value="35">CANADA</option><option value="36">CAPE VERDE</option><option value="205">CAYMAN ISLANDS</option><option value="37">CENTRAL AFRICAN REPUBLIC</option><option value="38">CHAD</option><option value="39">CHILE</option><option value="40">CHINA</option><option value="223">CHRISTMAS ISLAND</option><option value="224">COCOS (KEELING) ISLANDS</option><option value="41">COLOMBIA</option><option value="42">COMOROS</option><option value="225">CONGO</option><option value="226">CONGO, THE DEMOCRATIC REPUBLIC OF THE</option><option value="227">COOK ISLANDS</option><option value="45">COSTA RICA</option><option value="228">COTE D'IVOIRE</option><option value="47">CROATIA</option><option value="48">CUBA</option><option value="49">CYPRUS</option><option value="50">CZECH REPUBLIC</option><option value="51">DENMARK</option><option value="52">DJIBOUTI</option><option value="53">DOMINICA</option><option value="54">DOMINICAN REPUBLIC</option><option value="55">ECUADOR</option><option value="56">EGYPT</option><option value="57">EL SALVADOR</option><option value="269">EMEA</option><option value="58">EQUATORIAL GUINEA</option><option value="59">ERITREA</option><option value="60">ESTONIA</option><option value="61">ETHIOPIA</option><option value="268">EUROPE</option><option value="62">FAEROE ISLANDS</option><option value="63">FALKLAND ISLANDS</option><option value="229">FALKLAND ISLANDS (MALVINAS)</option><option value="230">FAROE ISLANDS</option><option value="64">FIJI</option><option value="65">FINLAND</option><option value="66">FRANCE</option><option value="67">FRENCH GUIANA</option><option value="231">FRENCH POLYNESIA</option><option value="232">FRENCH SOUTHERN TERRITORIES</option><option value="68">GABON</option><option value="233">GAMBIA</option><option value="69">GAMBIA, THE</option><option value="70">GEORGIA</option><option value="71">GERMANY</option><option value="72">GHANA</option><option value="234">GIBRALTAR</option><option value="73">GREECE</option><option value="74">GREENLAND</option><option value="75">GRENADA</option><option value="76">GUADELOUPE</option><option value="235">GUAM</option><option value="77">GUATEMALA</option><option value="78">GUINEA</option><option value="79">GUINEA-BISSAU</option><option value="80">GUYANA</option><option value="81">HAITI</option><option value="236">HEARD ISLAND AND MCDONALD ISLANDS</option><option value="237">HOLY SEE (VATICAN CITY STATE)</option><option value="82">HONDURAS</option><option value="83">HONG KONG</option><option value="84">HUNGARY</option><option value="85">ICELAND</option><option value="86">INDIA</option><option value="87">INDONESIA</option><option value="88">IRAN</option><option value="238">IRAN, ISLAMIC REPUBLIC OF</option><option value="89">IRAQ</option><option value="90">IRELAND</option><option value="91">ISRAEL</option><option value="92">ITALY</option><option value="210">IVORY COAST</option><option value="93">JAMAICA</option><option value="94">JAPAN</option><option value="95">JORDAN</option><option value="96">KAZAKHSTAN</option><option value="97">KENYA</option><option value="239">KIRIBATI</option><option value="240">KOREA, DEMOCRATIC PEOPLE'S REPUBLIC OF</option><option value="241">KOREA, REPUBLIC OF</option><option value="100">KUWAIT</option><option value="101">KYRGYZSTAN</option><o.........完整代码请登录后点击上方下载按钮下载查看
网友评论0