mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-04 09:24:36 -04:00
Move tributejs to npm/webpack (#11497)
* Move tributejs to npm/webpack - Move vendored bundle to npm and webpack - Rewrote initialization to single function - Restyled it (made it a bit smaller) - Fixed it for arc-green * fix mention * also include emoji on #content * Update web_src/less/_tribute.less Co-authored-by: mrsdizzie <info@mrsdizzie.com> * rewrite to only use one instance of Tribute * refactor * fix copy/paste error Co-authored-by: mrsdizzie <info@mrsdizzie.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
parent
3eb323901c
commit
b02d2c3772
12 changed files with 126 additions and 123 deletions
|
@ -1,34 +1,29 @@
|
|||
@import "~tributejs/dist/tribute.css";
|
||||
|
||||
.tribute-container {
|
||||
box-shadow: 0 1px 3px 1px #c7c7c7;
|
||||
box-shadow: 0 .25rem .5rem rgba(0, 0, 0, .25);
|
||||
border-radius: .25rem;
|
||||
}
|
||||
|
||||
ul {
|
||||
background: #ffffff;
|
||||
}
|
||||
.tribute-container ul {
|
||||
margin-top: 0 !important;
|
||||
background: #ffffff !important;
|
||||
}
|
||||
|
||||
li {
|
||||
padding: 8px 12px;
|
||||
border-bottom: 1px solid #dcdcdc;
|
||||
.tribute-container li {
|
||||
padding: 3px .5rem !important;
|
||||
}
|
||||
|
||||
img {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
.tribute-container li span.fullname {
|
||||
font-weight: normal;
|
||||
font-size: .8rem;
|
||||
margin-left: 3px;
|
||||
}
|
||||
|
||||
span.fullname {
|
||||
font-weight: normal;
|
||||
font-size: .8rem;
|
||||
margin-left: 3px;
|
||||
}
|
||||
}
|
||||
|
||||
li.highlight,
|
||||
li:hover {
|
||||
background: #2185d0;
|
||||
color: #ffffff;
|
||||
}
|
||||
.tribute-container li.highlight,
|
||||
.tribute-container li:hover {
|
||||
background: #2185d0 !important;
|
||||
color: #ffffff !important;
|
||||
}
|
||||
|
||||
.tribute-item {
|
||||
|
@ -36,6 +31,12 @@
|
|||
align-items: center;
|
||||
}
|
||||
|
||||
.tribute-item .emoji {
|
||||
.tribute-item .emoji,
|
||||
.tribute-item img[src*="/avatar/"] {
|
||||
margin-right: .5rem;
|
||||
}
|
||||
|
||||
.tribute-container img {
|
||||
width: 1.5rem !important;
|
||||
height: 1.5rem !important;
|
||||
}
|
||||
|
|
|
@ -1625,3 +1625,16 @@ footer .container .links > * {
|
|||
.repository.release #release-list > li .detail .dot {
|
||||
background-color: #888;
|
||||
}
|
||||
|
||||
.tribute-container {
|
||||
box-shadow: 0 .25rem .5rem rgba(0, 0, 0, .6);
|
||||
}
|
||||
|
||||
.tribute-container ul {
|
||||
background: #2d303b !important;
|
||||
}
|
||||
|
||||
.tribute-container li.highlight,
|
||||
.tribute-container li:hover {
|
||||
background: #728e5e !important;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue