From 12b783c4d276457dfb77223a2073fee66ac74dab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Wed, 28 Oct 2020 21:30:50 +0100 Subject: [PATCH 1/3] formatting --- packages/core/src/pasteRules/markPasteRule.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/core/src/pasteRules/markPasteRule.ts b/packages/core/src/pasteRules/markPasteRule.ts index 85f5a93c..0dc63d99 100644 --- a/packages/core/src/pasteRules/markPasteRule.ts +++ b/packages/core/src/pasteRules/markPasteRule.ts @@ -2,7 +2,6 @@ import { Plugin } from 'prosemirror-state' import { Slice, Fragment, MarkType } from 'prosemirror-model' export default function (regexp: RegExp, type: MarkType, getAttrs?: (match: any) => any): Plugin { - const handler = (fragment: Fragment, parent?: any) => { const nodes: any[] = [] @@ -33,7 +32,6 @@ export default function (regexp: RegExp, type: MarkType, getAttrs?: (match: any) // adding the markdown part to nodes nodes.push(child .cut(textStart, textEnd) - // @ts-ignore .mark(type.create(attrs).addToSet(child.marks))) pos = matchEnd @@ -59,5 +57,4 @@ export default function (regexp: RegExp, type: MarkType, getAttrs?: (match: any) }, }, }) - } From 3bbadc551755452d865cdfae2cb85eba5f3eb476 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Thu, 29 Oct 2020 09:32:11 +0100 Subject: [PATCH 2/3] add colored lists --- docs/src/templates/DocPage/style.scss | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/src/templates/DocPage/style.scss b/docs/src/templates/DocPage/style.scss index 11306b00..e4ced33e 100644 --- a/docs/src/templates/DocPage/style.scss +++ b/docs/src/templates/DocPage/style.scss @@ -149,12 +149,13 @@ display: inline-block; margin-right: 0.75rem; content: "\2022"; - opacity: 0.2; + color: $colorYellow; } } } > ol { + list-style: none; counter-reset: item; li { @@ -171,9 +172,9 @@ justify-content: center; height: 1.5rem; width: 1.5rem; - background-color: rgba($colorWhite, 0.1); + background-color: rgba($colorYellow, 0.1); border-radius: 9999px; - color: rgba($colorWhite, 0.4); + color: $colorYellow; font-size: 0.75rem; font-weight: 700; content: counter(item); From be86773fc27b2bc9d1b613416899685ae15a3bf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Thu, 29 Oct 2020 09:42:39 +0100 Subject: [PATCH 3/3] show always full menu on mobile --- docs/src/layouts/App/style.scss | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/src/layouts/App/style.scss b/docs/src/layouts/App/style.scss index d2b851b5..281c22e4 100644 --- a/docs/src/layouts/App/style.scss +++ b/docs/src/layouts/App/style.scss @@ -157,6 +157,10 @@ $menuBreakPoint: 800px; margin-top: 0.5rem; } + &__mobile-nav &__link-list &__link-list { + display: block; + } + .active + &__link-list { display: block; } @@ -200,6 +204,10 @@ $menuBreakPoint: 800px; } } + &__mobile-nav &__link--with-children::after { + display: none; + } + &__main { padding: 1rem 0;