]> source.dussan.org Git - gitea.git/commitdiff
Fix #491
authorUnknwon <joe2010xtmf@163.com>
Mon, 22 Sep 2014 15:04:46 +0000 (11:04 -0400)
committerUnknwon <joe2010xtmf@163.com>
Mon, 22 Sep 2014 15:04:46 +0000 (11:04 -0400)
.fswatch.json [deleted file]
.gopmfile
gogs.go
public/ng/css/gogs.css
public/ng/css/ui.css
public/ng/less/gogs/markdown.less
public/ng/less/ui/reset.less
templates/.VERSION

diff --git a/.fswatch.json b/.fswatch.json
deleted file mode 100644 (file)
index 7b12022..0000000
+++ /dev/null
@@ -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"
-    }
-}
index 6edec7769053a55d6248cc1b48aa4a25e91a4cf1..3ba514afc81f4ce29797c90e18ef5ffdf701b208 100644 (file)
--- a/.gopmfile
+++ b/.gopmfile
@@ -8,7 +8,7 @@ github.com/Unknwon/cae = commit:2e70a1351b
 github.com/Unknwon/com = commit:2cbcbc6916
 github.com/Unknwon/goconfig = commit:0f8d8dc1c0
 github.com/Unknwon/i18n = commit:47baeff8d0
-github.com/Unknwon/macaron = commit:f22f45d79a
+github.com/Unknwon/macaron = 
 github.com/codegangsta/cli = commit:7381bc4e62
 github.com/go-sql-driver/mysql = commit:8111ee3ec3
 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/lib/pq = commit:b021d0ef20
 github.com/macaron-contrib/cache = commit:204d8e5137
-github.com/macaron-contrib/captcha = commit:8f3f1ac0e3
-github.com/macaron-contrib/csrf = commit:cd84c01723
-github.com/macaron-contrib/i18n = commit:489cc194b5
-github.com/macaron-contrib/session = commit:80a88a1bba
+github.com/macaron-contrib/captcha = 
+github.com/macaron-contrib/csrf = 
+github.com/macaron-contrib/i18n = 
+github.com/macaron-contrib/session = 
 github.com/macaron-contrib/toolbox = commit:57127bcc89
 github.com/mattn/go-sqlite3 = commit:a80c27ba33
 github.com/nfnt/resize = commit:581d15cb53
diff --git a/gogs.go b/gogs.go
index 645e4e3398e44f4706f801f195d4bf3c880a43e8..b1b9fe60d562ad873809d89b151f2f2ff72f7774 100644 (file)
--- a/gogs.go
+++ b/gogs.go
@@ -17,7 +17,7 @@ import (
        "github.com/gogits/gogs/modules/setting"
 )
 
-const APP_VER = "0.5.3.0921 Beta"
+const APP_VER = "0.5.3.0922 Beta"
 
 func init() {
        runtime.GOMAXPROCS(runtime.NumCPU())
index db4aad228326b1e88301b80e33daa0603e242325..5429d0126479858e66cfd18284c677cc774f4a05 100644 (file)
@@ -294,6 +294,12 @@ img.avatar-100 {
 .markdown li:first-child {
   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 {
   font-size: 14px;
   line-height: 1.6;
@@ -304,6 +310,10 @@ img.avatar-100 {
   padding: 10px;
   background-color: #f8f8f8;
 }
+.markdown > pre code {
+  padding: 0;
+  background-color: inherit;
+}
 .markdown img {
   padding: 10px 0;
   max-width: 100%;
index 7c385c1349aa97f1da0025cd9e9881a9883904a7..f3f6eded79a075e08a77e8675ca17e8b683e777f 100644 (file)
@@ -151,8 +151,7 @@ code,
 kbd,
 pre,
 samp {
-  font-family: monospace, monospace;
-  font-size: 1em;
+  font: 14px Consolas, "Liberation Mono", Menlo, Courier, monospace;
 }
 .text-left {
   text-align: left;
@@ -277,9 +276,6 @@ hr {
   border-bottom: 1px solid #dddddd;
   margin-bottom: .75em;
 }
-p code {
-  color: #b63b2c;
-}
 .radius {
   border-radius: .25em;
 }
index ee69fab8b475e4659fcc57be3ab0bea1637c5584..72cd610aae98dfa8e85e3b9c36c15fb0935215a5 100644 (file)
             margin-top: 0;
         }
     }
-    > pre {
+    code {
+        padding: 0.2em 0.5em;
+        margin: 0;
+        background-color: rgba(0,0,0,0.04);
+        border-radius: 3px;
+    }
+    >pre {
         font-size: 14px;
         line-height: 1.6;
         overflow: auto;
         margin: 5px 0;
         padding: 10px;
         background-color: #f8f8f8;
+        code {
+            padding: 0;
+            background-color: inherit;
+        }
     }
     img {
         padding: 10px 0;
index 36906ce5a7853659f9062427a313896dfbe889b4..8ff45d694d9f23142f9c7a7f3de58ee5ef097395 100644 (file)
@@ -193,8 +193,7 @@ code,
 kbd,
 pre,
 samp {
-  font-family: monospace, monospace;
-  font-size: 1em;
+    font: 14px Consolas, "Liberation Mono", Menlo, Courier, monospace;
 }
 
 .text-left {
@@ -342,15 +341,6 @@ hr {
   border-bottom: 1px solid @hrColor;
   margin-bottom: .75em;
 }
-
-// code element
-
-p {
-  code {
-    color: @inlineCodeColor;
-  }
-}
-
 // radius element
 
 .radius {
index 4e0c5d6102fa406bb0faff957d05a129ce97d3b4..19d8171e8fff5eb018586d26e2097d30f27faffc 100644 (file)
@@ -1 +1 @@
-0.5.3.0921 Beta
\ No newline at end of file
+0.5.3.0922 Beta
\ No newline at end of file