css自适应一站式机票车票酒店旅游预订表单效果代码
代码语言:html
所属分类:表单美化
代码描述:css自适应一站式机票车票酒店旅游预订表单效果代码
代码标签: 一站式 机票 车票 酒店 旅游 预订 表单 效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style>
* {
user-select: none;
font-size: 1rem;
box-sizing: border-box;
outline: none;
-webkit-tap-highlight-color: transparent;
font-family: 'Microsoft YaHei','Lantinghei SC','Open Sans',Arial,'Hiragino Sans GB','STHeiti','WenQuanYi Micro Hei','SimSun',sans-serif;
}
body {
background-color: #f6f6f6;
text-align: center;
width: 90%;
margin: 0 auto;
max-width: 36rem;
padding-bottom: 1rem;
}
label {
cursor: pointer;
user-select: none;
}
:root {
font-family: 'Microsoft YaHei','Lantinghei SC','Open Sans',Arial,'Hiragino Sans GB','STHeiti','WenQuanYi Micro Hei','SimSun',sans-serif;
}
input[type="checkbox"] {
display: block;
pointer-events: none;
position: absolute;
opacity: 0;
}
input[type="checkbox"] + label {
margin-bottom: 1rem;
color: violet;
text-decoration: underline;
display: inline-block;
transition: all .5s ease;
line-height: 3rem;
white-space: nowrap;
position: relative;
padding-top: 4rem;
vertical-align: middle;
border-radius: 50%;
width: 8rem;
text-align: center;
height: 8rem;
}
input[type="checkbox"] + label svg {
transform: scale(0.5) translate(0, 0.75rem);
transition: all 0.25s cubic-bezier(0.4, 0.1, 0.1, 1.5);
display: block;
width: 5rem;
height: 5rem;
left: 1.5rem;
position: absolute;
top: .5rem;
}
input[type="checkbox"] + label svg path {
fill: violet;
stroke: transparent;
stroke-width: 1px;
stroke-dasharray: 30px, 30px;
stroke-dashoffset: -30px;
transition: all 0.5s cubic-bezier(0.7, 0.1, 0.1, 0.3);
}
input[type="checkbox"]:focus + label {
color: #901490;
}
input[type="checkbox"]:focus + label path {
fill: #bd1abd;
}
input[type="checkbox"]:checked + label {
text-decoration: none;
color: violet;
line-height: 4.5rem;
background-color: #ef86ef;
background-image: linear-gradient(45deg, #ef86ef, #e124e1);
color: #fff;
}
input[type="checkbox"]:checked + label svg {
transform: scale(1);
}
input[type="checkbox"]:checked + label svg path {
fill: #f198f1;
stroke: #b018b0;
stroke-width: .4px;
stroke-dasharray: 30px, 30px;
stroke-dashoffset: 0px;
}
input[type="checkbox"]:checked:focus + label {
box-shadow: none;
}
input[type="checkbox"]:checked:focus + label path {
stroke: white;
fill: transparent;
stroke-width: .4px;
}
.logo {
background-image: url("//repo.bfw.wiki/bfwrepo/icon/60ecf359eb0c5.png");
transition: all 0.3s cubic-bezier(0.4, 0.1, 0.1, 2);
display: inline-block;
margin: 1rem 0;
height: 4rem;
max-width: 25rem;
width: 100%;
background-size: contain;
background-position: 50% 50%;
background-repeat: no-repeat;
color: transparent;
text-decoration: none;
outline: 0;
}
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {
/* display: none; <- Crashes Chrome on hover */
-webkit-appearance: none;
margin: 0;
/* .........完整代码请登录后点击上方下载按钮下载查看
















网友评论0