Common.css:修订间差异
来自卡厄思梦境WIKI
无编辑摘要 |
小无编辑摘要 |
||
| 第484行: | 第484行: | ||
} | } | ||
/* | /* 隐藏默认目录 */ | ||
.mw-parser-output .toc { | .mw-parser-output .toc { | ||
display: none !important; | display: none !important; | ||
| 第498行: | 第498行: | ||
border-left: none; | border-left: none; | ||
border-radius: 0 5px 5px 0; | border-radius: 0 5px 5px 0; | ||
padding: | padding: 8px 5px; | ||
z-index: 100; | z-index: 100; | ||
width: | width: 24px; | ||
transition: width 0.3s; | transition: width 0.3s; | ||
overflow: hidden; | overflow: hidden; | ||
| 第508行: | 第508行: | ||
#toc-sidebar.expanded { | #toc-sidebar.expanded { | ||
width: 250px; | width: 250px; | ||
padding: 10px; | |||
} | } | ||
| 第514行: | 第515行: | ||
font-weight: bold; | font-weight: bold; | ||
text-align: center; | text-align: center; | ||
writing-mode: vertical-rl; | |||
transform: rotate(180deg); | |||
height: auto; | |||
white-space: nowrap; | white-space: nowrap; | ||
} | |||
#toc-sidebar.expanded #toc-sidebar-trigger { | |||
writing-mode: horizontal-tb; | |||
transform: none; | |||
} | } | ||
2025年9月29日 (一) 09:10的版本
/* 这里放置的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;
}
/* 稀有度样式 */
.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-button {
display: inline-block;
padding: 5px 12px;
margin: 3px;
background-color: #f0f0f0;
border: 1px solid #ddd;
border-radius: 4px;
cursor: pointer;
transition: all 0.3s ease;
font-size: 14px;
user-select: none;
}
.filter-button:hover {
background-color: #e0e0e0;
border-color: #bbb;
transform: translateY(-1px);
}
.filter-button.active {
background-color: #4CAF50;
color: white;
border-color: #45a049;
}
.filter-button.active:hover {
background-color: #45a049;
}
/* 筛选容器 */
.filter-container {
padding: 10px;
background-color: #f9f9f9;
border-radius: 5px;
margin-bottom: 20px;
}
/* 显示数量统计 */
#filter-count {
text-align: right;
color: #666;
font-size: 14px;
padding: 5px 10px;
margin-bottom: 10px;
}
/* 战斗员卡片样式和动画 */
.战斗员卡片 {
display: inline-block;
margin: 5px;
vertical-align: top;
transition: all 0.3s ease;
cursor: pointer;
transform-origin: center center;
}
/* 鼠标悬停时的放大效果 */
.战斗员卡片:hover {
transform: scale(1.08);
z-index: 10;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
border-radius: 5px;
}
/* 为卡片容器添加相对定位,防止悬停时影响布局 */
.战斗员卡片-container {
display: inline-block;
position: relative;
}
/* 动画过渡优化 */
@keyframes cardHoverPulse {
0% {
transform: scale(1);
}
50% {
transform: scale(1.08);
}
100% {
transform: scale(1.08);
}
}
/* 卡牌系统样式 */
#card-overlay {
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
}
#card-display-container {
animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: scale(0.95);
}
to {
opacity: 1;
transform: scale(1);
}
}
.game-card {
transition: transform 0.2s ease;
}
.game-card:not(#card-overlay .game-card):hover {
transform: scale(1.05);
z-index: 10;
}
/* 修复卡牌描述布局 */
#card-overlay .game-card > div:last-child {
display: flex !important;
align-items: center !important;
justify-content: center !important;
}
/* 确保放大的卡牌元素正确显示 */
#card-overlay .game-card div[style*="position: absolute"] {
transform-origin: center center;
}
/* 滚动条美化 */
#card-overlay ::-webkit-scrollbar {
width: 8px;
height: 8px;
}
#card-overlay ::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.1);
border-radius: 4px;
}
#card-overlay ::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.3);
border-radius: 4px;
}
#card-overlay ::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.5);
}
/* 轮播图样式 */
.carousel-container {
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.carousel-slide img {
width: 100%;
height: 250px;
object-fit: cover;
}
/* 标题遮罩层样式 */
.carousel-titles-overlay {
pointer-events: auto;
}
.carousel-titles-wrapper {
display: flex;
align-items: center;
position: relative;
}
.carousel-titles-container {
max-width: calc(100% - 80px);
}
/* 标题项样式 */
.carousel-title-item {
transition: all 0.3s ease;
min-width: 0;
}
.carousel-title-item:hover .title-text {
opacity: 1 !important;
}
.carousel-title-item.active .title-text {
opacity: 1 !important;
font-weight: bold;
}
.carousel-title-item.active .title-indicator {
background: #ff6600 !important;
}
/* 左右切换按钮 */
.carousel-btn {
transition: all 0.3s;
user-select: none;
}
.carousel-btn:hover {
opacity: 1 !important;
transform: translateY(-50%) scale(1.1);
}
.carousel-btn img {
width: 100%;
height: 100%;
object-fit: contain;
}
/* 防止按钮图片被当作链接 */
.carousel-btn a.image {
pointer-events: none;
}
/* 响应式调整 */
@media (max-width: 768px) {
.carousel-titles-container {
gap: 8px !important;
}
.carousel-title-item {
max-width: 150px !important;
}
.title-text {
font-size: 12px !important;
padding: 5px 6px !important;
}
.carousel-btn {
width: 25px !important;
height: 25px !important;
}
.carousel-titles-wrapper {
padding: 0 40px !important;
}
.carousel-btn.carousel-prev {
left: 5px !important;
}
.carousel-btn.carousel-next {
right: 5px !important;
}
}
@media (max-width: 480px) {
.carousel-title-item {
max-width: 100px !important;
}
.title-text {
font-size: 11px !important;
padding: 4px 5px !important;
}
.carousel-btn {
width: 20px !important;
height: 20px !important;
}
}
/* 隐藏默认目录 */
.mw-parser-output .toc {
display: none !important;
}
/* 左侧目录样式 */
#toc-sidebar {
position: fixed;
left: 0;
top: 30%;
background-color: #f8f9fa;
border: 1px solid #a2a9b1;
border-left: none;
border-radius: 0 5px 5px 0;
padding: 8px 5px;
z-index: 100;
width: 24px;
transition: width 0.3s;
overflow: hidden;
box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}
#toc-sidebar.expanded {
width: 250px;
padding: 10px;
}
#toc-sidebar-trigger {
cursor: pointer;
font-weight: bold;
text-align: center;
writing-mode: vertical-rl;
transform: rotate(180deg);
height: auto;
white-space: nowrap;
}
#toc-sidebar.expanded #toc-sidebar-trigger {
writing-mode: horizontal-tb;
transform: none;
}
#toc-sidebar-content {
display: none;
padding-top: 10px;
width: 230px;
max-height: 60vh;
overflow-y: auto;
}
#toc-sidebar.expanded #toc-sidebar-content {
display: block;
}
/* 隐藏目录中的小圆点 */
#toc-sidebar-content ul {
list-style-type: none;
padding-left: 15px;
margin: 0;
}
#toc-sidebar-content li {
margin: 3px 0;
}