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:
parent
9db221780f
commit
9f8e778918
10 changed files with 474 additions and 21 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue