File tree Expand file tree Collapse file tree 3 files changed +110
-117
lines changed Expand file tree Collapse file tree 3 files changed +110
-117
lines changed Original file line number Diff line number Diff line change 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 ;
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 ;
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 ) {
You can’t perform that action at this time.
0 commit comments