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

来自Hokubu Wiki
无编辑摘要
无编辑摘要
第1行: 第1行:
/* 网格容器 */
/* 网格容器 */
.mc-player-grid {
.mc-grid {
  display: grid;
    display: grid;
  grid-template-columns: repeat(3, minmax(300px, 1fr));
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
    gap: 15px;
  padding: 20px;
    padding: 15px;
  box-sizing: border-box;
}
}


/* 响应式网格 */
/* 横向卡片主体 */
@media (min-width: 1200px) { .mc-player-grid { grid-template-columns: repeat(4, 1fr); } }
.mc-card {
@media (max-width: 1024px) { .mc-player-grid { grid-template-columns: repeat(2, 1fr); } }
    display: flex;
@media (max-width: 768px) { .mc-player-grid { grid-template-columns: 1fr; padding: 10px; } }
    align-items: center;
    background: #f5f7fa;
    border: 1px solid #dee2e6;
    border-radius: 15px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.04);
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}


/* 卡片样式 */
/* 卡片悬停效果 */
.mc-player-card {
.mc-card:hover {
  display: flex;
    transform: translateY(-3px);
  align-items: center;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
  background: #f5f7fa;
    border-color: #3498db;
  border: 1px solid #dee2e6;
  border-radius: 15px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.04), 0 3px 6px rgba(0,0,0,0.0575);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 15px 20px;
  text-decoration: none !important;
  color: inherit;
}
}


.mc-player-card:hover {
/* 头像容器 */
  transform: translateY(-5px);
.mc-avatar {
  border-color: #3498db;
    width: 50px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 2px solid #e9ecef;
}
}


/* 头像样式 */
/* 头像图片 */
.mc-player-avatar {
.mc-avatar img {
  width: 50px;
    width: 100%;
  height: 50px;
    height: 100%;
  border-radius: 50%;
    object-fit: cover;
  overflow: hidden;
    transition: transform 0.5s ease;
  margin-right: 15px;
  border: 2px solid #dee2e6;
  transition: transform 0.5s ease;
}
}


.mc-player-card:active .mc-player-avatar {
/* 头像点击旋转 */
  transform: rotate(360deg);
.mc-card:active .mc-avatar img {
    transform: rotate(360deg);
}
}


.mc-player-avatar img {
/* 文字内容容器 */
  width: 100%;
.mc-info {
  height: 100%;
    flex: 1;
  object-fit: cover;
    min-width: 0;
}
}


/* 文字区域 */
/* 玩家名称 */
.mc-player-info {
.mc-name {
  flex: 1;
    font-size: 16px;
  min-width: 0;
    font-weight: bold;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
}


.mc-player-name {
/* 中文描述 */
  font-size: 1.2rem;
.mc-cn {
  font-weight: bold;
    font-size: 13px;
  color: #222;
    color: #555;
  margin-bottom: 5px;
    margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
}


.mc-player-chinese {
/* 英文描述 */
  font-size: 0.9rem;
.mc-en {
  color: #444;
    font-size: 12px;
  margin-bottom: 2px;
    color: #777;
  line-height: 1.6;
    font-style: italic;
    margin: 0;
}
}


.mc-player-english {
/* 响应式布局 */
  font-size: 0.8rem;
@media (max-width: 768px) {
  color: #666;
    .mc-grid {
  font-style: italic;
        grid-template-columns: 1fr;
  line-height: 1.6;
    }
}
}

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

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

/* 横向卡片主体 */
.mc-card {
    display: flex;
    align-items: center;
    background: #f5f7fa;
    border: 1px solid #dee2e6;
    border-radius: 15px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.04);
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

/* 卡片悬停效果 */
.mc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-color: #3498db;
}

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

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

/* 头像点击旋转 */
.mc-card:active .mc-avatar img {
    transform: rotate(360deg);
}

/* 文字内容容器 */
.mc-info {
    flex: 1;
    min-width: 0;
}

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

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

/* 英文描述 */
.mc-en {
    font-size: 12px;
    color: #777;
    font-style: italic;
    margin: 0;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .mc-grid {
        grid-template-columns: 1fr;
    }
}