mirror of https://github.com/go-gitea/gitea
Refactor some CSS styles and simplify code (#26771)
Refactor some CSS styles and simplify code. Some styles are not in use, remove them.pull/26772/head^2
parent
a587d25261
commit
4803766f7a
@ -1,16 +1,14 @@ |
|||||||
<div class="repo-icon"> |
{{$avatarLink := .RelAvatarLink}} |
||||||
{{$avatarLink := .RelAvatarLink}} |
{{if $avatarLink}} |
||||||
{{if $avatarLink}} |
<img class="ui avatar gt-vm" src="{{$avatarLink}}" width="32" height="32" alt="{{.FullName}}"> |
||||||
<img class="ui avatar gt-vm" src="{{$avatarLink}}" width="32" height="32" alt="{{.FullName}}"> |
{{else if $.IsTemplate}} |
||||||
{{else if $.IsTemplate}} |
{{svg "octicon-repo-template" 32}} |
||||||
{{svg "octicon-repo-template" 32}} |
{{else if $.IsPrivate}} |
||||||
{{else if $.IsPrivate}} |
{{svg "octicon-lock" 32}} |
||||||
{{svg "octicon-lock" 32}} |
{{else if $.IsMirror}} |
||||||
{{else if $.IsMirror}} |
{{svg "octicon-mirror" 32}} |
||||||
{{svg "octicon-mirror" 32}} |
{{else if $.IsFork}} |
||||||
{{else if $.IsFork}} |
{{svg "octicon-repo-forked" 32}} |
||||||
{{svg "octicon-repo-forked" 32}} |
{{else}} |
||||||
{{else}} |
{{svg "octicon-repo" 32}} |
||||||
{{svg "octicon-repo" 32}} |
{{end}} |
||||||
{{end}} |
|
||||||
</div> |
|
||||||
|
@ -1,16 +1,22 @@ |
|||||||
<a class="color" style="background-color:#e11d21" data-color-hex="#e11d21"></a> |
<div class="precolors"> |
||||||
<a class="color" style="background-color:#eb6420" data-color-hex="#eb6420"></a> |
<div class="gt-df"> |
||||||
<a class="color" style="background-color:#fbca04" data-color-hex="#fbca04"></a> |
<a class="color" style="background-color:#e11d21" data-color-hex="#e11d21"></a> |
||||||
<a class="color" style="background-color:#009800" data-color-hex="#009800"></a> |
<a class="color" style="background-color:#eb6420" data-color-hex="#eb6420"></a> |
||||||
<a class="color" style="background-color:#006b75" data-color-hex="#006b75"></a> |
<a class="color" style="background-color:#fbca04" data-color-hex="#fbca04"></a> |
||||||
<a class="color" style="background-color:#207de5" data-color-hex="#207de5"></a> |
<a class="color" style="background-color:#009800" data-color-hex="#009800"></a> |
||||||
<a class="color" style="background-color:#0052cc" data-color-hex="#0052cc"></a> |
<a class="color" style="background-color:#006b75" data-color-hex="#006b75"></a> |
||||||
<a class="color" style="background-color:#5319e7" data-color-hex="#5319e7"></a> |
<a class="color" style="background-color:#207de5" data-color-hex="#207de5"></a> |
||||||
<a class="color" style="background-color:#f6c6c7" data-color-hex="#f6c6c7"></a> |
<a class="color" style="background-color:#0052cc" data-color-hex="#0052cc"></a> |
||||||
<a class="color" style="background-color:#fad8c7" data-color-hex="#fad8c7"></a> |
<a class="color" style="background-color:#5319e7" data-color-hex="#5319e7"></a> |
||||||
<a class="color" style="background-color:#fef2c0" data-color-hex="#fef2c0"></a> |
</div> |
||||||
<a class="color" style="background-color:#bfe5bf" data-color-hex="#bfe5bf"></a> |
<div class="gt-df"> |
||||||
<a class="color" style="background-color:#bfdadc" data-color-hex="#bfdadc"></a> |
<a class="color" style="background-color:#f6c6c7" data-color-hex="#f6c6c7"></a> |
||||||
<a class="color" style="background-color:#c7def8" data-color-hex="#c7def8"></a> |
<a class="color" style="background-color:#fad8c7" data-color-hex="#fad8c7"></a> |
||||||
<a class="color" style="background-color:#bfd4f2" data-color-hex="#bfd4f2"></a> |
<a class="color" style="background-color:#fef2c0" data-color-hex="#fef2c0"></a> |
||||||
<a class="color" style="background-color:#d4c5f9" data-color-hex="#d4c5f9"></a> |
<a class="color" style="background-color:#bfe5bf" data-color-hex="#bfe5bf"></a> |
||||||
|
<a class="color" style="background-color:#bfdadc" data-color-hex="#bfdadc"></a> |
||||||
|
<a class="color" style="background-color:#c7def8" data-color-hex="#c7def8"></a> |
||||||
|
<a class="color" style="background-color:#bfd4f2" data-color-hex="#bfd4f2"></a> |
||||||
|
<a class="color" style="background-color:#d4c5f9" data-color-hex="#d4c5f9"></a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
Loading…
Reference in new issue