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%;
@ -45,7 +58,7 @@
margin: 20px; margin: 20px;
padding: 0; padding: 0;
color: #767676; color: #767676;
> .github-commit-item { > .github-commit-item {
display: block; display: block;
width: 95%; width: 95%;
@ -71,10 +84,10 @@
background-color: #f7fbfc; background-color: #f7fbfc;
cursor: pointer; cursor: pointer;
} }
> .link { > .link {
color: #999; color: #999;
> .github-avatar { > .github-avatar {
float: left; float: left;
margin-right: 15px; margin-right: 15px;
@ -90,14 +103,14 @@
text-decoration: none; text-decoration: none;
font-size: 13px; font-size: 13px;
font-weight: 600; font-weight: 600;
line-height: 16px; line-height: 16px;
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
width: 90%; width: 90%;
} }
> .github-commit-meta { > .github-commit-meta {
font-weight: normal; font-weight: normal;
color: #767676; color: #767676;
@ -105,7 +118,7 @@
line-height: 22px; line-height: 22px;
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
width: 90%; width: 90%;
} }
} }
} }

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

@ -77,7 +77,7 @@ var renderTemplates = map[string]string{
{{end}} {{end}}
{{end}} {{end}}
{{end}} {{end}}
. .
Up to {{ .Limit }} items are shown{{ .DateMessage }}. Up to {{ .Limit }} items are shown{{ .DateMessage }}.
</p> </p>
<div class="github-board"> <div class="github-board">
@ -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>
@ -119,7 +119,7 @@ var renderTemplates = map[string]string{
<img alt="@{{$data.Name}}" src="{{$data.Avatar}}" height="36" width="36"> <img alt="@{{$data.Name}}" src="{{$data.Avatar}}" height="36" width="36">
</div> </div>
<div class="github-commit-body"> <div class="github-commit-body">
<div class="github-commit-title">{{$data.Event}}: {{$data.Message}}</div> <div class="github-commit-title">{{$data.Event}}: {{$data.Message}}</div>
<div class="github-commit-meta">{{$data.Name}} committed on {{$data.Date}}</div> <div class="github-commit-meta">{{$data.Name}} committed on {{$data.Date}}</div>
</div> </div>
</a> </a>