aboutsummaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-12-10 07:00:11 -0500
committerUnknwon <joe2010xtmf@163.com>2014-12-10 07:00:11 -0500
commit01ba7717838c01c719cca34d3fe446c547c9ada4 (patch)
tree3b197ad3c7578f4459af1d3441172e005d28f2a2 /public
parent9ee80e3e5426821f03a4e99fad34418f5c736413 (diff)
downloadgitea-01ba7717838c01c719cca34d3fe446c547c9ada4.tar.gz
gitea-01ba7717838c01c719cca34d3fe446c547c9ada4.zip
fix #703
Diffstat (limited to 'public')
-rw-r--r--public/ng/css/gogs.css47
-rw-r--r--public/ng/less/gogs/markdown.less47
2 files changed, 48 insertions, 46 deletions
diff --git a/public/ng/css/gogs.css b/public/ng/css/gogs.css
index b2c0985623..a052b3497d 100644
--- a/public/ng/css/gogs.css
+++ b/public/ng/css/gogs.css
@@ -340,6 +340,30 @@ img.avatar-100 {
padding: 5px 15px;
color: #777;
}
+.markdown table {
+ width: 100%;
+ overflow: auto;
+ word-break: normal;
+ margin: 15px 0;
+ border-collapse: collapse;
+ border-spacing: 0;
+ display: block;
+}
+.markdown table th {
+ font-weight: 700;
+}
+.markdown table th,
+.markdown table td {
+ border: 1px solid #DDD;
+ padding: 6px 13px !important;
+}
+.markdown table tr {
+ background-color: #FFF;
+ border-top: 1px solid #CCC;
+}
+.markdown table tr:nth-child(2n) {
+ background-color: #F8F8F8;
+}
.markdown a {
color: #428BCA;
}
@@ -376,29 +400,6 @@ img.avatar-100 {
.markdown h4 {
font-size: 18px;
}
-.markdown table {
- border-collapse: collapse;
- border-spacing: 0;
- display: block;
- overflow: auto;
- width: 100%;
- margin: 0 0 9px;
-}
-.markdown table th {
- font-weight: 700;
-}
-.markdown table th,
-.markdown table td {
- border: 1px solid #DDD;
- padding: 6px 13px;
-}
-.markdown table tr {
- background-color: #FFF;
- border-top: 1px solid #CCC;
-}
-.markdown table tr:nth-child(2n) {
- background-color: #f8f8f8;
-}
.markdown dl dt {
font-style: italic;
margin-top: 9px;
diff --git a/public/ng/less/gogs/markdown.less b/public/ng/less/gogs/markdown.less
index 72cd610aae..e3abb480a2 100644
--- a/public/ng/less/gogs/markdown.less
+++ b/public/ng/less/gogs/markdown.less
@@ -59,6 +59,30 @@
color: #777;
}
}
+ table {
+ display: block;
+ width: 100%;
+ overflow: auto;
+ word-break: normal;
+ margin: 15px 0;
+ border-collapse: collapse;
+ border-spacing: 0;
+ display: block;
+ th {
+ font-weight: 700;
+ }
+ th, td {
+ border: 1px solid #DDD;
+ padding: 6px 13px !important;
+ }
+ tr {
+ background-color: #FFF;
+ border-top: 1px solid #CCC;
+ &:nth-child(2n) {
+ background-color: #F8F8F8;
+ }
+ }
+ }
}
.markdown a {
color: #428BCA;
@@ -96,29 +120,6 @@
.markdown h4 {
font-size: 18px
}
-.markdown table {
- border-collapse: collapse;
- border-spacing: 0;
- display: block;
- overflow: auto;
- width: 100%;
- margin: 0 0 9px;
-}
-.markdown table th {
- font-weight: 700
-}
-.markdown table th,
-.markdown table td {
- border: 1px solid #DDD;
- padding: 6px 13px;
-}
-.markdown table tr {
- background-color: #FFF;
- border-top: 1px solid #CCC;
-}
-.markdown table tr:nth-child(2n) {
- background-color: #F8F8F8
-}
.markdown dl dt {
font-style: italic;
margin-top: 9px;