Template:方剂条目/styles.css:修订间差异
外观
删除的内容 添加的内容
标签:撤销 |
小无编辑摘要 |
||
| 第1行: | 第1行: | ||
/* 左侧灰色竖条(伪元素,固定1行高,不随内容区拉伸) */ |
|||
.fangji-entry .fj-label { |
.fangji-entry .fj-label { |
||
padding: 0 5px; |
padding: 0 5px 0 7px; |
||
position: relative; /* 为 ::before 定位 */ |
|||
border-left: 2px solid #696969; |
|||
white-space: nowrap; |
white-space: nowrap; |
||
vertical-align: top; |
vertical-align: top; |
||
} |
} |
||
.fangji-entry .fj-label::before { |
|||
content: ""; |
|||
position: absolute; |
|||
left: 0; |
|||
top: 0; |
|||
height: 1em; /* 固定一行字高 */ |
|||
width: 2px; |
|||
background: #696969; |
|||
} |
|||
/* 标签底色(浅灰) */ |
|||
.fangji-entry .fj-label span { |
.fangji-entry .fj-label span { |
||
background-color: #ddd; |
background-color: #ddd; |
||
} |
} |
||
/* 内容区(左侧留 5px 间距) */ |
|||
.fangji-entry .fj-value { |
.fangji-entry .fj-value { |
||
padding: 0 0 0 5px; |
padding: 0 0 0 5px; |
||
} |
} |
||
/* 表格无外边框,行间距 5px */ |
|||
.fangji-entry .fj-table { |
.fangji-entry .fj-table { |
||
border: none; |
border: none; |
||
2026年7月8日 (三) 21:07的版本
/* 左侧灰色竖条(伪元素,固定1行高,不随内容区拉伸) */
.fangji-entry .fj-label {
padding: 0 5px 0 7px;
position: relative; /* 为 ::before 定位 */
white-space: nowrap;
vertical-align: top;
}
.fangji-entry .fj-label::before {
content: "";
position: absolute;
left: 0;
top: 0;
height: 1em; /* 固定一行字高 */
width: 2px;
background: #696969;
}
/* 标签底色(浅灰) */
.fangji-entry .fj-label span {
background-color: #ddd;
}
/* 内容区(左侧留 5px 间距) */
.fangji-entry .fj-value {
padding: 0 0 0 5px;
}
/* 表格无外边框,行间距 5px */
.fangji-entry .fj-table {
border: none;
border-spacing: 0 5px;
}