Browse Source

Optimize CSS/ 优化css

star7th 4 years ago
parent
commit
c94dd96ef3

+ 1 - 4
web_src/src/App.vue

@@ -10,7 +10,4 @@ export default {
 }
 </script>
 
-<style>
-@import '../static/css/common.css';
-@import '../static/highlight/a11y-light.min.css';
-</style>
+<style src="@/../static/css/common.css"></style>

+ 2 - 2
web_src/src/components/common/Editormd.vue

@@ -1,13 +1,13 @@
 <template>
   <div :id="id" class="main-editor">
-    <link href="static/editor.md/css/editormd.min.css" rel="stylesheet" />
-
     <textarea v-html="content" style="display:none;"></textarea>
 
     <!-- 放大图片 -->
     <BigImg v-if="showImg" @clickit="showImg = false" :imgSrc="imgSrc"></BigImg>
   </div>
 </template>
+<style src="@/../static/editor.md/css/editormd.min.css"></style>
+<style src="@/../static/highlight/a11y-light.min.css"></style>
 <style>
 .editormd-preview-container {
   min-height: 60%;

+ 1 - 1
web_src/static/editor.md/css/editormd.css

@@ -3081,7 +3081,7 @@
 @font-face {
   font-family: 'editormd-logo';
   src: url("../fonts/editormd-logo.eot?-5y8q6h");
-  src: url(".../fonts/editormd-logo.eot?#iefix-5y8q6h") format("embedded-opentype"), url("../fonts/editormd-logo.woff?-5y8q6h") format("woff"), url("../fonts/editormd-logo.ttf?-5y8q6h") format("truetype"), url("../fonts/editormd-logo.svg?-5y8q6h#icomoon") format("svg");
+  src: url("../fonts/editormd-logo.eot?#iefix-5y8q6h") format("embedded-opentype"), url("../fonts/editormd-logo.woff?-5y8q6h") format("woff"), url("../fonts/editormd-logo.ttf?-5y8q6h") format("truetype"), url("../fonts/editormd-logo.svg?-5y8q6h#icomoon") format("svg");
   font-weight: normal;
   font-style: normal;
 }

File diff suppressed because it is too large
+ 0 - 0
web_src/static/editor.md/css/editormd.min.css


Some files were not shown because too many files changed in this diff