From 71e1e20e01e3e068018c3beb7e23437521f319db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Fri, 17 Apr 2020 23:35:07 +0200 Subject: [PATCH] change prism highlighting --- docs/src/components/Demo/index.vue | 1 + docs/src/components/Demo/style.scss | 18 +-- docs/src/data/install.md | 2 +- docs/src/layouts/App/base.scss | 2 +- docs/src/layouts/App/index.vue | 1 + docs/src/layouts/App/prism.scss | 217 ++++++++++++++++++++++++++++ docs/src/main.js | 2 +- 7 files changed, 228 insertions(+), 15 deletions(-) create mode 100644 docs/src/layouts/App/prism.scss diff --git a/docs/src/components/Demo/index.vue b/docs/src/components/Demo/index.vue index 8d64ab266..70bc23927 100644 --- a/docs/src/components/Demo/index.vue +++ b/docs/src/components/Demo/index.vue @@ -53,6 +53,7 @@ export default { jsx: 'jsx', vue: 'markup', css: 'css', + scss: 'scss', }, } }, diff --git a/docs/src/components/Demo/style.scss b/docs/src/components/Demo/style.scss index 98a54c210..48890509a 100644 --- a/docs/src/components/Demo/style.scss +++ b/docs/src/components/Demo/style.scss @@ -14,17 +14,17 @@ } &__source { - background-color: $colorLightGrey; + background-color: $colorBlack; } &__tabs { padding: 0 1.5rem; - border-bottom: 1px solid rgba($colorBlack, 0.05); + border-bottom: 2px solid rgba($colorWhite, 0.1); } &__tab { position: relative; - color: rgba($colorBlack, 0.5); + color: rgba($colorWhite, 0.5); font: inherit; font-weight: 500; padding: 0.75rem 0; @@ -34,16 +34,16 @@ margin-right: 1rem; &.is-active { - color: $colorBlack; + color: $colorWhite; &::after { content: ''; position: absolute; - bottom: -1px; + bottom: -2px; left: 0; width: 100%; height: 2px; - background-color: $colorBlack; + background-color: $colorWhite; } } } @@ -54,11 +54,5 @@ code, pre { padding: 0; } - - [class*="language-"] { - background: none; - border: none; - box-shadow: none; - } } } \ No newline at end of file diff --git a/docs/src/data/install.md b/docs/src/data/install.md index 8e9886cfc..38deaad46 100644 --- a/docs/src/data/install.md +++ b/docs/src/data/install.md @@ -3,7 +3,7 @@ title: Install slug: install --- -``` +```bash # Using npm npm install @tiptap/core diff --git a/docs/src/layouts/App/base.scss b/docs/src/layouts/App/base.scss index c353504c1..b0f691cac 100644 --- a/docs/src/layouts/App/base.scss +++ b/docs/src/layouts/App/base.scss @@ -73,4 +73,4 @@ p { .is-active { background: black; color: white; -} +} \ No newline at end of file diff --git a/docs/src/layouts/App/index.vue b/docs/src/layouts/App/index.vue index 0ac3cd2a3..2ae08855d 100644 --- a/docs/src/layouts/App/index.vue +++ b/docs/src/layouts/App/index.vue @@ -47,4 +47,5 @@ query {