This repository has been archived by the owner on Nov 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Numeric in-text citations): Split out into separate extension fo…
…r reuse
- Loading branch information
Showing
3 changed files
with
33 additions
and
31 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Cite-numeric extension | ||
|
||
CSS styles to support numeric in-text citations (e.g. Vancouver, IEEE citation styles). |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
:--CiteGroup { | ||
&::before { | ||
content: '['; | ||
} | ||
|
||
&::after { | ||
content: ']'; | ||
} | ||
|
||
:--Cite { | ||
&:not(:last-child)::after { | ||
content: ',\00a0'; | ||
order: 100; | ||
} | ||
} | ||
|
||
:--Cite > a > :first-child { | ||
display: inline; | ||
} | ||
|
||
:--Cite > a > :last-child { | ||
display: none; | ||
} | ||
|
||
/* Ensure that at least one citation format is visible */ | ||
:--Cite > a > :only-child { | ||
display: inline; | ||
} | ||
} |
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