基于jquery-ui的YAUI Kit框架的示例代码
代码语言:html
所属分类:布局界面
代码描述:基于jquery-ui的YAUI Kit框架的示例代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/jquery-ui-1.11.0.min.css"> <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Roboto+Slab:400,700'> <link rel='stylesheet' href='https://weloveiconfonts.com/api/?family=typicons'> <link rel='stylesheet' href='https://weloveiconfonts.com/api/?family=fontawesome'> <style> @charset "UTF-8"; /*============================================== Demo Styles ================================================ */ html { font-family: 'Roboto Slab', serif; font-size: 16px; height: 100%; } body { background: #9b59b6; text-align: center; } * { box-sizing: border-box; } section { width: 30rem; margin: auto; padding-bottom: 10rem; } h1 { color: #fff; font-size: 5rem; font-weight: bold; margin: 0 0 2rem 0; text-shadow: 0.2rem 0.2rem 0.1rem rgba(0, 0, 0, 0.4); } h2 { color: #fff; font-size: 2rem; font-weight: bold; margin: 0; text-shadow: 0.2rem 0.2rem 0.1rem rgba(0, 0, 0, 0.4); } h4 { color: #fff; margin: -2rem 0 2rem 0; text-shadow: 0.1rem 0.1rem 0.1rem rgba(0, 0, 0, 0.4); } /*============================================== Base Form Styles All form elements need these styles The rest are modular ================================================ */ [class*="fontawesome-"]:before { font-family: 'FontAwesome', sans-serif; font-size: 1.5rem; line-height: 2; } .ui { border-radius: 2rem; box-shadow: inset 0.1rem 0.1rem 0 rgba(0, 0, 0, 0.1), 0.2rem 0.2rem 0 rgba(255, 255, 255, 0.1); background: rgba(0, 0, 0, 0.25); display: inline-block; font-size: 1rem; margin: 0 0 1rem 0; padding: 1rem; text-align: center; width: 30rem; } .ui input[type="email"], .ui input[type="password"], .ui input[type="search"] { background: rgba(0, 0, 0, 0.25); border: 0; border-radius: 0; height: 3rem; width: 58%; color: #fff; float: left; padding-left: 0.5rem; } .ui input[type="email"]:focus, .ui input[type="password"]:focus, .ui input[type="search"]:focus { background: rgba(0, 0, 0, 0.5); transition: background 1s ease; } .ui input[type="submit"] { background: rgba(0, 0, 0, 0.4); border: 0; border-radius: 0 1rem 1rem 0; color: #fff; float: left; height: 3rem; width: 20%; z-index: 3; } .ui input[type="submit"]:hover { background: rgba(0, 0, 0, 0.6); transition: all 1s ease; } .ui label { background: rgba(0, 0, 0, 0.4); border: 0; border-radius: 0 1rem 1rem 0; color: #fff; float: left; height: 3rem; width: 20%; z-index: 3; border-radius: 1rem 0 0 1rem; line-height: 3; } /*============================================== Color Picker Slider ================================================ */ #red, #green, #blue { float: left; clear: left; width: 100%; margin: 1rem 0; } #red .ui-slider-range { background: #ef2929; } #green .ui-slider-range { background: #8ae234; } #blue .ui-slider-range { background: #729fcf; } .ui-slider-handle { width: 2rem !important; height: 2rem !important; border-radius: 50%; margin-top: -0.2rem; } .ui-slider-range { border-radius: 1rem; } .colors > div { background: rgba(0, 0, 0, 0.5); border: none; border-radius: 1rem; height: 1rem; width: 100%; } /*============================================== Ratings modified version of Lea Verou's http://lea.verou.me/2011/08/accessible-star-rating-widget-with-p.........完整代码请登录后点击上方下载按钮下载查看
网友评论0