Template:Tabs/styles.css:修订间差异

来自NeuroWiki
跳转到导航 跳转到搜索
无编辑摘要
标签已被回退
无编辑摘要
标签手工回退
 
(未显示同一用户的6个中间版本)
第1行: 第1行:
/* 标签容器 */
/* 标签容器整体样式 */
.tabs-container {
.tabs-container {
     font-family: Arial, sans-serif;
     font-family: Arial, sans-serif;
     margin: 20px;
     margin: 20px;
}
/* 隐藏单选按钮 */
.tabs-container input[type="radio"] {
    display: none;
}
}


第16行: 第11行:
}
}


.tabs-buttons label {
.tab-button {
    background-color: #f8f8ff;
     padding: 10px 20px;
     padding: 10px 20px;
     cursor: pointer;
     cursor: pointer;
     font-size: 16px;
     font-size: 16px;
     color: #333;
     color: #333;
     transition: color 0.3s, border-color 0.3s;
    background-color: #f8f8ff;
    border-bottom: 2px solid transparent;
    border: 1px solid #ccc;
    border-bottom: none;
     transition: background-color 0.3s, color 0.3s;
}
}


.tabs-buttons label:hover {
.tab-button:hover {
    background-color: #e0e0ff;
     color: #000;
     color: #000;
}
}


/* 选中的按钮高亮 */
/* 选中的标签按钮高亮 */
.tabs-container input[type="radio"]:checked + label {
.tab-button.active {
     color: #000;
     background-color: #0078d7;
     border-bottom: 2px solid #0078d7; /* 蓝色高亮 */
    color: white;
     border-bottom: 2px solid #0078d7;
}
}


/* 标签内容样式 */
/* 标签内容样式 */
.tabs-content {
.tabs-contents {
     margin-top: 20px;
     border: 1px solid #ccc;
    background-color: #f8f8ff;
    padding: 20px;
}
}


.tab-panel {
.tab-content {
     display: none;
     display: none;
    padding: 20px;
    background-color: #f8f8ff;
    border: 1px solid #ccc;
    border-top: none;
}
}


/* 显示选中的内容 */
.tab-content.active {
.tabs-container input[type="radio"]:checked ~ .tabs-content .tab-panel {
     display: block;
     display: block;
}
}

2025年3月1日 (六) 20:26的最新版本

/* 标签容器整体样式 */
.tabs-container {
    font-family: Arial, sans-serif;
    margin: 20px;
}

/* 标签按钮样式 */
.tabs-buttons {
    display: flex;
    border-bottom: 2px solid #ccc;
}

.tab-button {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    background-color: #f8f8ff;
    border: 1px solid #ccc;
    border-bottom: none;
    transition: background-color 0.3s, color 0.3s;
}

.tab-button:hover {
    background-color: #e0e0ff;
    color: #000;
}

/* 选中的标签按钮高亮 */
.tab-button.active {
    background-color: #0078d7;
    color: white;
    border-bottom: 2px solid #0078d7;
}

/* 标签内容样式 */
.tabs-contents {
    border: 1px solid #ccc;
    background-color: #f8f8ff;
    padding: 20px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}