Skip to content

Commit

Permalink
fix(styles): space of flush (#70)
Browse files Browse the repository at this point in the history
* fix(styles): space of flush

* Fix width of label

* 两端对齐,修复url超出框架
  • Loading branch information
northword committed Jun 20, 2024
1 parent 4cfe31e commit 0188449
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .vitepress/theme/styles/csl-styles.css
Original file line number Diff line number Diff line change
@@ -1,19 +1,34 @@
.csl-bib-body {
word-break: break-word;
text-align: justify;
}

/* second-field-align 首行缩进适配 */
/* https://github.com/zotero-chinese/website/issues/48 */
.csl-bib-body.second-field-align-flush .csl-entry {
display: flex;
align-items: flex-start;
}

.csl-bib-body.second-field-align-flush .csl-entry .csl-left-margin {
float: left;
margin-right: 0.5em;
.csl-bib-body.second-field-align-flush .csl-left-margin {
width: 2em;
flex-shrink: 0; /* 确保左边距不会缩小 */
}

.csl-bib-body.second-field-align-flush.maxoffset-4 .csl-entry .csl-left-margin {
.csl-bib-body.second-field-align-flush.maxoffset-3 .csl-left-margin {
width: 2.5em;
}

.csl-bib-body.second-field-align-flush.maxoffset-4 .csl-left-margin {
width: 3em;
}

.csl-bib-body.second-field-align-flush.maxoffset-5 .csl-left-margin {
width: 3.5em;
}

/* hangingindent 悬挂缩进适配 */
.csl-bib-body.hangingindent-true .csl-entry {
text-indent: -2em;
padding-left: 2em;
text-indent: -2em;
}

0 comments on commit 0188449

Please sign in to comment.