跳转到内容

Template:方剂条目/styles.css:修订间差异

勤求古训,博采众方
删除的内容 添加的内容
无编辑摘要
无编辑摘要
第1行: 第1行:
/* 左侧灰色竖条(伪元素,固定1行高,不随内容区拉伸) */
/* 标签列(灰色底色 + 左侧竖条) */
.fangji-entry .fj-label {
.fangji-entry .fj-label {
padding: 0 5px 0 7px;
padding: 0 5px;
vertical-align: top;
position: relative; /* 为 ::before 定位 */
white-space: nowrap;
white-space: nowrap;
vertical-align: top;
}
.fangji-entry .fj-label::before {
content: "";
position: absolute;
left: 0;
top: 0;
height: 1em; /* 固定一行字高 */
width: 2px;
background: #696969;
}
}


/* 竖条画在 span 上(不拉伸,只跟文字等高) */
/* 标签底色(浅灰) */
.fangji-entry .fj-label span {
.fangji-entry .fj-label span {
background-color: #ddd;
display: inline;
padding: 0 5px;
border-left: 2px solid #696969; /* 灰色竖条 */
background-color: #ddd; /* 灰色底色 */
}
}



2026年7月8日 (三) 21:17的版本

/* 标签列(灰色底色 + 左侧竖条) */
.fangji-entry .fj-label {
    padding: 0 5px;
    vertical-align: top;
    white-space: nowrap;
}

/* 竖条画在 span 上(不拉伸,只跟文字等高) */
.fangji-entry .fj-label span {
    display: inline;
    padding: 0 5px;
    border-left: 2px solid #696969;   /* 灰色竖条 */
    background-color: #ddd;            /* 灰色底色 */
}

/* 内容区(左侧留 5px 间距) */
.fangji-entry .fj-value {
    padding: 0 0 0 5px;
}

/* 表格无外边框,行间距 5px */
.fangji-entry .fj-table {
    border: none;
    border-spacing: 0 5px;
}