UNPKG

aitetris

Version:

致敬程序员阿列克谢·帕基特诺夫带给全世界人民的欢乐摸鱼时光,今天我们与AI一起重制了这款经典摸鱼小游戏,公益、免费、开源、分享给大家~ In tribute to programmer Alexey Pajitnov, who brought joy and countless delightful slacking-off moments to people around the world, we've teamed up with AI to remake the classic time-kill

150 lines (126 loc) 4.02 kB
/* 帮助卡片样式 */ .help_card_7ree { /* 覆盖整个屏幕的蒙层 */ position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: auto; height: auto; background-color: rgba(0, 0, 0, 0.7); /* 半透明黑色背景 */ z-index: 1000; /* 确保在最上层 */ /* Flexbox 居中内容 */ display: flex; justify-content: center; /* 默认隐藏 */ visibility: hidden; opacity: 0; /* 过渡效果 */ transition: opacity 0.3s ease, visibility 0.3s ease; /* 允许内容滚动(如果内容溢出)*/ overflow-y: auto; -webkit-overflow-scrolling: touch; /* 改善移动端滚动体验 */ } /* 显示状态 */ .help_card_7ree.show_7ree { visibility: visible; opacity: 1; } /* 卡片内容区域 */ .help_card_7ree .card_content_7ree { background-color: #1a1a1a; /* 深色背景 */ color: #eee; /* 浅色文字 */ padding: 30px; border-radius: 10px; max-width: 90%; width: 500px; /* 最大宽度 */ box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); position: relative; /* 确保内部绝对定位元素相对此定位 */ box-sizing: border-box; /* 动画效果 - 从顶部滑入并淡入 */ transform: translateY(-50px); transition: transform 0.3s ease-out, opacity 0.3s ease-out; } .help_card_7ree.show_7ree .card_content_7ree { transform: translateY(0); /* 滑入最终位置 */ opacity: 1; /* 完全显示 */ } /* 卡片标题 */ .help_card_7ree .card_title_7ree { text-align: center; color: #00ffff; /* 亮青色标题 */ margin-top: 0; margin-bottom: 20px; font-size: 24px; text-shadow: 0 0 8px rgba(0, 255, 255, 0.5); } /* 帮助信息和列表 */ .help_card_7ree .help_message_7ree ul { text-align: left; list-style: none; padding-left: 0; margin-bottom: 20px; margin-top: 0; } .help_card_7ree .help_message_7ree li { margin-bottom: 10px; line-height: 1.6; font-size: 16px; font-family: 'microsoft yahei', sans-serif; padding-left: 20px; position: relative; } .help_card_7ree .help_message_7ree li a { color: #00ffff; /* 亮青色链接 */ text-decoration: none; /* 去掉下划线 */ } .help_card_7ree .help_message_7ree li a:hover { color: #00cccc; /* 亮青色链接悬停颜色 */ } /* 帮助信息内容容器 */ .help_card_7ree .help_message_7ree { height: 400px; /* 改为固定高度,确保滚动条显示 */ overflow-y: auto; /* 启用垂直滚动条 */ overflow-x: hidden; /* 隐藏水平滚动条 */ padding-right: 15px; /* 为滚动条留出空间,避免内容被遮挡 */ box-sizing: border-box; /* 确保内边距包含在宽度内 */ word-wrap: break-word; /* 确保长文本自动换行 */ margin-bottom: 20px; } /* 风格化滚动条 (Webkit browsers) */ .help_card_7ree .help_message_7ree::-webkit-scrollbar { width: 8px; /* 滚动条宽度 */ } .help_card_7ree .help_message_7ree::-webkit-scrollbar-track { background: #2a2a2a; /* 滚动条轨道背景 */ border-radius: 4px; } .help_card_7ree .help_message_7ree::-webkit-scrollbar-thumb { background: #00ffff; /* 滚动条滑块颜色 */ border-radius: 4px; border: 1px solid #1a1a1a; /* 滑块边框 */ } .help_card_7ree .help_message_7ree::-webkit-scrollbar-thumb:hover { background: #00cccc; /* 滑块悬停颜色 */ } /* 关闭按钮 */ .help_card_7ree .card_btn_7ree { display: block; width: 50%; padding: 6px; margin: 10px auto; background-color: #00ffff; /* 亮青色按钮 */ color: #1a1a1a; /* 深色文字 */ border: none; border-radius: 5px; font-size: 18px; cursor: pointer; transition: background-color 0.2s ease; } .help_card_7ree .card_btn_7ree:hover { background-color: #00cccc; /* 悬停变深 */ } .help_card_7ree .card_btn_7ree:active { background-color: #009999; /* 点击变更深 */ transform: scale(0.98); /* 轻微缩小 */ }