From 2b7232a73c5340cb3aa4242a1399c9986f7ed6cc Mon Sep 17 00:00:00 2001 From: Amio Date: Tue, 10 Jul 2018 16:37:34 +0800 Subject: [PATCH] Update index style --- README.md | 2 ++ libs/serve-index.js | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8df57d8..3a55a8e 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,8 @@ Available color names: ## Examples +**Static Badge** + | Preview | URL | | --- | --- | |![](https://badgen.now.sh/badge/chat/gitter/purple) | https://badgen.now.sh/badge/chat/gitter/purple | diff --git a/libs/serve-index.js b/libs/serve-index.js index a81a832..bf68a72 100644 --- a/libs/serve-index.js +++ b/libs/serve-index.js @@ -5,9 +5,11 @@ module.exports = serveMarked('README.md', { preset: 'merri', inlineCSS: ` body { color: #333 } - a { text-decoration: none } + a { text-decoration: none; color: #06D } a:hover { text-decoration: underline } - td a { font: 14px monospace; vertical-align: top; margin-left: 1em } + table { border-spacing: 0 } + td { padding: 2px 1em 0 0; font: 14px/14px sans-serif } + td a { font: 14px/14px monospace; vertical-align: top } `, googleAnalyticsID: 'UA-4646421-14' })