模板:MCPlayerInfo/style.css:修订间差异

来自Hokubu Wiki
无编辑摘要
无编辑摘要
第1行: 第1行:
/* 网格容器 */
/* 核心:确保卡片边框和背景显示 */
.mc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    padding: 15px;
}
 
/* 横向卡片主体 */
.mc-card {
.mc-card {
     display: flex;
     display: flex !important;
    flex-direction: row !important;
     align-items: center;
     align-items: center;
     background: #f5f7fa;
    padding: 12px 15px !important; /* 确保内边距生效 */
     border: 1px solid #dee2e6;
    margin: 5px 0 !important; /* 卡片间距 */
     border-radius: 15px;
    /* 边框和背景 - 重点修复 */
     box-shadow: 0 3px 6px rgba(0,0,0,0.04);
     background-color: #f5f7fa !important; /* 浅灰背景 */
     padding: 12px 15px;
     border: 1px solid #dee2e6 !important; /* 淡灰边框 */
     text-decoration: none;
     border-radius: 15px !important; /* 圆角 */
     color: #333;
     box-shadow: 0 3px 6px rgba(0,0,0,0.04) !important; /* 轻微阴影 */
    transition: all 0.3s ease;
     /* 链接样式 */
     text-decoration: none !important;
     color: #333 !important;
}
}


/* 卡片悬停效果 */
/* 网格容器 */
.mc-card:hover {
.mc-grid {
     transform: translateY(-3px);
     display: grid !important;
     box-shadow: 0 8px 15px rgba(0,0,0,0.1);
     grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
     border-color: #3498db;
     gap: 15px !important;
    padding: 15px !important;
}
}


/* 头像容器 */
/* 头像容器 */
.mc-avatar {
.mc-avatar {
     width: 50px;
     width: 50px !important;
     height: 50px;
     height: 50px !important;
     border-radius: 50%;
     border-radius: 50% !important;
     overflow: hidden;
     overflow: hidden !important;
     margin-right: 15px;
     margin-right: 15px !important;
     border: 2px solid #e9ecef;
     border: 2px solid #e9ecef !important;
}
}


/* 头像图片 */
.mc-avatar img {
.mc-avatar img {
     width: 100%;
     width: 100% !important;
     height: 100%;
     height: 100% !important;
     object-fit: cover;
     object-fit: cover !important;
    transition: transform 0.5s ease;
}
}


/* 头像点击旋转 */
/* 文字容器 */
.mc-card:active .mc-avatar img {
    transform: rotate(360deg);
}
 
/* 文字内容容器 */
.mc-info {
.mc-info {
     flex: 1;
     flex: 1 !important;
    min-width: 0;
}
}


/* 玩家名称 */
.mc-name {
.mc-name {
     font-size: 16px;
     font-weight: bold !important;
     font-weight: bold;
     font-size: 16px !important;
     margin: 0 0 4px 0;
     margin-bottom: 4px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
}


/* 中文描述 */
.mc-cn {
.mc-cn {
     font-size: 13px;
     font-size: 13px !important;
     color: #555;
     color: #555 !important;
     margin: 0 0 2px 0;
     margin-bottom: 2px !important;
}
}


/* 英文描述 */
.mc-en {
.mc-en {
     font-size: 12px;
     font-size: 12px !important;
     color: #777;
     color: #777 !important;
     font-style: italic;
     font-style: italic !important;
    margin: 0;
}
 
/* 响应式布局 */
@media (max-width: 768px) {
    .mc-grid {
        grid-template-columns: 1fr;
    }
}
}

2025年7月26日 (六) 00:04的版本

/* 核心:确保卡片边框和背景显示 */
.mc-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    padding: 12px 15px !important; /* 确保内边距生效 */
    margin: 5px 0 !important; /* 卡片间距 */
    /* 边框和背景 - 重点修复 */
    background-color: #f5f7fa !important; /* 浅灰背景 */
    border: 1px solid #dee2e6 !important; /* 淡灰边框 */
    border-radius: 15px !important; /* 圆角 */
    box-shadow: 0 3px 6px rgba(0,0,0,0.04) !important; /* 轻微阴影 */
    /* 链接样式 */
    text-decoration: none !important;
    color: #333 !important;
}

/* 网格容器 */
.mc-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 15px !important;
    padding: 15px !important;
}

/* 头像容器 */
.mc-avatar {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    margin-right: 15px !important;
    border: 2px solid #e9ecef !important;
}

.mc-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* 文字容器 */
.mc-info {
    flex: 1 !important;
}

.mc-name {
    font-weight: bold !important;
    font-size: 16px !important;
    margin-bottom: 4px !important;
}

.mc-cn {
    font-size: 13px !important;
    color: #555 !important;
    margin-bottom: 2px !important;
}

.mc-en {
    font-size: 12px !important;
    color: #777 !important;
    font-style: italic !important;
}