try to scope react styles
This commit is contained in:
@@ -10,7 +10,6 @@
|
|||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
margin: 1rem 0;
|
margin: 1rem 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
|
||||||
|
|
||||||
.label {
|
.label {
|
||||||
margin-left: 1rem;
|
margin-left: 1rem;
|
||||||
@@ -30,3 +29,4 @@
|
|||||||
margin-top: 1.5rem;
|
margin-top: 1.5rem;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { NodeViewWrapper, NodeViewContent } from '@tiptap/react'
|
|||||||
|
|
||||||
export default () => {
|
export default () => {
|
||||||
return (
|
return (
|
||||||
<NodeViewWrapper className="react-component">
|
<NodeViewWrapper className="react-component-with-content">
|
||||||
<span className="label">React Component</span>
|
<span className="label">React Component</span>
|
||||||
|
|
||||||
<NodeViewContent className="content" />
|
<NodeViewContent className="content" />
|
||||||
|
|||||||
@@ -5,12 +5,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.react-component {
|
.react-component-with-content {
|
||||||
border: 3px solid #0D0D0D;
|
border: 3px solid #0D0D0D;
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
margin: 1rem 0;
|
margin: 1rem 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
|
||||||
|
|
||||||
.label {
|
.label {
|
||||||
margin-left: 1rem;
|
margin-left: 1rem;
|
||||||
@@ -32,3 +31,5 @@
|
|||||||
border: 2px dashed #0D0D0D20;
|
border: 2px dashed #0D0D0D20;
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user