parent
ac09d15c04
commit
7793ab5b98
@ -0,0 +1,261 @@
|
||||
h1{
|
||||
font-family: "Arial", sans-serif;
|
||||
text-align:center;
|
||||
color: #0c1c3be7;
|
||||
}
|
||||
|
||||
h2{
|
||||
font-family: "Arial", sans-serif;
|
||||
text-align:center;
|
||||
color: #0c1c3be7;
|
||||
|
||||
}
|
||||
|
||||
body{
|
||||
background-image: url(bei.jpg);
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-attachment: fixed;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.deng{
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
width: 500px;
|
||||
height: 600px;
|
||||
display: flex; /* 启用Flexbox布局 */
|
||||
|
||||
flex-direction: column; /* 设置主轴方向为垂直(从上到下) */
|
||||
|
||||
align-items: center; /* 在交叉轴上居中子元素(这里指水平居中) */
|
||||
|
||||
justify-content: center;
|
||||
/* background-color: #f2f2f2; 为了可见性添加背景色 */
|
||||
/* border: 1px solid black; */
|
||||
border-radius: 20px;
|
||||
|
||||
--color: #E1E1E1;
|
||||
background-color: #F3F3F3;
|
||||
background-image: linear-gradient(0deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%,transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%,transparent),
|
||||
linear-gradient(90deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%,transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%,transparent);
|
||||
background-size: 55px 55px;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.deng1{
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
width: 500px;
|
||||
height: 600px;
|
||||
display: flex; /* 启用Flexbox布局 */
|
||||
|
||||
flex-direction: column; /* 设置主轴方向为垂直(从上到下) */
|
||||
|
||||
align-items: center; /* 在交叉轴上居中子元素(这里指水平居中) */
|
||||
|
||||
justify-content: center;
|
||||
/* background-color: #f2f2f2; 为了可见性添加背景色 */
|
||||
/* border: 1px solid black; */
|
||||
border-radius: 20px;
|
||||
|
||||
--color: #E1E1E1;
|
||||
background-color: #F3F3F3;
|
||||
background-image: linear-gradient(0deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%,transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%,transparent),
|
||||
linear-gradient(90deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%,transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%,transparent);
|
||||
background-size: 55px 55px;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.group {
|
||||
position: relative;
|
||||
/* border: 1px solid black; */
|
||||
}
|
||||
|
||||
.input {
|
||||
font-size: 16px;
|
||||
padding: 10px 10px 10px 5px;
|
||||
display: block;
|
||||
width: 200px;
|
||||
border: none;
|
||||
border-bottom: 1px solid #515151;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.input:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
label {
|
||||
color: #330e0e;
|
||||
font-size: 18px;
|
||||
font-weight: normal;
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
left: 5px;
|
||||
top: 10px;
|
||||
transition: 0.2s ease all;
|
||||
-moz-transition: 0.2s ease all;
|
||||
-webkit-transition: 0.2s ease all;
|
||||
}
|
||||
|
||||
.input:focus ~ label, .input:valid ~ label {
|
||||
top: -20px;
|
||||
font-size: 14px;
|
||||
color: #5264AE;
|
||||
}
|
||||
|
||||
.bar {
|
||||
position: relative;
|
||||
display: block;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
.bar:before, .bar:after {
|
||||
content: '';
|
||||
height: 2px;
|
||||
width: 0;
|
||||
bottom: 1px;
|
||||
position: absolute;
|
||||
background: #5264AE;
|
||||
transition: 0.2s ease all;
|
||||
-moz-transition: 0.2s ease all;
|
||||
-webkit-transition: 0.2s ease all;
|
||||
}
|
||||
|
||||
.bar:before {
|
||||
left: 50%;
|
||||
}
|
||||
|
||||
.bar:after {
|
||||
right: 50%;
|
||||
}
|
||||
|
||||
.input:focus ~ .bar:before, .input:focus ~ .bar:after {
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.highlight {
|
||||
position: absolute;
|
||||
height: 60%;
|
||||
width: 100px;
|
||||
top: 25%;
|
||||
left: 0;
|
||||
pointer-events: none;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.input:focus ~ .highlight {
|
||||
animation: inputHighlighter 0.3s ease;
|
||||
}
|
||||
|
||||
@keyframes inputHighlighter {
|
||||
from {
|
||||
background: #5264AE;
|
||||
}
|
||||
|
||||
to {
|
||||
width: 0;
|
||||
background: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
.button-name {
|
||||
align-items: center;
|
||||
appearance: none;
|
||||
background-color: #FCFCFD;
|
||||
border-radius: 4px;
|
||||
border-width: 0;
|
||||
box-shadow: rgba(45, 35, 66, 0.2) 0 2px 4px,rgba(45, 35, 66, 0.15) 0 7px 13px -3px,#D6D6E7 0 -3px 0 inset;
|
||||
box-sizing: border-box;
|
||||
color: #36395A;
|
||||
cursor: pointer;
|
||||
display: inline-flex;
|
||||
font-family: "JetBrains Mono",monospace;
|
||||
height: 48px;
|
||||
justify-content: center;
|
||||
line-height: 1;
|
||||
list-style: none;
|
||||
overflow: hidden;
|
||||
padding-left: 16px;
|
||||
padding-right: 16px;
|
||||
position: relative;
|
||||
text-align: left;
|
||||
text-decoration: none;
|
||||
transition: box-shadow .15s,transform .15s;
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
touch-action: manipulation;
|
||||
white-space: nowrap;
|
||||
will-change: box-shadow,transform;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.button-name:focus {
|
||||
box-shadow: #D6D6E7 0 0 0 1.5px inset, rgba(45, 35, 66, 0.4) 0 2px 4px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
|
||||
}
|
||||
|
||||
.button-name:hover {
|
||||
box-shadow: rgba(45, 35, 66, 0.3) 0 4px 8px, rgba(45, 35, 66, 0.2) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.button-name:active {
|
||||
box-shadow: #D6D6E7 0 3px 7px inset;
|
||||
transform: translateY(2px);
|
||||
}
|
||||
|
||||
.Btn {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
border: none;
|
||||
padding: 0px 20px;
|
||||
background-color: black;
|
||||
color: white;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
border-radius: 10px;
|
||||
box-shadow: 5px 5px 0px black;
|
||||
transition-duration: 0.3s;
|
||||
}
|
||||
|
||||
.svg {
|
||||
width: 13px;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
margin-right: 20px;
|
||||
fill: white;
|
||||
transition-duration: 0.3s;
|
||||
}
|
||||
|
||||
.Btn:hover {
|
||||
color: transparent;
|
||||
}
|
||||
|
||||
.Btn:hover svg {
|
||||
right: 43%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: none;
|
||||
transition-duration: 0.3s;
|
||||
}
|
||||
|
||||
.Btn:active {
|
||||
transform: translate(3px, 3px);
|
||||
transition-duration: 0.3s;
|
||||
box-shadow: 2px 2px 0px white;
|
||||
}
|
Loading…
Reference in new issue