Skip to content

Commit f5d40e7

Browse files
committed
Scoped CSS
1 parent 3f17a88 commit f5d40e7

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

src/components/Dialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</div>
2929
</template>
3030

31-
<style>
31+
<style scoped>
3232
.mp-dialog-mask {
3333
position: fixed;
3434
z-index: 9998;

src/components/InputArea.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
</template>
1111

1212
<style>
13-
#mp-input-area {
14-
height: 100%;
15-
}
1613
/* hack CodeMirror */
1714
.CodeMirror {
1815
height: 100% !important;
@@ -29,6 +26,12 @@
2926
}
3027
</style>
3128

29+
<style scoped>
30+
#mp-input-area {
31+
height: 100%;
32+
}
33+
</style>
34+
3235
<script>
3336
import {codemirror} from 'vue-codemirror-lite'
3437
import 'codemirror/mode/markdown/markdown.js'

src/components/MarkdownPalettes.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
</div>
3131
</template>
3232

33-
<style>
33+
<style scoped>
3434
#mp-editor-toolbar {
3535
float: left;
3636
width: 100%;

src/components/PreviewArea.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
</div>
55
</template>
66

7-
<style>
7+
<style scoped>
88
#mp-preview-content {
99
color: #333;
1010
padding: 10px;

src/components/Toolbar.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
</div>
1212
</template>
1313

14-
<style>
15-
14+
<style scoped>
1615
#mp-toolbar {
1716
box-sizing: border-box;
1817
background-color: white;

0 commit comments

Comments
 (0)