Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-28 04:36:11 +01:00

template and ui fix

This commit is contained in:
fuxiaohei 2014-09-27 17:08:57 +08:00
parent ad2ab6d214
commit dccc50e9d4
6 changed files with 18 additions and 6 deletions

View file

@ -709,6 +709,7 @@ ol.linenums {
#dashboard-header { #dashboard-header {
border-bottom: 1px solid #d6d6d6; border-bottom: 1px solid #d6d6d6;
height: 69px; height: 69px;
background-color: #FFF;
} }
#dashboard-header > .menu-line > li { #dashboard-header > .menu-line > li {
padding: 12px 6px; padding: 12px 6px;
@ -824,6 +825,11 @@ ol.linenums {
#dashboard-my-repo .repo-contrib-header { #dashboard-my-repo .repo-contrib-header {
border-top: 1px solid #d6d6d6; border-top: 1px solid #d6d6d6;
} }
#dashboard-my-mirror .panel-header,
#dashboard-my-org .panel-header,
#dashboard-my-repo .panel-header {
font-size: 14px;
}
#dashboard-my-repo .panel-header .octicon { #dashboard-my-repo .panel-header .octicon {
margin-right: 6px; margin-right: 6px;
font-size: 12px; font-size: 12px;
@ -1244,7 +1250,8 @@ The register and sign-in page style
font-weight: normal; font-weight: normal;
color: #888; color: #888;
} }
#repo-readme { #repo-readme,
#repo-read-file {
margin-bottom: 80px; margin-bottom: 80px;
} }
#repo-bare-start { #repo-bare-start {

View file

@ -12,6 +12,7 @@
#dashboard-header { #dashboard-header {
border-bottom: 1px solid @dashboardHeaderBorderColor; border-bottom: 1px solid @dashboardHeaderBorderColor;
height: 69px; height: 69px;
background-color: #FFF;
> .menu-line { > .menu-line {
> li { > li {
padding: 12px 6px; padding: 12px 6px;
@ -125,6 +126,9 @@
.repo-contrib-header { .repo-contrib-header {
border-top: 1px solid #d6d6d6; border-top: 1px solid #d6d6d6;
} }
.panel-header{
font-size: 14px;
}
} }
#dashboard-my-repo { #dashboard-my-repo {
.panel-header { .panel-header {

View file

@ -301,7 +301,8 @@
} }
} }
} }
#repo-readme { #repo-readme,
#repo-read-file{
margin-bottom: 80px; margin-bottom: 80px;
} }
#repo-bare-start { #repo-bare-start {

View file

@ -3,7 +3,7 @@
<div id="repo-wrapper"> <div id="repo-wrapper">
{{template "repo/header" .}} {{template "repo/header" .}}
<div id="repo-content" class="clear container"> <div id="repo-content" class="clear container">
<div id="repo-main" class="left grid-4-5"> <div id="repo-main" class="left grid-5-6">
<p id="repo-desc"> <p id="repo-desc">
<span class="description">{{.Repository.DescriptionHtml}}</span> <span class="description">{{.Repository.DescriptionHtml}}</span>
<a class="link" href="{{.Repository.Website}}">{{.Repository.Website}}</a> <a class="link" href="{{.Repository.Website}}">{{.Repository.Website}}</a>

View file

@ -1,4 +1,4 @@
<div id="repo-sidebar" class="right grid-1-5"> <div id="repo-sidebar" class="right grid-1-6">
<ul class="menu menu-vertical" id="repo-sidebar-nav"> <ul class="menu menu-vertical" id="repo-sidebar-nav">
<li> <li>
<a class="radius" href="{{.RepoLink}}/issues"><i class="octicon octicon-issue-opened"></i>{{.i18n.Tr "repo.issues"}}<span class="num right label label-blue label-radius">{{.Repository.NumOpenIssues}}</span></a> <a class="radius" href="{{.RepoLink}}/issues"><i class="octicon octicon-issue-opened"></i>{{.i18n.Tr "repo.issues"}}<span class="num right label label-blue label-radius">{{.Repository.NumOpenIssues}}</span></a>

View file

@ -1,4 +1,4 @@
<div class="panel panel-radius" id="repo-readme"> <div class="panel panel-radius" id="{{if .ReadmeExist}}repo-readme{{else}}repo-read-file{{end}}">
<p class="panel-header"> <p class="panel-header">
{{if .ReadmeExist}} {{if .ReadmeExist}}
<i class="icon fa fa-book fa-lg"></i> <i class="icon fa fa-book fa-lg"></i>
@ -12,7 +12,7 @@
<strong class="file-name">{{.FileName}}</strong><span class="file-size">{{FileSize .FileSize}}</span> <strong class="file-name">{{.FileName}}</strong><span class="file-size">{{FileSize .FileSize}}</span>
{{end}} {{end}}
</p> </p>
<div class="{{if .ReadmeExist}}panel-content markdown{{end}} code-view"> <div class="{{if .ReadmeExist}}panel-content markdown{{end}} code-view" id="repo-code-view">
{{if .ReadmeExist}} {{if .ReadmeExist}}
{{if .FileContent}}{{.FileContent | Str2html}}{{end}} {{if .FileContent}}{{.FileContent | Str2html}}{{end}}
{{else if not .IsFileText}} {{else if not .IsFileText}}