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

来自NeuroWiki
跳转到导航 跳转到搜索
无编辑摘要
标签已被回退
无编辑摘要
标签已被回退
第1行: 第1行:
.mcBoto {
/* 标签容器 */
  background-color: #d0b0ff; /* 4 */
.tabs-container {
  border: 0.15em solid #000000;
    font-family: Arial, sans-serif;
  border-color: #f0d0ff #b090e0 #9070c0 #f0d0ff; /* 5 3 3 5 */
    margin: 20px;
  cursor: pointer;
  display: inline;
  margin-right: 0.1em;
  padding: 0.2em 0.3em;
  position: relative;
}
}


.mcBoto a,
/* 隐藏单选按钮 */
.mcBoto strong {
.tabs-container input[type="radio"] {
  background: none !important;
    display: none;
  color: #7050a0 !important; /* 1 */
  font-size: 90%;
  font-weight: bold;
  padding: 0 !important;
  text-decoration: none !important;
}
}


.mcBoto a:hover,
/* 标签按钮样式 */
.mcBoto strong:hover {
.tabs-buttons {
  color: black !important;
    display: flex;
  text-decoration: underline !important;
    border-bottom: 2px solid #ccc;
}
}


.mcBotoSel {
.tabs-buttons label {
  background-color: #9070c0; /* 2 */
    background-color: #f8f8ff;
  border: 0.15em solid #000000;
    padding: 10px 20px;
  border-color: #b090e0 #7050a0 #9070c0 #b090e0; /* 3 1 2 3 */
    cursor: pointer;
  cursor: default;
    font-size: 16px;
  display: inline;
    color: #333;
  margin-right: 0.1em;
    transition: color 0.3s, border-color 0.3s;
  padding: 0.2em 0.3em;
    border-bottom: 2px solid transparent;
  position: relative;
  color: white;
}
}


.mcBotoSel a {
.tabs-buttons label:hover {
  background: none !important;
    color: #000;
  color: white !important;
  cursor: default;
  font-size: 90%;
  font-weight: bold;
  padding: 0 !important;
  text-decoration: none !important;
}
}


.mcContingut {
/* 选中的按钮高亮 */
  background-color: #f8f8ff;
.tabs-container input[type="radio"]:checked + label {
  border: 0.2em solid #9070c0; /* 2 */
    color: #000;
  border-color: #9070c0 #7050a0 #7050a0 #9070c0; /* 2 1 1 2 */
    border-bottom: 2px solid #0078d7; /* 蓝色高亮 */
  padding: 1em;
  position: static;
}
}


.mcPestanya {
/* 标签内容样式 */
  background-color: #f8f8ff;
.tabs-content {
  border-color: #7050a0 #b090e0 #b090e0 #7050a0; /* 1 3 3 1 */
    margin-top: 20px;
  width: 100%;
}
}


/* Add color classes for Verd, Vermell, Blau, Groc, and Taronja */
.tab-panel {
.mcVerd .mcBoto {
    display: none;
  background-color: #a5e085;
    padding: 20px;
  border-color: #c0f090 #90d060 #75c045 #c0f090;
    background-color: #f8f8ff;
    border: 1px solid #ccc;
    border-top: none;
}
}
.mcVermell .mcBoto {
 
  background-color: #ffaaaa;
/* 显示选中的内容 */
  border-color: #ffcccc #ff8888 #ff0000 #ffcccc;
.tabs-container input[type="radio"]:checked ~ .tabs-content .tab-panel {
}
    display: block;
.mcBlau .mcBoto {
  background-color: #a7c1e6;
  border-color: #c8d6e9 #88abde #5b8dd6 #c8d6e9;
}
.mcGroc .mcBoto {
  background-color: #fff1a4;
  border-color: #fef4bc #ffe977 #ffe147 #fef4bc;
}
.mcTaronja .mcBoto {
  background-color: #ffbd7f;
  border-color: #ffd0a4 #ffac5d #ff9d42 #ffd0a4;
}
}

2025年3月1日 (六) 19:33的版本

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

/* 隐藏单选按钮 */
.tabs-container input[type="radio"] {
    display: none;
}

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

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

.tabs-buttons label:hover {
    color: #000;
}

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

/* 标签内容样式 */
.tabs-content {
    margin-top: 20px;
}

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

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