From b0e4b98827b9da5602328fdef57e1e83b46ff064 Mon Sep 17 00:00:00 2001
From: NaBian <836904362@qq.com>
Date: Thu, 20 Aug 2020 00:19:51 +0800
Subject: [PATCH] update doc style
---
doc/themes/next/layout/_layout.swig | 1 +
.../next/source/css/_custom/custom.styl | 23 +++++++++++++++++++
2 files changed, 24 insertions(+)
diff --git a/doc/themes/next/layout/_layout.swig b/doc/themes/next/layout/_layout.swig
index 9c3ff3b3..d2272196 100644
--- a/doc/themes/next/layout/_layout.swig
+++ b/doc/themes/next/layout/_layout.swig
@@ -16,6 +16,7 @@
+
{{ partial('_partials/head/head.swig', {}, {cache: theme.cache.enable}) }}
{% include '_partials/head/head-unique.swig' %}
{% block title %}{% endblock %}
diff --git a/doc/themes/next/source/css/_custom/custom.styl b/doc/themes/next/source/css/_custom/custom.styl
index cff32efb..82ec23f7 100644
--- a/doc/themes/next/source/css/_custom/custom.styl
+++ b/doc/themes/next/source/css/_custom/custom.styl
@@ -1,5 +1,28 @@
// Custom styles.
+.table-container table{
+ background-color: #eee;
+ border-collapse:separate;
+ border-spacing: 0 4px;
+ padding: 0 6px 2px 6px;
+}
+
+.table-container th, td{
+ border: 0;
+}
+
+.table-container tr td:first-child{
+ border-radius: 4px 0 0 4px;
+}
+
+.table-container tr td:last-child{
+ border-radius: 0 4px 4px 0;
+}
+
+.table-container tbody > tr {
+ background-color: white !important;
+}
+
::-webkit-scrollbar {
width: 8px;
height: 8px;