From 8f00a09b76b3dd97c0c596778d7ddbfbdb4d4449 Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Fri, 13 Nov 2020 15:46:55 +0100 Subject: [PATCH] add styles to examples, add content to the typescript page --- docs/src/demos/Examples/Basic/index.vue | 47 +++++++++++++ .../Examples/CollaborativeEditing/index.vue | 45 +++++++++++++ .../demos/Examples/ExportHtmlOrJson/index.vue | 46 +++++++++++++ docs/src/demos/Examples/Links/index.vue | 14 ++++ .../Examples/MarkdownShortcuts/index.vue | 59 ++++++++++++++++- docs/src/demos/Examples/Minimalist/index.vue | 9 +++ docs/src/demos/Examples/ReadOnly/index.vue | 7 ++ .../docPages/guide/working-with-typescript.md | 41 +++++++++++- docs/src/layouts/App/base.scss | 66 +++++++++---------- docs/src/links.yaml | 1 - 10 files changed, 298 insertions(+), 37 deletions(-) diff --git a/docs/src/demos/Examples/Basic/index.vue b/docs/src/demos/Examples/Basic/index.vue index f2597399..6bcbf6b5 100644 --- a/docs/src/demos/Examples/Basic/index.vue +++ b/docs/src/demos/Examples/Basic/index.vue @@ -124,3 +124,50 @@ export default { }, } + + diff --git a/docs/src/demos/Examples/CollaborativeEditing/index.vue b/docs/src/demos/Examples/CollaborativeEditing/index.vue index b9c65f58..36403f81 100644 --- a/docs/src/demos/Examples/CollaborativeEditing/index.vue +++ b/docs/src/demos/Examples/CollaborativeEditing/index.vue @@ -281,4 +281,49 @@ export default { border-radius: 3px; white-space: nowrap; } + +/* Basic editor styles */ +.ProseMirror { + > * + * { + margin-top: 0.75em; + } + + ul, + ol { + padding: 0 1rem; + } + + code { + background-color: rgba(#616161, 0.1); + color: #616161; + } + + pre { + background: #0D0D0D; + color: #FFF; + font-family: 'JetBrainsMono', monospace; + padding: 0.75rem 1rem; + border-radius: 0.5rem; + + code { + color: inherit; + background: none; + font-size: 0.8rem; + } + } + + img { + max-width: 100%; + height: auto; + } + + hr { + margin: 1rem 0; + } + + blockquote { + padding-left: 1rem; + border-left: 2px solid rgba(#0D0D0D, 0.1); + } +} diff --git a/docs/src/demos/Examples/ExportHtmlOrJson/index.vue b/docs/src/demos/Examples/ExportHtmlOrJson/index.vue index d5a53f87..e7c2ccb6 100644 --- a/docs/src/demos/Examples/ExportHtmlOrJson/index.vue +++ b/docs/src/demos/Examples/ExportHtmlOrJson/index.vue @@ -105,6 +105,7 @@ export default { diff --git a/docs/src/demos/Examples/Links/index.vue b/docs/src/demos/Examples/Links/index.vue index e3240fc7..933dd0f8 100644 --- a/docs/src/demos/Examples/Links/index.vue +++ b/docs/src/demos/Examples/Links/index.vue @@ -64,3 +64,17 @@ export default { }, } + + diff --git a/docs/src/demos/Examples/MarkdownShortcuts/index.vue b/docs/src/demos/Examples/MarkdownShortcuts/index.vue index f67923d3..d2176b57 100644 --- a/docs/src/demos/Examples/MarkdownShortcuts/index.vue +++ b/docs/src/demos/Examples/MarkdownShortcuts/index.vue @@ -6,6 +6,8 @@ + + diff --git a/docs/src/demos/Examples/Minimalist/index.vue b/docs/src/demos/Examples/Minimalist/index.vue index 9b676326..8f53dc21 100644 --- a/docs/src/demos/Examples/Minimalist/index.vue +++ b/docs/src/demos/Examples/Minimalist/index.vue @@ -42,3 +42,12 @@ export default { }, } + + diff --git a/docs/src/demos/Examples/ReadOnly/index.vue b/docs/src/demos/Examples/ReadOnly/index.vue index 08e61ba5..a4f16e8f 100644 --- a/docs/src/demos/Examples/ReadOnly/index.vue +++ b/docs/src/demos/Examples/ReadOnly/index.vue @@ -53,6 +53,13 @@ export default {