1
0
Fork 0
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:
EnesAlili 2016-06-29 17:59:59 +01:00
parent f5c1f9ecbf
commit 5df35dac11
3 changed files with 27 additions and 14 deletions

View file

@ -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 { .section-github-render {
.github-board { .github-board {
width: 100%; width: 100%;

View file

@ -421,7 +421,7 @@ func (*Provider) getIssues(client *gogithub.Client, config githubConfig) ([]gith
} }
l := "" l := ""
for _, ll := range v.Labels { 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{ ret = append(ret, githubIssue{
Name: n, Name: n,

View file

@ -86,12 +86,12 @@ var renderTemplates = map[string]string{
<li class="github-commit-item"> <li class="github-commit-item">
<a class="link" href="{{$data.URL}}"> <a class="link" href="{{$data.URL}}">
<div class="github-avatar"> <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> <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> </span>
</div> </div>
<div class="github-commit-body"> <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"> <div class="github-commit-meta">
#{{$data.ID}} opened on {{$data.Date}} by {{$data.Name}} #{{$data.ID}} opened on {{$data.Date}} by {{$data.Name}}
</div> </div>