/** * 这里是uni-app内置的常用样式变量 * * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App * */ /** * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 * * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 */ /* 颜色变量 */ /* 行为相关颜色 */ /* 文字基本颜色 */ /* 背景颜色 */ /* 边框颜色 */ /* 尺寸变量 */ /* 文字尺寸 */ /* 图片尺寸 */ /* Border Radius */ /* 水平间距 */ /* 垂直间距 */ /* 透明度 */ /* 文章场景相关 */ .fui-scroll__wrap.data-v-6cf62e12 { padding-top: 30rpx; position: relative; } .fui-vip__icon.data-v-6cf62e12 { width: 48rpx; height: 48rpx; margin-left: 16rpx; } /* 页面样式 */ .page.data-v-6cf62e12 { position: relative; min-height: 100vh; /* 确保页面内容撑满屏幕 */ } .container.data-v-6cf62e12 { position: relative; padding-top: 80rpx; /* 顶部导航栏的高度 + 小间距 */ padding-bottom: 120px; /* 底部导航栏的高度 + 小间距 */ } /* 居中按钮样式 */ .floating-button.data-v-6cf62e12 { width: 80%; position: fixed; bottom: 70px; /* 底部导航栏的高度 + 小间距 */ left: 50%; transform: translateX(-50%); z-index: 10; /* 确保按钮在底部导航栏上方 */ } .submit-button.data-v-6cf62e12 { background: linear-gradient(to right, #857ed1, #4338CA); border-radius: 50px; box-shadow: 0 3px 5px var(--primary-color-light); } .cart.data-v-6cf62e12 { position: absolute; top: 50px; right: 30px; background-color: #f0f0f0; padding: 10px; } .add-icon.data-v-6cf62e12 { position: absolute; background-color: #4338CA; color: white; width: 40px; height: 40px; text-align: center; line-height: 40px; border-radius: 50%; animation: moveAnimation 1s ease-in-out forwards; } .content-default.data-v-6cf62e12 { z-index: 996; width: 100rpx; height: 100rpx; background: linear-gradient(360deg, #857ed1 0%, #4338CA 100%); box-shadow: 0 4rpx 12rpx 0 #ADC3F8; border-radius: 50rpx; color: #FFFFFF; display: flex; align-items: center; justify-content: center; animation: verticalMove-6cf62e12 2s ease-in-out infinite; } /* 上下移动动画 */ @keyframes verticalMove-6cf62e12 { 0% { transform: translateY(0); } 50% { transform: translateY(-20px); /* 上移 */ } 100% { transform: translateY(0); /* 恢复到原位 */ } }