MediaWiki

MediaWiki:Common.css

来自卡厄思梦境WIKI

律Rhyme留言 | 贡献2025年9月21日 (日) 18:33的版本

注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
/* 这里放置的CSS将应用于所有皮肤 */

/* 隐藏通知图标 */
#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: 8px;
}

.resp-tabs-list::after {
    content: "";
    display: table;
    clear: both;
}

.czn-list-style {
    margin: 0;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.czn-list-style:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.czn-list-style.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.czn-list-style.active:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,123,255,0.4);
}

.tab-panel {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    border-radius: 6px;
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
}

.czn-list-style.active .tab-panel {
    color: white;
}

.resp-tabs-container {
    padding: 20px 0;
    background: transparent;
    margin-top: 15px;
}

.resp-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.resp-tab-content[style*="display:block"],
.resp-tab-content[style*="display: block"] {
    display: block !important;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .resp-tabs-list {
        flex-direction: column;
        gap: 6px;
    }
    
    .czn-list-style {
        width: 100%;
    }
    
    .tab-panel {
        padding: 10px 15px;
        min-width: auto;
    }
    
    .resp-tabs-container {
        padding: 15px 0;
        margin-top: 10px;
    }
    
    .resp-tab-content {
        padding: 15px;
    }
}

/* 额外的按钮样式变体 */
.czn-list-style.style-rounded {
    border-radius: 25px;
}

.czn-list-style.style-square {
    border-radius: 2px;
}

.czn-list-style.style-large .tab-panel {
    padding: 15px 25px;
    font-size: 16px;
}

.czn-list-style.style-small .tab-panel {
    padding: 8px 15px;
    font-size: 14px;
}

/* 不同颜色主题 */
.czn-list-style.theme-green.active {
    background-color: #28a745;
    border-color: #28a745;
    box-shadow: 0 4px 12px rgba(40,167,69,0.3);
}

.czn-list-style.theme-green.active:hover {
    background-color: #218838;
    border-color: #218838;
}

.czn-list-style.theme-red.active {
    background-color: #dc3545;
    border-color: #dc3545;
    box-shadow: 0 4px 12px rgba(220,53,69,0.3);
}

.czn-list-style.theme-red.active:hover {
    background-color: #c82333;
    border-color: #c82333;
}

.czn-list-style.theme-orange.active {
    background-color: #fd7e14;
    border-color: #fd7e14;
    box-shadow: 0 4px 12px rgba(253,126,20,0.3);
}

.czn-list-style.theme-orange.active:hover {
    background-color: #e8650e;
    border-color: #e8650e;
}

.czn-list-style.theme-purple.active {
    background-color: #6f42c1;
    border-color: #6f42c1;
    box-shadow: 0 4px 12px rgba(111,66,193,0.3);
}

.czn-list-style.theme-purple.active:hover {
    background-color: #5a32a3;
    border-color: #5a32a3;
}