Skip to content

Commit 84af7fa

Browse files
author
Bart Ledoux
committed
chore: updgrade vue-live
1 parent b6a742a commit 84af7fa

File tree

3 files changed

+110
-117
lines changed

3 files changed

+110
-117
lines changed

layout.vue

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99
</div>
1010
</template>
1111

12+
<script>
13+
import "prismjs/themes/prism-tomorrow.css";
14+
import "vue-prism-editor/dist/prismeditor.min.css";
15+
16+
export default {};
17+
</script>
18+
1219
<style>
1320
.preview-code {
1421
display: flex;
@@ -22,10 +29,6 @@
2229
width: 50%;
2330
border-radius: 0;
2431
}
25-
.preview-code .editor .prism-editor-wrapper {
26-
height: 100%;
27-
display: flex;
28-
}
2932
3033
.preview-code .editor pre {
3134
margin: 0;
@@ -40,22 +43,14 @@
4043
padding: 12px;
4144
}
4245
43-
/* adjust editor */
44-
.prism-editor__line-numbers {
45-
text-align: right;
46-
}
47-
48-
/* when line numbers are on, reduce left padding */
49-
.prism-editor-wrapper .prism-editor__line-numbers ~ .prism-editor__code {
50-
padding-left: 0.5rem;
51-
}
52-
53-
.prism-editor__code {
54-
flex: 2;
46+
.preview-code .prism-editor-wrapper {
47+
color: white;
48+
padding: 0;
5549
}
5650
57-
.prism-editor__code:focus {
58-
outline: none;
51+
.preview-code .prism-editor-wrapper .prism-editor__textarea,
52+
.preview-code .prism-editor-wrapper .prism-editor__editor {
53+
padding: 20px;
5954
}
6055
6156
@media only screen and (max-width: 568px) {

0 commit comments

Comments
 (0)