From fcd1087c1660613db1613414ed6fc2d60039add6 Mon Sep 17 00:00:00 2001 From: "cinwell.li" Date: Thu, 1 Nov 2018 13:45:34 +0800 Subject: [PATCH] fix: cover button style, fixed #670, fixed #665 (#675) Please makes sure these boxes are checked before submitting your PR, thank you! * [x] Make sure you are merging your commits to `master` branch. * [x] Add some descriptions and refer relative issues for you PR. * [x] DO NOT include files inside `lib` directory. A temporary solution, I will refactor this part of the code in the next major version. --- src/core/render/index.js | 11 +++++++++++ src/themes/basic/_coverpage.styl | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/core/render/index.js b/src/core/render/index.js index 489aee947..feacd60d2 100644 --- a/src/core/render/index.js +++ b/src/core/render/index.js @@ -198,6 +198,17 @@ export function renderMixin(proto) { html = html.replace(m[0], '') } + // XXX: A Workaround + html = html + .split('\n') + .map(part => { + if (/^ p:last-child a + .cover-main > a[data-button] border-color var(--theme-color, $color-primary) border-radius 2rem border-style solid