Template:方剂条目/styles.css:修订间差异
外观
删除的内容 添加的内容
小 // Edit via Wikiplus |
小 // Edit via Wikiplus |
||
| (未显示同一用户的4个中间版本) | |||
| 第43行: | 第43行: | ||
} |
} |
||
.fangji-entry .fj-label span { |
.fangji-entry .fj-label span { |
||
position: relative; |
|||
display: inline-block; |
display: inline-block; |
||
width: 4.5em; |
width: 4.5em; |
||
| 第51行: | 第52行: | ||
padding: 0 6px; |
padding: 0 6px; |
||
text-align: center; |
text-align: center; |
||
box-shadow: inset 3px 0 0 #397c57; |
|||
background-color: #f1f4f2; |
background-color: #f1f4f2; |
||
border-radius: 0 4px 4px 0; |
border-radius: 0 4px 4px 0; |
||
| 第57行: | 第57行: | ||
font-weight: 500; |
font-weight: 500; |
||
font-size: 0.95em; |
font-size: 0.95em; |
||
} |
|||
.fangji-entry .fj-label span::before { |
|||
content: ''; |
|||
position: absolute; |
|||
top: 0; |
|||
left: 0; |
|||
bottom: 0; |
|||
width: 3px; |
|||
background: #397c57; |
|||
border-radius: 0; |
|||
} |
} |
||
.fangji-entry .fj-warning span { |
.fangji-entry .fj-warning span { |
||
box-shadow: inset 3px 0 0 #c44536; |
|||
background-color: #fcf0ef; |
background-color: #fcf0ef; |
||
} |
|||
.fangji-entry .fj-warning span::before { |
|||
background: #c44536; |
|||
} |
} |
||
.fangji-entry .fj-value { |
.fangji-entry .fj-value { |
||
| 第126行: | 第138行: | ||
} |
} |
||
.fangji-entry .fj-label span { |
.fangji-entry .fj-label span { |
||
position: relative; |
|||
display: inline-block; |
display: inline-block; |
||
width: 4.5em; |
width: 4.5em; |
||
| 第134行: | 第147行: | ||
padding: 0 6px; |
padding: 0 6px; |
||
text-align: center; |
text-align: center; |
||
box-shadow: inset 3px 0 0 #36c; |
|||
background-color: #f0f4f8; |
background-color: #f0f4f8; |
||
border-radius: 0 4px 4px 0; |
border-radius: 0 4px 4px 0; |
||
| 第140行: | 第152行: | ||
font-weight: 500; |
font-weight: 500; |
||
font-size: 0.95em; |
font-size: 0.95em; |
||
} |
|||
.fangji-entry .fj-label span::before { |
|||
content: ''; |
|||
position: absolute; |
|||
top: 0; |
|||
left: 0; |
|||
bottom: 0; |
|||
width: 3px; |
|||
background: #36c; |
|||
border-radius: 0; |
|||
} |
} |
||
.fangji-entry .fj-warning span { |
.fangji-entry .fj-warning span { |
||
box-shadow: inset 3px 0 0 #c44536; |
|||
background-color: #fcf0ef; |
background-color: #fcf0ef; |
||
} |
|||
.fangji-entry .fj-warning span::before { |
|||
background: #c44536; |
|||
} |
} |
||
.fangji-entry .fj-value { |
.fangji-entry .fj-value { |
||
2026年7月9日 (四) 22:18的最新版本
/* ===== 使用切换说明 =====
1. 默认启用【主题A:中医绿标准版】
2. 切换冷调学术蓝灰:注释A全部,取消主题B外层注释
3. 两套共用布局、交互、移动端代码,仅配色区分
=========================*/
/* =============================================
主题A:中医绿标准版(默认生效)
============================================= */
.fangji-card {
background: #ffffff;
border-radius: 14px;
box-shadow: 0 2px 12px rgba(0,0,0,0.06);
padding: 12px 24px;
margin: 12px 0 16px;
border: 1px solid #eee;
transition: 0.2s ease;
}
.fangji-card:hover {
box-shadow: 0 4px 18px rgba(0,0,0,0.09);
transform: translateY(-2px);
}
.fangji-entry h2 {
margin-top: 0;
margin-bottom: 8px;
padding-bottom: 10px;
border-bottom: 1px solid #e8e8e8;
color: #222;
font-weight: 600;
}
.fangji-entry .fj-table {
border: none;
border-spacing: 10px 6px;
width: 100%;
table-layout: fixed;
}
.fangji-entry .fj-label {
width: 4.5em;
padding: 0;
vertical-align: top;
white-space: nowrap;
}
.fangji-entry .fj-label span {
position: relative;
display: inline-block;
width: 4.5em;
min-width: 4.5em;
max-width: 4.5em;
box-sizing: border-box;
line-height: 2.0;
padding: 0 6px;
text-align: center;
background-color: #f1f4f2;
border-radius: 0 4px 4px 0;
color: #333;
font-weight: 500;
font-size: 0.95em;
}
.fangji-entry .fj-label span::before {
content: '';
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 3px;
background: #397c57;
border-radius: 0;
}
.fangji-entry .fj-warning span {
background-color: #fcf0ef;
}
.fangji-entry .fj-warning span::before {
background: #c44536;
}
.fangji-entry .fj-value {
padding: 2px 0;
line-height: 1.65;
color: #444;
}
.fj-important {
color: #245e42;
}
.fj-warning-text {
color: #c44536;
}
.fangji-entry .fj-meta {
margin-top: 12px;
padding-top: 10px;
border-top: 1px dashed #ddd;
font-size: 0.88em;
color: #888;
}
.fangji-entry .fj-meta a {
color: #397c57;
text-decoration: none;
}
.fangji-entry .fj-meta a:hover {
text-decoration: underline;
}
/* =============================================
主题B:冷调学术蓝灰
============================================= */
/*
.fangji-card {
background: #ffffff;
border-radius: 14px;
box-shadow: 0 2px 12px rgba(0,0,0,0.06);
padding: 12px 24px;
margin: 12px 0 16px;
border: 1px solid #e7ecf2;
transition: 0.2s ease;
}
.fangji-card:hover {
box-shadow: 0 4px 18px rgba(0,0,0,0.09);
transform: translateY(-2px);
}
.fangji-entry h2 {
margin-top: 0;
margin-bottom: 8px;
padding-bottom: 10px;
border-bottom: 1px solid #e0e5ea;
color: #1a2a3a;
font-weight: 600;
}
.fangji-entry .fj-table {
border: none;
border-spacing: 10px 6px;
width: 100%;
table-layout: fixed;
}
.fangji-entry .fj-label {
width: 4.5em;
padding: 0;
vertical-align: top;
white-space: nowrap;
}
.fangji-entry .fj-label span {
position: relative;
display: inline-block;
width: 4.5em;
min-width: 4.5em;
max-width: 4.5em;
box-sizing: border-box;
line-height: 2.0;
padding: 0 6px;
text-align: center;
background-color: #f0f4f8;
border-radius: 0 4px 4px 0;
color: #2d3748;
font-weight: 500;
font-size: 0.95em;
}
.fangji-entry .fj-label span::before {
content: '';
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 3px;
background: #36c;
border-radius: 0;
}
.fangji-entry .fj-warning span {
background-color: #fcf0ef;
}
.fangji-entry .fj-warning span::before {
background: #c44536;
}
.fangji-entry .fj-value {
padding: 2px 0;
line-height: 1.65;
color: #3a3f47;
}
.fj-important {
color: #285480;
}
.fj-warning-text {
color: #c44536;
}
.fangji-entry .fj-meta {
margin-top: 12px;
padding-top: 10px;
border-top: 1px dashed #d0d7de;
font-size: 0.88em;
color: #8a8f96;
}
.fangji-entry .fj-meta a {
color: #366699;
text-decoration: none;
}
.fangji-entry .fj-meta a:hover {
text-decoration: underline;
}
*/
/* =============================================
共用:方名标题区
============================================= */
.fangji-entry h2 .fj-source {
font-size: 0.75em;
font-weight: 400;
color: #888;
margin-left: 8px;
}
/* =============================================
共用:消除卡片之间的空行
============================================= */
.fangji-card + p,
.fangji-entry + p {
margin: 0;
padding: 0;
height: 0;
}
/* =============================================
共用:响应式 / 移动端
============================================= */
@media (max-width: 640px) {
.fangji-card {
padding: 10px 16px;
margin: 10px 0 14px;
}
.fangji-entry .fj-table {
border-spacing: 6px 4px;
}
.fangji-entry .fj-label {
width: 4.2em;
}
.fangji-entry .fj-label span {
width: 4.2em;
min-width: 4.2em;
max-width: 4.2em;
padding: 0 4px;
font-size: 0.85em;
line-height: 1.8;
}
.fangji-entry .fj-value {
font-size: 0.92em;
}
.fangji-entry h2 {
font-size: 1.15em;
}
}