STM32_KQZLJC/minicode-1/pages/logs/logs.wxss

276 lines
4.4 KiB
Plaintext

/* 日志页面样式 */
.container {
padding: 20rpx;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
/* 顶部标题栏 */
.header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 30rpx;
padding: 10rpx 0;
}
.back-btn {
display: flex;
align-items: center;
gap: 8rpx;
padding: 10rpx 20rpx;
border-radius: 20rpx;
background: rgba(255,255,255,0.2);
transition: all 0.3s ease;
}
.back-btn:hover {
background: rgba(255,255,255,0.3);
transform: translateX(-4rpx);
}
.back-icon {
font-size: 32rpx;
color: white;
font-weight: bold;
}
.back-text {
font-size: 28rpx;
color: white;
}
.title {
font-size: 36rpx;
font-weight: bold;
color: white;
text-shadow: 0 2rpx 4rpx rgba(0,0,0,0.1);
letter-spacing: 1rpx;
}
.clear-btn {
background: rgba(255,255,255,0.2);
color: white;
font-size: 28rpx;
padding: 8rpx 24rpx;
border-radius: 20rpx;
border: 1px solid rgba(255,255,255,0.3);
backdrop-filter: blur(10rpx);
transition: all 0.3s ease;
}
.clear-btn:hover {
background: rgba(255,255,255,0.3);
transform: translateY(-2rpx);
box-shadow: 0 4rpx 8rpx rgba(0,0,0,0.1);
}
/* 日志统计 */
.stats-bar {
margin-bottom: 20rpx;
padding: 20rpx;
background: rgba(255,255,255,0.95);
border-radius: 16rpx;
box-shadow: 0 8rpx 24rpx rgba(0,0,0,0.1);
backdrop-filter: blur(10rpx);
display: flex;
justify-content: space-between;
align-items: center;
}
.stats-text {
font-size: 24rpx;
color: #333;
font-weight: 500;
}
.last-update {
font-size: 22rpx;
color: #666;
}
/* 日志列表 */
.logs-list {
margin-top: 20rpx;
}
/* 空状态 */
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 100rpx 20rpx;
background: rgba(255,255,255,0.95);
border-radius: 24rpx;
box-shadow: 0 8rpx 24rpx rgba(0,0,0,0.1);
backdrop-filter: blur(10rpx);
text-align: center;
animation: slideUp 0.5s ease;
}
.empty-icon {
font-size: 80rpx;
margin-bottom: 30rpx;
}
.empty-text {
font-size: 32rpx;
color: #333;
font-weight: 500;
margin-bottom: 20rpx;
}
.empty-hint {
font-size: 24rpx;
color: #999;
line-height: 1.4;
}
/* 日志列表项 */
.log-item {
background: rgba(255,255,255,0.95);
border-radius: 16rpx;
padding: 24rpx;
margin-bottom: 16rpx;
box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.1);
transition: all 0.3s ease;
backdrop-filter: blur(10rpx);
position: relative;
overflow: hidden;
}
.log-item:hover {
transform: translateY(-2rpx);
box-shadow: 0 8rpx 24rpx rgba(0,0,0,0.15);
}
/* 日志头部 */
.log-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16rpx;
}
.log-time {
font-size: 22rpx;
color: #666;
font-weight: 500;
}
.log-type {
padding: 6rpx 16rpx;
border-radius: 12rpx;
font-size: 20rpx;
font-weight: 500;
}
.log-type.data {
background: rgba(7,193,96,0.1);
color: #07c160;
}
.log-type.system {
background: rgba(102,126,234,0.1);
color: #667eea;
}
/* 日志内容 */
.log-content {
margin-bottom: 12rpx;
}
.log-data {
font-size: 24rpx;
color: #333;
line-height: 1.4;
word-break: break-all;
font-family: 'Courier New', monospace;
}
.log-message {
font-size: 24rpx;
color: #333;
line-height: 1.4;
}
/* 日志详情 */
.log-details {
padding-top: 12rpx;
border-top: 1rpx solid #f0f0f0;
}
.details-text {
font-size: 22rpx;
color: #999;
line-height: 1.3;
}
/* 底部提示 */
.footer-tips {
margin-top: 30rpx;
padding: 20rpx;
background: rgba(255,255,255,0.9);
border-radius: 12rpx;
box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.05);
backdrop-filter: blur(10rpx);
}
.tips-text {
font-size: 22rpx;
color: #666;
line-height: 1.4;
text-align: center;
}
/* 动画 */
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(50rpx);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* 响应式设计 */
@media (max-width: 414px) {
.header {
padding: 0;
}
.title {
font-size: 28rpx;
}
.back-btn {
padding: 8rpx 16rpx;
}
.back-text {
display: none;
}
.clear-btn {
font-size: 24rpx;
padding: 6rpx 20rpx;
}
.log-item {
padding: 20rpx;
}
.log-time {
font-size: 20rpx;
}
.log-data,
.log-message {
font-size: 22rpx;
}
}