1
0
Fork 0
forked from forgejo/forgejo

Copy citation file content, in APA and BibTex format, on repo home page (#19999)

Add feature to easily copy CITATION.cff content in APA and BibTex format.
This commit is contained in:
Nolann 2022-11-11 18:02:50 +01:00 committed by GitHub
parent 9db221780f
commit 9f8e778918
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 474 additions and 21 deletions

View file

@ -227,7 +227,7 @@
border-right: none;
}
#download-btn {
#more-btn {
border-left: none;
}
@ -2468,6 +2468,56 @@
// End of .repository
#cite-repo-modal {
#citation-panel {
width: 500px;
@media @mediaSm {
width: 100%;
}
input {
border-radius: 0;
padding: 5px 10px;
width: 50%;
line-height: 1.4;
}
.citation.button {
font-size: 13px;
padding: 7.5px 5px;
}
#citation-copy-content {
border-radius: 0;
padding: 5px 10px;
font-size: 1.2em;
line-height: 1.4;
}
#citation-copy-apa,
#citation-copy-bibtex {
border-right: none;
}
#goto-citation-btn {
border-left: none;
}
>:first-child {
border-radius: var(--border-radius) 0 0 var(--border-radius) !important;
}
>:last-child {
border-radius: 0 var(--border-radius) var(--border-radius) 0 !important;
}
.icon.button {
padding: 0 10px;
}
}
}
&.user-cards {
.list {
padding: 0;