Add activity plugin (#41)

This commit is contained in:
Simon Lecoq
2021-01-09 18:57:13 +01:00
committed by GitHub
parent 879502c99a
commit 7df6c922dc
15 changed files with 886 additions and 112 deletions

View File

@@ -311,6 +311,7 @@
.tweet .mention, .tweet .link, .tweet .hashtag {
color: #0366d6;
margin: 0 4px;
}
.tweet .date {
@@ -428,6 +429,79 @@
margin-right: 4px;
}
/* Activity */
.activity {
margin-bottom: 12px;
}
.activity .field {
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
max-width: 450px;
white-space: nowrap;
margin-bottom: 0;
}
.activity .repo, .activity .issue, .activity .commit .sha {
color: #58a6ff;
margin: 0 4px;
}
.activity .code {
background-color: #F3F4F4;
padding: 1px 5px;
font-size: 80%;
border-radius: 6px;
color: #24294E;
font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;
margin: 0 4px -3px;
}
.activity .bold {
font-weight: 600;
margin: 0 4px;
}
.activity .details {
padding-left: 42px;
display: flex;
flex-direction: column;
font-size: 13px;
color: #666666;
}
.activity .details > div {
display: flex;
align-items: center;
}
.activity .commit .sha {
font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;
}
.activity .commit .message {
overflow: hidden;
text-overflow: ellipsis;
width: 360px;
white-space: nowrap;
}
.activity .details .comment {
overflow: hidden;
text-overflow: ellipsis;
display: block;
width: 420px;
margin-top: 6px;
border-left: 3px solid #777777B2;
padding-left: 6px;
max-height: 38px;
/* May not work in all browsers */
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
/* Fade animation */
.af {
opacity: 0;