跳转到内容

Template:方剂条目/styles.css

勤求古训,博采众方
/* 左侧灰色竖条(伪元素,固定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;
}