From 479e975d29b1d37557247e0f96eb323f2dde8298 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 1 Nov 2016 15:02:48 +0800 Subject: [PATCH] Improve API table style --- site/theme/static/markdown.less | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/site/theme/static/markdown.less b/site/theme/static/markdown.less index 2804746ef2..455d4bf8e5 100644 --- a/site/theme/static/markdown.less +++ b/site/theme/static/markdown.less @@ -89,7 +89,7 @@ } .markdown code { - margin: 0 3px; + margin: 0 1px; background: #f7f7f7; padding: .2em .4em; border-radius: 3px; @@ -205,6 +205,20 @@ .markdown.api-container table { font-family: Consolas, Menlo, Courier, monospace; font-size: 13px; + td:first-child { + background: #fcfcfc; + font-weight: 500; + width: 20%; + } + td:nth-child(3) { + width: 20%; + word-break: break-all; + font-size: 12px; + } + td:last-child { + width: 15%; + font-size: 12px; + } } .layout-demo,