mirror of
https://github.com/documize/community.git
synced 2025-08-09 07:25:23 +02:00
GitHub Issues CSS changes
This commit is contained in:
parent
f5c1f9ecbf
commit
5df35dac11
3 changed files with 27 additions and 14 deletions
|
@ -28,6 +28,19 @@
|
|||
}
|
||||
}
|
||||
|
||||
span.github-issue-label {
|
||||
font-size: 11px;
|
||||
color: white;
|
||||
padding: 2px 4px;
|
||||
border-radius: 2px;
|
||||
box-shadow: inset 0 -1px 0 rgba(0,0,0,0.12);
|
||||
}
|
||||
|
||||
span.label-name {
|
||||
font-size: 16px;
|
||||
font-family: "open_sanssemibold";
|
||||
}
|
||||
|
||||
.section-github-render {
|
||||
.github-board {
|
||||
width: 100%;
|
||||
|
|
|
@ -421,7 +421,7 @@ func (*Provider) getIssues(client *gogithub.Client, config githubConfig) ([]gith
|
|||
}
|
||||
l := ""
|
||||
for _, ll := range v.Labels {
|
||||
l += `<span style="background-color:#` + *ll.Color + `">` + *ll.Name + `</span> `
|
||||
l += `<span class="github-issue-label" style="background-color:#` + *ll.Color + `">` + *ll.Name + `</span> `
|
||||
}
|
||||
ret = append(ret, githubIssue{
|
||||
Name: n,
|
||||
|
|
|
@ -86,12 +86,12 @@ var renderTemplates = map[string]string{
|
|||
<li class="github-commit-item">
|
||||
<a class="link" href="{{$data.URL}}">
|
||||
<div class="github-avatar">
|
||||
<span class="tooltipped tooltipped-n" aria-label="Open issue">
|
||||
<span aria-label="Open issue">
|
||||
<svg aria-hidden="true" class="octicon octicon-issue-opened open" height="16" version="1.1" viewBox="0 0 14 16" width="14"><path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg>
|
||||
</span>
|
||||
</div>
|
||||
<div class="github-commit-body">
|
||||
<div class="github-commit-title">{{$data.Message}} {{$data.Labels}}</div>
|
||||
<div class="github-commit-title"><span class="label-name">{{$data.Message}}</span> {{$data.Labels}}</div>
|
||||
<div class="github-commit-meta">
|
||||
#{{$data.ID}} opened on {{$data.Date}} by {{$data.Name}}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue