Common.css:修订间差异
来自卡厄思梦境WIKI
无编辑摘要 |
无编辑摘要 |
||
| 第250行: | 第250行: | ||
overflow: hidden; | overflow: hidden; | ||
transition: transform 0.3s ease, box-shadow 0.3s ease; | transition: transform 0.3s ease, box-shadow 0.3s ease; | ||
} | |||
/* 战斗员筛选系统样式 */ | |||
.filter-btn { | |||
-webkit-user-select: none; | |||
-moz-user-select: none; | |||
-ms-user-select: none; | |||
user-select: none; | |||
transition: all 0.2s ease; | |||
} | |||
.filter-btn:active { | |||
transform: scale(0.95) !important; | |||
} | |||
.character-card { | |||
transition: all 0.3s ease; | |||
} | |||
.character-card:hover { | |||
transform: scale(1.05); | |||
box-shadow: 0 5px 15px rgba(0,0,0,0.3); | |||
z-index: 10; | |||
position: relative; | |||
} | |||
#character-search:focus { | |||
border-color: #80bdff !important; | |||
outline: none; | |||
box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25); | |||
} | |||
#reset-filters { | |||
-webkit-user-select: none; | |||
-moz-user-select: none; | |||
-ms-user-select: none; | |||
user-select: none; | |||
transition: all 0.2s ease; | |||
} | |||
#reset-filters:active { | |||
transform: scale(0.95) !important; | |||
} | |||
/* 响应式布局 */ | |||
@media (max-width: 768px) { | |||
.filter-group { | |||
margin-bottom: 20px !important; | |||
} | |||
.filter-btn { | |||
margin-bottom: 5px !important; | |||
display: inline-block !important; | |||
} | |||
#character-search { | |||
width: 150px !important; | |||
margin-bottom: 10px; | |||
} | |||
#reset-filters { | |||
display: block !important; | |||
margin-left: 0 !important; | |||
margin-top: 10px !important; | |||
text-align: center; | |||
} | |||
} | |||
/* 筛选组标题样式 */ | |||
.filter-group > span:first-child { | |||
min-width: 60px; | |||
display: inline-block; | |||
} | |||
/* 卡片容器优化 */ | |||
#character-container { | |||
min-height: 300px; | |||
padding: 10px; | |||
} | |||
/* 无结果提示(可选) */ | |||
#character-container:empty::after { | |||
content: "没有找到符合条件的战斗员"; | |||
display: block; | |||
text-align: center; | |||
padding: 50px 20px; | |||
color: #6c757d; | |||
font-size: 16px; | |||
} | |||
/* 统计信息样式 */ | |||
#filter-stats { | |||
font-size: 14px; | |||
color: #495057; | |||
} | |||
#visible-count { | |||
font-weight: bold; | |||
color: #007bff; | |||
} | |||
#total-count { | |||
font-weight: bold; | |||
} | |||
/* 当前筛选条件样式 */ | |||
#current-filters { | |||
animation: slideDown 0.3s ease; | |||
} | |||
@keyframes slideDown { | |||
from { | |||
opacity: 0; | |||
transform: translateY(-10px); | |||
} | |||
to { | |||
opacity: 1; | |||
transform: translateY(0); | |||
} | |||
} | |||
#filter-display { | |||
color: #007bff; | |||
font-weight: 500; | |||
} | } | ||
2025年9月25日 (四) 16:13的版本
/* 这里放置的CSS将应用于所有皮肤 */
/* 手机端和PC端显示控制 */
@media screen and (max-width: 640px) {
.desktop-only {
display: none !important;
}
}
@media screen and (min-width: 641px) {
.mobile-only {
display: none !important;
}
}
/* 隐藏通知图标 */
#echo-notifications {
display:none;
}
/* 隐藏底部图标 */
#footer-right-icons {
display:none;
}
/* 标签切换样式 */
.main-line-wrap {
margin: 10px 0;
font-family: Arial, sans-serif;
}
.resp-tabs {
background: transparent;
}
.resp-tabs-list {
list-style: none;
margin: 0;
padding: 0;
background: transparent;
overflow: hidden;
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.resp-tabs-list::after {
content: "";
display: table;
clear: both;
}
.czn-list-style {
margin: 0;
padding: 0;
cursor: pointer;
transition: all 0.2s ease;
border-radius: 4px;
background-color: #f5f5f5;
border: 1px solid #ddd;
border-top: 1px solid #ddd !important;
border-bottom: 1px solid #ddd !important;
border-left: 1px solid #ddd !important;
border-right: 1px solid #ddd !important;
}
.czn-list-style:hover {
background-color: #e8e8e8;
border: 1px solid #ddd !important;
}
.czn-list-style.active {
background-color: #007bff;
color: white;
border: 1px solid #007bff !important;
}
.czn-list-style.active:hover {
background-color: #0056b3;
border: 1px solid #0056b3 !important;
}
.tab-panel {
display: block;
padding: 8px 16px;
color: #333;
text-decoration: none;
font-weight: normal;
transition: color 0.2s ease;
white-space: nowrap;
min-width: 60px;
text-align: center;
font-size: 14px;
border: none !important;
}
.czn-list-style.active .tab-panel {
color: white;
}
.resp-tabs-container {
padding: 0;
background: transparent;
margin-top: 8px;
}
.resp-tab-content {
display: none;
animation: fadeIn 0.2s ease-in-out;
background: transparent;
padding: 0;
border: none !important;
}
.resp-tab-content[style*="display:block"],
.resp-tab-content[style*="display: block"] {
display: block !important;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
/* 响应式设计 */
@media (max-width: 768px) {
.resp-tabs-list {
flex-direction: column;
gap: 4px;
}
.czn-list-style {
width: 100%;
border: 1px solid #ddd !important;
}
.tab-panel {
padding: 6px 12px;
min-width: auto;
font-size: 13px;
border: none !important;
}
.resp-tabs-container {
margin-top: 6px;
}
}
/* 可选的颜色主题 */
.czn-list-style.theme-gray.active {
background-color: #6c757d;
border: 1px solid #6c757d !important;
}
.czn-list-style.theme-gray.active:hover {
background-color: #545b62;
border: 1px solid #545b62 !important;
}
.czn-list-style.theme-dark.active {
background-color: #343a40;
border: 1px solid #343a40 !important;
}
.czn-list-style.theme-dark.active:hover {
background-color: #23272b;
border: 1px solid #23272b !important;
}
.czn-list-style.theme-light.active {
background-color: #f8f9fa;
border: 1px solid #f8f9fa !important;
color: #333;
}
.czn-list-style.theme-light.active .tab-panel {
color: #333;
}
.czn-list-style.theme-light.active:hover {
background-color: #e2e6ea;
border: 1px solid #e2e6ea !important;
}
/* 黑幕 */
.heimu {
background-color: #252525;
color: #252525;
transition: color 0.5s;
}
.heimu:hover {
color: #ffffff;
}
/* 卡牌描述滚动效果 */
@keyframes cardDescriptionScroll {
0% { transform: translateY(0); }
20% { transform: translateY(0); }
80% { transform: translateY(calc(-100% + 55px)); }
100% { transform: translateY(calc(-100% + 55px)); }
}
.card-scroll-container {
position: absolute;
left: 12px;
width: 136px;
height: 55px;
color: white;
font-size: 12px;
text-align: center;
z-index: 1;
overflow: hidden;
mask: linear-gradient(to bottom, transparent 0px, white 5px, white 50px, transparent 55px);
-webkit-mask: linear-gradient(to bottom, transparent 0px, white 5px, white 50px, transparent 55px);
}
.card-scroll-content {
animation: cardDescriptionScroll 8s ease-in-out infinite;
padding: 5px 0;
line-height: 1.2;
}
.card-scroll-container:hover .card-scroll-content {
animation-play-state: paused;
}
/* 稀有度样式 */
.rarity-5 {
width: 150px;
height: 5px;
background: linear-gradient(135deg, #e882e8, #6fffff);
box-shadow:
0 0 15px rgba(110, 69, 226, 0.5),
0 0 30px rgba(136, 211, 206, 0.3);
overflow: hidden;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.rarity-4 {
width: 150px;
height: 5px;
background: linear-gradient(135deg, #e5a563, #f1cf97);
box-shadow:
0 0 15px rgba(110, 69, 226, 0.5),
0 0 30px rgba(136, 211, 206, 0.3);
overflow: hidden;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* 战斗员筛选系统样式 */
.filter-btn {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
transition: all 0.2s ease;
}
.filter-btn:active {
transform: scale(0.95) !important;
}
.character-card {
transition: all 0.3s ease;
}
.character-card:hover {
transform: scale(1.05);
box-shadow: 0 5px 15px rgba(0,0,0,0.3);
z-index: 10;
position: relative;
}
#character-search:focus {
border-color: #80bdff !important;
outline: none;
box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
#reset-filters {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
transition: all 0.2s ease;
}
#reset-filters:active {
transform: scale(0.95) !important;
}
/* 响应式布局 */
@media (max-width: 768px) {
.filter-group {
margin-bottom: 20px !important;
}
.filter-btn {
margin-bottom: 5px !important;
display: inline-block !important;
}
#character-search {
width: 150px !important;
margin-bottom: 10px;
}
#reset-filters {
display: block !important;
margin-left: 0 !important;
margin-top: 10px !important;
text-align: center;
}
}
/* 筛选组标题样式 */
.filter-group > span:first-child {
min-width: 60px;
display: inline-block;
}
/* 卡片容器优化 */
#character-container {
min-height: 300px;
padding: 10px;
}
/* 无结果提示(可选) */
#character-container:empty::after {
content: "没有找到符合条件的战斗员";
display: block;
text-align: center;
padding: 50px 20px;
color: #6c757d;
font-size: 16px;
}
/* 统计信息样式 */
#filter-stats {
font-size: 14px;
color: #495057;
}
#visible-count {
font-weight: bold;
color: #007bff;
}
#total-count {
font-weight: bold;
}
/* 当前筛选条件样式 */
#current-filters {
animation: slideDown 0.3s ease;
}
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
#filter-display {
color: #007bff;
font-weight: 500;
}