Browse Source

Fix #491

pull/496/head
Unknwon 10 years ago
parent
commit
196efecaaa
  1. 12
      .fswatch.json
  2. 10
      .gopmfile
  3. 2
      gogs.go
  4. 10
      public/ng/css/gogs.css
  5. 6
      public/ng/css/ui.css
  6. 10
      public/ng/less/gogs/markdown.less
  7. 12
      public/ng/less/ui/reset.less
  8. 2
      templates/.VERSION

12
.fswatch.json

@ -1,12 +0,0 @@
{
"paths": ["."],
"depth": 2,
"exclude": [],
"include": ["\\.go$", "\\.ini$"],
"command": [
"bash", "-c", "go build && ./gogs web"
],
"env": {
"POWERED_BY": "github.com/shxsun/fswatch"
}
}

10
.gopmfile

@ -8,7 +8,7 @@ github.com/Unknwon/cae = commit:2e70a1351b
github.com/Unknwon/com = commit:2cbcbc6916 github.com/Unknwon/com = commit:2cbcbc6916
github.com/Unknwon/goconfig = commit:0f8d8dc1c0 github.com/Unknwon/goconfig = commit:0f8d8dc1c0
github.com/Unknwon/i18n = commit:47baeff8d0 github.com/Unknwon/i18n = commit:47baeff8d0
github.com/Unknwon/macaron = commit:f22f45d79a github.com/Unknwon/macaron =
github.com/codegangsta/cli = commit:7381bc4e62 github.com/codegangsta/cli = commit:7381bc4e62
github.com/go-sql-driver/mysql = commit:8111ee3ec3 github.com/go-sql-driver/mysql = commit:8111ee3ec3
github.com/go-xorm/core = commit:750aae0fa5 github.com/go-xorm/core = commit:750aae0fa5
@ -17,10 +17,10 @@ github.com/gogits/gfm = commit:40f747a9c0
github.com/gogits/oauth2 = commit:99cbec870a github.com/gogits/oauth2 = commit:99cbec870a
github.com/lib/pq = commit:b021d0ef20 github.com/lib/pq = commit:b021d0ef20
github.com/macaron-contrib/cache = commit:204d8e5137 github.com/macaron-contrib/cache = commit:204d8e5137
github.com/macaron-contrib/captcha = commit:8f3f1ac0e3 github.com/macaron-contrib/captcha =
github.com/macaron-contrib/csrf = commit:cd84c01723 github.com/macaron-contrib/csrf =
github.com/macaron-contrib/i18n = commit:489cc194b5 github.com/macaron-contrib/i18n =
github.com/macaron-contrib/session = commit:80a88a1bba github.com/macaron-contrib/session =
github.com/macaron-contrib/toolbox = commit:57127bcc89 github.com/macaron-contrib/toolbox = commit:57127bcc89
github.com/mattn/go-sqlite3 = commit:a80c27ba33 github.com/mattn/go-sqlite3 = commit:a80c27ba33
github.com/nfnt/resize = commit:581d15cb53 github.com/nfnt/resize = commit:581d15cb53

2
gogs.go

@ -17,7 +17,7 @@ import (
"github.com/gogits/gogs/modules/setting" "github.com/gogits/gogs/modules/setting"
) )
const APP_VER = "0.5.3.0921 Beta" const APP_VER = "0.5.3.0922 Beta"
func init() { func init() {
runtime.GOMAXPROCS(runtime.NumCPU()) runtime.GOMAXPROCS(runtime.NumCPU())

10
public/ng/css/gogs.css

@ -294,6 +294,12 @@ img.avatar-100 {
.markdown li:first-child { .markdown li:first-child {
margin-top: 0; margin-top: 0;
} }
.markdown code {
padding: 0.2em 0.5em;
margin: 0;
background-color: rgba(0, 0, 0, 0.04);
border-radius: 3px;
}
.markdown > pre { .markdown > pre {
font-size: 14px; font-size: 14px;
line-height: 1.6; line-height: 1.6;
@ -304,6 +310,10 @@ img.avatar-100 {
padding: 10px; padding: 10px;
background-color: #f8f8f8; background-color: #f8f8f8;
} }
.markdown > pre code {
padding: 0;
background-color: inherit;
}
.markdown img { .markdown img {
padding: 10px 0; padding: 10px 0;
max-width: 100%; max-width: 100%;

6
public/ng/css/ui.css

@ -151,8 +151,7 @@ code,
kbd, kbd,
pre, pre,
samp { samp {
font-family: monospace, monospace; font: 14px Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-size: 1em;
} }
.text-left { .text-left {
text-align: left; text-align: left;
@ -277,9 +276,6 @@ hr {
border-bottom: 1px solid #dddddd; border-bottom: 1px solid #dddddd;
margin-bottom: .75em; margin-bottom: .75em;
} }
p code {
color: #b63b2c;
}
.radius { .radius {
border-radius: .25em; border-radius: .25em;
} }

10
public/ng/less/gogs/markdown.less

@ -26,6 +26,12 @@
margin-top: 0; margin-top: 0;
} }
} }
code {
padding: 0.2em 0.5em;
margin: 0;
background-color: rgba(0,0,0,0.04);
border-radius: 3px;
}
>pre { >pre {
font-size: 14px; font-size: 14px;
line-height: 1.6; line-height: 1.6;
@ -35,6 +41,10 @@
margin: 5px 0; margin: 5px 0;
padding: 10px; padding: 10px;
background-color: #f8f8f8; background-color: #f8f8f8;
code {
padding: 0;
background-color: inherit;
}
} }
img { img {
padding: 10px 0; padding: 10px 0;

12
public/ng/less/ui/reset.less

@ -193,8 +193,7 @@ code,
kbd, kbd,
pre, pre,
samp { samp {
font-family: monospace, monospace; font: 14px Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-size: 1em;
} }
.text-left { .text-left {
@ -342,15 +341,6 @@ hr {
border-bottom: 1px solid @hrColor; border-bottom: 1px solid @hrColor;
margin-bottom: .75em; margin-bottom: .75em;
} }
// code element
p {
code {
color: @inlineCodeColor;
}
}
// radius element // radius element
.radius { .radius {

2
templates/.VERSION

@ -1 +1 @@
0.5.3.0921 Beta 0.5.3.0922 Beta
Loading…
Cancel
Save