Files
001code-html--cocos/scratch-gui/static/css/singup.css
刘宇飞 6e0a1fbcbb Initial commit of 001code-html Scratch frontend project.
Includes scratch-gui, scratch-vm, scratch-blocks, scratch-render, scratch-l10n, and deployment config.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-16 15:37:45 +08:00

472 lines
10 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
.u-section-1 {
min-height: 400px;
}
.u-section-1 .u-image-1 {
min-height: calc(831px * 1);
height: 100vh; /* 强制背景占满窗口高度 */
position: relative; /* 为伪元素定位提供参考 */
overflow: hidden; /* 隐藏伪元素溢出的部分 */
/* 移除以下属性 */
/* background-size: cover; */
/* background-position: center; */
/* background-repeat: no-repeat; */
/* background-image: url("../images/photo-1488590528505-98d2b5aba04b.jpeg"); */
}
/* 定义背景渐变放大缩小的关键帧动画 */
@keyframes backgroundScale {
0% {
transform: scale(1);
}
50% {
transform: scale(1.1);
}
100% {
transform: scale(1);
}
}
.u-section-1 .u-image-1::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url("../images/photo-1488590528505-98d2b5aba04b.jpeg"); /* 背景图片路径 */
background-size: cover; /* 背景覆盖整个容器 */
background-position: center; /* 背景图片居中 */
background-repeat: no-repeat; /* 禁止重复 */
transform: scale(1); /* 初始缩放 */
transform-origin: center; /* 缩放中心 */
animation: backgroundScale 10s ease-in-out infinite; /* 应用动画 */
z-index: -1; /* 将伪元素置于内容后面 */
}
.u-section-1 .u-container-layout-1 {
padding: 0;
margin-top: 0px;
transform: scale(0.6); /* 缩放到原来的 60% */
transform-origin: top center; /* 以中心为缩放中心 */
}
.u-section-1 .u-container-layout-1 {
padding: 0;
}
.u-section-1 .u-form-1 {
height: 1005px;
background-image: none;
box-shadow: 5px 5px 20px 0 rgba(0,0,0,0.4);
--radius: 36px;
width: 742px;
margin: 215px auto 0;
}
.u-section-1 .u-text-1 {
margin-left: 0;
line-height: 0.72;
text-transform: uppercase;
font-size: 2.25rem;
}
.u-section-1 .u-input-1 {
--radius: 50px;
font-weight: 600;
}
.u-section-1 .u-form-group-3 {
margin-left: 0;
}
.u-section-1 .u-input-2 {
font-weight: 600;
--radius: 50px;
}
.u-section-1 .u-form-group-4 {
margin-left: 0;
}
.u-section-1 .u-input-3 {
font-weight: 600;
--radius: 50px;
}
.u-section-1 .u-form-group-5 {
margin-left: 0;
}
.u-section-1 .u-input-4 {
font-weight: 600;
--radius: 50px;
}
.u-section-1 .u-form-group-6 {
margin-left: 0;
}
.u-section-1 .u-input-5 {
font-weight: 600;
--radius: 50px;
}
.u-section-1 .u-form-group-7 {
margin-left: 0;
}
.u-section-1 .u-input-6 {
font-weight: 600;
--radius: 50px;
}
.u-section-1 .u-form-group-8 {
margin-left: 0;
}
.u-section-1 .u-input-7 {
font-weight: 600;
--radius: 50px;
}
.u-section-1 .u-form-group-9 {
margin-left: 0;
}
.u-section-1 .u-input-8 {
font-weight: 600;
--radius: 50px;
}
.u-section-1 .u-form-group-10 {
margin-left: 0;
}
.u-section-1 .u-input-9 {
font-weight: 600;
--radius: 50px;
}
.u-section-1 .u-form-group-11 {
margin-left: 0;
}
.u-section-1 .u-input-10 {
font-weight: 600;
--radius: 50px;
}
.u-section-1 .u-line-1 {
height: 0;
border-style: dotted;
margin-bottom: 20px !important;
margin-top: 20px !important;
}
.u-section-1 .u-btn-1 {
border-style: solid;
letter-spacing: 0px;
background-image: none;
width: 100%;
font-size: 1.5rem;
padding-left: 0;
padding-right: 0;
font-weight: 600;
text-transform: none;
}
.u-section-1 .u-text-2 {
margin-left: 0;
line-height: 0.72;
text-transform: uppercase;
font-size: 1.5rem;
margin-top: 20px !important;
margin-bottom: 0;
}
.u-section-1 .u-btn-2 {
font-size: 1.125rem;
width: 100%;
transition-duration: 0.5s;
text-decoration: underline !important;
transform: rotate(0deg) scale(1) translateX(0px) translateY(0px);
padding: 0;
}
.u-section-1 .u-text-3 {
margin-left: 0;
}
.u-section-1 .u-image-2 {
width: 218px;
height: 218px;
box-shadow: 2px 0 0 0 rgba(0,0,0,0);
transition-duration: 0.5s;
transform: rotate(0deg) scale(1) translateX(0px) translateY(0px);
margin: -1070px auto 0;
}
@media (max-width: 1199px) {
.u-section-1 .u-image-1 {
--radius: 30px;
height: auto;
width: auto;
}
.u-section-1 .u-form-1 {
height: 1092px;
width: 730px;
margin-top: 120px;
}
.u-section-1 .u-btn-1 {
padding-top: 10px;
padding-bottom: 10px;
}
.u-section-1 .u-image-2 {
--animation-custom_in-translate_x: 0px;
--animation-custom_in-translate_y: 0px;
--animation-custom_in-opacity: 0;
--animation-custom_in-rotate: 0deg;
--animation-custom_in-scale: 1;
width: 154px;
height: 154px;
margin-top: -1094px;
}
}
@media (max-width: 991px) {
.u-section-1 .u-form-1 {
width: 660px;
margin-top: 118px;
}
.u-section-1 .u-image-2 {
margin-top: -1103px;
}
}
@media (max-width: 767px) {
.u-section-1 .u-form-1 {
width: 540px;
}
.u-section-1 .u-text-2 {
font-size: 2.25rem;
}
}
@media (max-width: 575px) {
.u-section-1 .u-image-1 {
margin-top: 0;
width: auto;
}
.u-section-1 .u-form-1 {
height: 1273px;
width: 340px;
margin-top: 15px;
}
.u-section-1 .u-image-2 {
width: 88px;
height: 88px;
margin-top: -1273px;
}
}
.u-section-1 .u-image-2,
.u-section-1 .u-image-2:before,
.u-section-1 .u-image-2 > .u-container-layout:before {
transition-property: fill, color, background-color, stroke-width, border-style, border-width, border-top-width, border-left-width, border-right-width, border-bottom-width, custom-border, borders, box-shadow, text-shadow, opacity, border-radius, stroke, border-color, font-size, font-style, font-weight, text-decoration, letter-spacing, transform, background-image, image-zoom, background-size, background-position;
}
.u-section-1 .u-image-2.u-image-2.u-image-2:hover {
transform: scale(1.1) translateX(0px) translateY(0px) !important;
}
.u-section-1 .u-image-2.u-image-2.u-image-2.hover {
transform: scale(1.1) translateX(0px) translateY(0px) !important;
}
.u-section-1 .u-btn-2,
.u-section-1 .u-btn-2:before,
.u-section-1 .u-btn-2 > .u-container-layout:before {
transition-property: fill, color, background-color, stroke-width, border-style, border-width, border-top-width, border-left-width, border-right-width, border-bottom-width, custom-border, borders, box-shadow, text-shadow, opacity, border-radius, stroke, border-color, font-size, font-style, font-weight, text-decoration, letter-spacing, transform, background-image, image-zoom, background-size, background-position;
}
.u-section-1 .u-btn-2.u-btn-2.u-btn-2:hover {
transform: scale(1.1) translateX(0px) translateY(0px) !important;
}
.u-section-1 .u-btn-2 {
border-color: transparent !important;
}
.u-section-1 .u-btn-2.u-btn-2.u-btn-2.hover {
transform: scale(1.1) translateX(0px) translateY(0px) !important;
}
.u-section-1 .u-btn-2 {
border-color: transparent !important;
}
.u-section-1 .u-btn-3,
.u-section-1 .u-btn-3:before,
.u-section-1 .u-btn-3 > .u-container-layout:before {
transition-property: fill, color, background-color, stroke-width, border-style, border-width, border-top-width, border-left-width, border-right-width, border-bottom-width, custom-border, borders, box-shadow, text-shadow, opacity, border-radius, stroke, border-color, font-size, font-style, font-weight, text-decoration, letter-spacing, transform, background-image, image-zoom, background-size, background-position;
}
.u-section-1 .u-btn-3.u-btn-3.u-btn-3:hover {
transform: scale(1.1) translateX(0px) translateY(0px) !important;
}
.u-section-1 .u-btn-3 {
border-color: transparent !important;
}
.u-section-1 .u-btn-3.u-btn-3.u-btn-3.hover {
transform: scale(1.1) translateX(0px) translateY(0px) !important;
}
.u-section-1 .u-btn-3 {
border-color: transparent !important;
}
.u-input-rectangle {
display: flex; /* 使用 Flexbox */
align-items: center; /* 垂直居中 */
justify-content: center; /* 水平居中 */
text-align: center; /* 文本水平居中 */
}
.u-form-send-error {
cursor: pointer;
}
/* 模态窗口的背景 */
.modal {
display: block; /* 始终保持为block以便应用过渡效果 */
position: fixed; /* 固定位置 */
z-index: 1000; /* 确保模态窗口在最前面 */
left: 0;
top: 0;
width: 100%; /* 全屏 */
height: 100%; /* 全屏 */
overflow: auto; /* 如果需要滚动 */
background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
/* 初始状态为隐藏 */
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease; /* 过渡效果 */
}
/* 当模态窗口显示时应用 */
.modal.show {
opacity: 1;
visibility: visible;
}
/* 模态窗口的内容 */
.modal-content {
background-color: #fefefe;
margin: 15% auto; /* 居中 */
padding: 20px;
border: 1px solid #888;
width: 80%; /* 宽度 */
max-width: 500px; /* 最大宽度 */
border-radius: 10px; /* 圆角 */
text-align: center;
/* 添加淡入效果 */
transform: translateY(-20px);
transition: transform 0.3s ease;
}
.modal.show .modal-content {
transform: translateY(0);
}
/* 关闭按钮 */
.close-button {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
cursor: pointer;
}
.close-button:hover,
.close-button:focus {
color: black;
text-decoration: none;
}
/* 添加可点击的光标样式 */
.u-form-send-message {
cursor: pointer;
}
/* 可选:为消息框添加一些过渡效果 */
.u-form-send-message {
transition: opacity 0.3s ease;
}
/* Toast 容器 */
#toast-container {
position: fixed;
top: 10%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 100002; /* 确保在最上层 */
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
pointer-events: none; /* 允许点击穿透 */
}
/* 单个 Toast */
.toast {
min-width: 250px;
max-width: 350px;
padding: 15px 20px;
border-radius: 5px;
color: #fff;
font-family: Arial, sans-serif;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
opacity: 0.9;
transition: opacity 0.5s ease, transform 0.5s ease;
display: flex;
align-items: center;
justify-content: center; /* 居中文本 */
text-align: center; /* 居中文本 */
pointer-events: auto; /* 允许 Toast 接收事件 */
}
/* 成功 Toast */
.toast.success {
background-color: #4CAF50; /* 绿色 */
}
/* 错误 Toast */
.toast.error {
background-color: #f44336; /* 红色 */
}
/* 信息 Toast */
.toast.info {
background-color: #2196F3; /* 蓝色 */
}
/* 淡出效果 */
.toast.fade-out {
opacity: 0;
transform: translateY(-20px);
transition: opacity 0.5s ease, transform 0.5s ease;
}