replace hint component

This commit is contained in:
Philipp Kühn
2020-08-18 20:51:01 +02:00
parent 5766f88beb
commit de622ce468
5 changed files with 18 additions and 32 deletions

View File

@@ -1,17 +0,0 @@
<template>
<div :class="`hint hint--${type}`">
<slot />
</div>
</template>
<script>
export default {
props: {
type: {
type: String,
}
}
}
</script>
<style lang="scss" src="./style.scss" scoped></style>

View File

@@ -1,10 +0,0 @@
.hint {
padding: 1rem;
border: 2px solid rgba($colorBlack, 0.1);
border-radius: 0.25rem;
&--warning {
border-color:#ffd8a8;
background-color: #fff4e6;
}
}

View File

@@ -22,11 +22,9 @@ Create a new Vue component (you can call it `<Tiptap />`) and add the following
<demo name="GettingStarted" />
<Hint type="warning">
::: warning Using with Nuxt.js
If you are using **Nuxt.js**, note that tiptap needs to run in the client, not on the server. Wrapping the editor in a `<client-only>` tag is **required**.
</Hint>
:::
Congrats! Youve got it! 🎉 Lets start to build your editor in the next step.

View File

@@ -10,7 +10,6 @@ import ReactRenderer from '~/components/ReactRenderer'
export default function (Vue, { router, head, isClient }) {
Vue.component('Layout', App)
Vue.component('Demo', Demo)
Vue.component('Hint', Hint)
Vue.component('Tab', Tab)
Vue.component('ReactRenderer', ReactRenderer)
}

View File

@@ -142,5 +142,21 @@
}
}
.remark-container {
padding: 1rem;
border: 2px solid rgba($colorBlack, 0.1);
border-radius: 0.25rem;
&.warning {
border-color:#ffd8a8;
background-color: #fff4e6;
}
.remark-container-title {
font-weight: 600;
color: #ca9c63;
}
}
}
}