-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix(styles): space of flush * Fix width of label * 两端对齐,修复url超出框架
- Loading branch information
Showing
1 changed file
with
20 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |