Browse Source

调整卡片布局的样式及标签字体样式

tags/v1.22.4.1^2
OpenIhu 3 years ago
parent
commit
bac12a8d2d
2 changed files with 22 additions and 9 deletions
  1. +9
    -9
      templates/org/select_pro.tmpl
  2. +13
    -0
      web_src/less/openi.less

+ 9
- 9
templates/org/select_pro.tmpl View File

@@ -85,7 +85,7 @@
<div class="ui three stackable cards" style="margin-bottom: 10px;">
{{ range .RepoList}}
<div class="card" >
<div class="ui raised card">
<div class="content" >
<div class="header" >
@@ -103,14 +103,14 @@
{{end}}
</p>
{{end}}
</div>
<div class="meta">
<span class="right floated date">
{{svg "octicon-eye" 16}} {{.NumWatches}} &nbsp &nbsp
{{svg "octicon-star" 16}} {{.NumStars}} &nbsp &nbsp
{{svg "octicon-git-branch" 16}} {{.NumForks}}
</span>
</div>
</div>
</div>
<div class="extra content">
<span class="right floated date">
{{svg "octicon-eye" 16}} {{.NumWatches}} &nbsp &nbsp
{{svg "octicon-star" 16}} {{.NumStars}} &nbsp &nbsp
{{svg "octicon-git-branch" 16}} {{.NumForks}}
</span>
</div>

</div>


+ 13
- 0
web_src/less/openi.less View File

@@ -12,6 +12,11 @@ a {
.ui .text.yellow a:hover {
color: #f2711c!important
}
.ui.small.label.topic{
margin-bottom: 0;
font-weight: 400;
}

.mb-1 {
margin-bottom: 8px !important;
}
@@ -142,6 +147,14 @@ footer {
width:auto;
margin:10px auto;
}
.ui.card>.extra, .ui.cards>.card>.extra{
border-top:none;
padding: 0 .5em 1em;
}
.ui.card>.content + .extra.content, .ui.cards>.card>.content + .extra.content{
padding-bottom: 0;
}

#index-project .ui.card>.content, #index-project.ui.cards>.card>.content{
padding: 0.5em 0.2em;
}


Loading…
Cancel
Save