MediaWiki

Common.css:修订间差异

来自卡厄思梦境WIKI

律Rhyme留言 | 贡献
无编辑摘要
律Rhyme留言 | 贡献
无编辑摘要
第135行: 第135行:
#card-overlay ::-webkit-scrollbar-thumb:hover {
#card-overlay ::-webkit-scrollbar-thumb:hover {
     background: rgba(255, 255, 255, 0.5);
     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;
    }
}
}


第259行: 第142行:
}
}


/* 左侧目录样式 */
/* 悬浮目录样式 */
#toc-sidebar {
#toc-sidebar {
     position: fixed;
     position: fixed;

2025年10月9日 (四) 11:32的版本

/* 这里放置的CSS将应用于所有皮肤 */
/* 标签切换样式 */
@import url("/index.php?title=Template:Resptabs/styles.css&action=raw&ctype=text/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;
}

/* 黑幕 */
.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;
}

.rarity-3 {
    width: 150px;
    height: 5px;
    background: linear-gradient(135deg, #3b4785, #c3e7f9);
    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;
}

/* 卡牌系统样式 */
#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-list .game-card:hover,
.game-grid .game-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

#card-overlay .game-card {
    transform: none !important;
}

/* 修复卡牌描述布局 */
#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);
}

/* 永久隐藏默认目录 */
.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: 5px 2px;
    z-index: 100;
    width: 36px;
    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-lr; /* 修改为vertical-lr */
    height: auto;
    white-space: nowrap;
}

#toc-sidebar.expanded #toc-sidebar-trigger {
    writing-mode: horizontal-tb;
}

#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;
}

/* 卡牌悬停模板样式 */
.card-hover-container {
  position: relative;
  display: inline;
}

.card-name {
  color: #4a90e2;
  border-bottom: 1px dotted #4a90e2;
  cursor: pointer;
  white-space: nowrap;
}

.card-popup-container {
  display: none;
  position: absolute;
  z-index: 1000;
  left: 0;
  top: 100%;
  margin-top: 5px;
  background: none;
}

.card-hover-container:hover .card-popup-container {
  display: block;
}

.card-popup {
  display: block;
  background: none;
  padding: 0;
  box-shadow: none;
}

/* 确保游戏卡牌正确显示 */
.card-popup .game-card {
  margin: 0 !important;
}


/* 全局 tooltip 容器 */
.dictionary-tooltip-container {
    position: absolute;
    width: 250px;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dictionary-tooltip-container.active {
    opacity: 1;
}

/* 卡牌描述滚动容器 */
.card-description-scroll {
    position: absolute;
    bottom: 7px;
    left: 15px;
    width: 144px;
    height: 100px;
    overflow: hidden;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-description-scroll-inner {
    width: 100%;
}

.card-description-text {
    font-size: 12px;
    color: white;
    line-height: 13px;
    padding: 5px 0;
}

/* 滚动动画关键帧 */
@keyframes cardScrollUp {
    0%, 10% { 
        transform: translateY(0);
    }
    90%, 100% { 
        transform: translateY(calc(-100% + 100px));
    }
}

/* 需要滚动时:取消居中,从顶部开始 */
.game-card.card-description-scrollable .card-description-scroll {
    align-items: flex-start;  /* 顶部对齐 */
}

/* 应用滚动动画 */
.game-card.card-description-scrollable .card-description-scroll-inner {
    animation: cardScrollUp 8s ease-in-out infinite;
}

/* 悬停暂停 */
.game-card.card-description-scrollable:hover .card-description-scroll-inner {
    animation-play-state: paused;
}


/* 编辑器工具栏样式 */
.editor-toolbar {
    margin-bottom: 5px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.toolbar-button {
    display: inline-block;
    padding: 4px 10px;
    background: #0645ad;
    color: white;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
    user-select: none;
}

.toolbar-button:hover {
    background: #0b0080;
}

.toolbar-button:active {
    background: #002bb8;
    transform: scale(0.98);
}

.avatar-frame {
    position: relative;
    display: inline-block;
    vertical-align: top;
    border: 3px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
    background: #f5f5f5;
}

.avatar-frame img {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.avatar-name {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 2px 8px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 0 0 2px black, 0 0 2px black;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    border-top-right-radius: 3px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
}

.btn-default {
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}

/* 筛选按钮被选中 */
li.btn.cardSelectOption.selected {
    color: #333!important;
    background-color: #e6e6e6!important;
    border-color: #adadad!important;
	outline: 0;
    -webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,.125);
    box-shadow: inset 0 3px 5px rgba(0,0,0,.125);
}
@media only screen and (max-width: 600px) {
	li.btn.cardSelectOption {
		padding: 4px 8px;
		font-size: 12px;
	}
	li.btn.cardSelectOption:hover {
		color: #333;
		background-color: #fff;
		border-color: #adadad;
	}
}