Browse Source

调整项目广场样式细节

pull/353/head
OpenIhu 3 years ago
parent
commit
af625a2d1e
3 changed files with 21 additions and 7 deletions
  1. +16
    -5
      templates/explore/repo_list.tmpl
  2. +4
    -1
      templates/explore/repo_orgtop.tmpl
  3. +1
    -1
      templates/explore/repo_search.tmpl

+ 16
- 5
templates/explore/repo_list.tmpl View File

@@ -4,9 +4,10 @@
border: 1px solid #E1E3E6;
border-radius: 0.8rem;
margin-bottom: 1.0rem;
padding: 1.0rem;
padding: 1.0rem !important;
}
.ui.repository.list>.item .header {
font-size: 1.4rem;
font-weight: 200;
}
.ui.list>.item>.content{
@@ -23,24 +24,33 @@
content: "";
height: 1px;
background-color: #E1E3E6;
bottom: 2.6rem;
bottom: 2.8rem;
}
.repository .ui.mini.menu{
font-size: .6rem;
margin-top: -5px;
}
.repository .ui.right.compact .item{
padding-top: 0;
padding-bottom: 0;
}
.ui.repository.list .item .time {
margin-top: 1.5rem;
}
</style>

<div class="ui secondary pointing tabular top attached borderless menu navbar">
<a class="active item" href="https://git.openi.org.cn/explore/repos?sort=moststars&q=&tab=">
<svg class="svg octicon-repo" width="16" height="16" aria-hidden="true">
<use xlink:href="#octicon-repo" />
</svg> 热门{{.i18n.Tr "explore.repos"}}
</svg>
热门{{.i18n.Tr "explore.repos"}}
</a>
<a class=" item" href="https://git.openi.org.cn/explore/repos?sort=mostforks&q=&tab=">
<svg class="svg octicon-inbox" width="16" height="16" aria-hidden="true">
<use xlink:href="#octicon-inbox" />
</svg> 活跃项目
</svg>
活跃{{.i18n.Tr "explore.repos"}}
</a>

<a class="{{if eq .SortType "newest"}}active{{end}} item" href="{{$.Link}}?sort=newest&q={{$.Keyword}}&tab={{$.TabName}}">
@@ -98,7 +108,8 @@
<div class="ui mini right compact menu">
<a class="item">
<i class="icon fa-eye"></i> {{.NumWatches}}
{{svg "octicon-eye" 16}}
{{.NumWatches}}
</a>
<a class="item">
{{svg "octicon-star" 16}} {{.NumStars}}


+ 4
- 1
templates/explore/repo_orgtop.tmpl View File

@@ -1,8 +1,11 @@
<script src="https://cdn.bootcdn.net/ajax/libs/Swiper/6.8.0/swiper-bundle.min.js"></script>
<link href="https://cdn.bootcdn.net/ajax/libs/Swiper/6.8.0/swiper-bundle.min.css" rel="stylesheet">
<style>
.explore .repos--seach{
border-bottom:none;
}
.repos--orgtop {
margin-top: -1px;
margin-top: -21px;
}

.repos--orgtop .ui.card {


+ 1
- 1
templates/explore/repo_search.tmpl View File

@@ -6,7 +6,7 @@
<input name="q" value="{{.Keyword}}" placeholder="{{.i18n.Tr "explore.search"}}..." autofocus>
<input type="hidden" name="tab" value="{{$.TabName}}">
<input type="hidden" name="sort" value="{{$.SortType}}">
<button class="ui blue button">{{.i18n.Tr "explore.search"}}</button>
<button class="ui green button">{{.i18n.Tr "explore.search"}}</button>
</div>
</form>
</div>


Loading…
Cancel
Save