fastbee/yack-mini/miniprogram/app.wxss
2026-09-27 14:46:05 +08:00

158 lines
2.5 KiB
Plaintext

/**
* 全局样式
*/
/* 页面基础样式 */
page {
background-color: #f5f5f5;
font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
font-size: 28rpx;
color: #333;
line-height: 1.6;
}
/* 通用容器 */
.container {
padding: 20rpx;
}
/* 卡片样式 */
.card {
background-color: #fff;
border-radius: 16rpx;
padding: 24rpx;
margin-bottom: 20rpx;
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.05);
}
/* 按钮样式 */
.btn-primary {
background-color: #1890ff;
color: #fff;
border-radius: 8rpx;
font-size: 32rpx;
padding: 20rpx 40rpx;
text-align: center;
}
.btn-primary:active {
background-color: #096dd9;
}
.btn-default {
background-color: #fff;
color: #333;
border: 1rpx solid #d9d9d9;
border-radius: 8rpx;
font-size: 32rpx;
padding: 20rpx 40rpx;
text-align: center;
}
.btn-default:active {
background-color: #f5f5f5;
}
.btn-danger {
background-color: #ff4d4f;
color: #fff;
border-radius: 8rpx;
font-size: 32rpx;
padding: 20rpx 40rpx;
text-align: center;
}
/* 输入框样式 */
.input {
background-color: #f5f5f5;
border-radius: 8rpx;
padding: 20rpx 24rpx;
font-size: 28rpx;
}
/* 列表项 */
.list-item {
display: flex;
flex-direction: row;
align-items: center;
padding: 24rpx 0;
border-bottom: 1rpx solid #f0f0f0;
}
.list-item:last-child {
border-bottom: none;
}
/* 标题 */
.title {
font-size: 32rpx;
font-weight: 600;
color: #333;
}
/* 副标题 */
.subtitle {
font-size: 26rpx;
color: #999;
margin-top: 8rpx;
}
/* 状态标签 */
.status-tag {
display: inline-block;
padding: 4rpx 16rpx;
border-radius: 4rpx;
font-size: 22rpx;
}
.status-tag.online {
background-color: #f6ffed;
color: #52c41a;
border: 1rpx solid #b7eb8f;
}
.status-tag.offline {
background-color: #fff7e6;
color: #fa8c16;
border: 1rpx solid #ffd591;
}
/* 可点击状态标签(如详情页 BLE「未连接 · 点击重连」) */
.status-tag.retryable {
background-color: #e6f7ff;
color: #1890ff;
border: 1rpx solid #91d5ff;
}
.status-tag.retryable:active {
opacity: 0.7;
}
/* 空状态 */
.empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 100rpx 40rpx;
color: #999;
}
.empty-icon {
width: 200rpx;
height: 200rpx;
margin-bottom: 32rpx;
}
.empty-text {
font-size: 28rpx;
}
/* 加载中 */
.loading {
display: flex;
justify-content: center;
align-items: center;
padding: 40rpx;
color: #999;
}