The editors' meeting has been canceled for technical reasons.

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

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


/* 默认显示第一个标签内容 */
/* 标签按钮样式 */
.mcContingut > .mcPestanya:first-child {
.tabs-buttons {
  display: block;
    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 {
.mcContingut[data-active="1"] > .mcPestanya:nth-child(1),
    background-color: #e0e0ff;
.mcContingut[data-active="2"] > .mcPestanya:nth-child(2),
    color: #000;
.mcContingut[data-active="3"] > .mcPestanya:nth-child(3),
.mcContingut[data-active="4"] > .mcPestanya:nth-child(4),
.mcContingut[data-active="5"] > .mcPestanya:nth-child(5),
.mcContingut[data-active="6"] > .mcPestanya:nth-child(6),
.mcContingut[data-active="7"] > .mcPestanya:nth-child(7),
.mcContingut[data-active="8"] > .mcPestanya:nth-child(8),
.mcContingut[data-active="9"] > .mcPestanya:nth-child(9),
.mcContingut[data-active="10"] > .mcPestanya:nth-child(10) {
  display: block;
}
}


/* 标签按钮样式 */
/* 选中的标签按钮高亮 */
.mcBoto {
.tab-button.active {
  cursor: default;
    background-color: #0078d7;
  padding: 10px;
    color: white;
  margin: 5px;
    border-bottom: 2px solid #0078d7;
  border: 1px solid #ccc;
}
  background-color: #f9f9f9;
 
  text-align: center;
/* 标签内容样式 */
  display: inline-block;
.tabs-contents {
    border: 1px solid #ccc;
    background-color: #f8f8ff;
    padding: 20px;
}
}


/* 选中标签的样式 */
.tab-content {
.skin-invert > .mcBoto:first-child {
    display: none;
  font-weight: bold;
  background-color: #9070c0;
  color: white;
}
}
.skin-invert[data-active="2"] > .mcBoto:nth-child(2),
 
.skin-invert[data-active="3"] > .mcBoto:nth-child(3),
.tab-content.active {
.skin-invert[data-active="4"] > .mcBoto:nth-child(4),
    display: block;
.skin-invert[data-active="5"] > .mcBoto:nth-child(5),
.skin-invert[data-active="6"] > .mcBoto:nth-child(6),
.skin-invert[data-active="7"] > .mcBoto:nth-child(7),
.skin-invert[data-active="8"] > .mcBoto:nth-child(8),
.skin-invert[data-active="9"] > .mcBoto:nth-child(9),
.skin-invert[data-active="10"] > .mcBoto:nth-child(10) {
  font-weight: bold;
  background-color: #9070c0;
  color: white;
  border-bottom: none;
}
}

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