瀏覽代碼

fix style

Gerald 8 年之前
父節點
當前提交
982e869ce1
共有 4 個文件被更改,包括 7 次插入16 次删除
  1. 3 7
      src/options/style.css
  2. 2 1
      src/options/views/app.vue
  3. 1 5
      src/options/views/edit/settings.vue
  4. 1 3
      src/popup/views/app.vue

+ 3 - 7
src/options/style.css

@@ -33,13 +33,9 @@ hr {
   border: none;
   border-top: 1px solid darkgray;
 }
-fieldset {
-  padding: .3rem;
-  margin-top: .5rem;
-  border: 1px solid silver;
-  textarea {
-    height: 5em;
-  }
+textarea {
+  display: block;
+  width: 100%;
 }
 
 .pull-left {

+ 2 - 1
src/options/views/app.vue

@@ -2,7 +2,6 @@
 import { store } from '../utils';
 import Main from './main';
 import Confirm from './confirm';
-import '../style.css';
 
 const components = {
   Main,
@@ -17,3 +16,5 @@ export default {
   },
 };
 </script>
+
+<style src="../style.css"></style>

+ 1 - 5
src/options/views/edit/settings.vue

@@ -132,8 +132,7 @@ export default {
     flex: 1;
   }
   > textarea {
-    display: block;
-    width: 100%;
+    min-height: 5em;
   }
   > .hint {
     display: none;
@@ -161,8 +160,5 @@ export default {
   &:hover > .hint {
     display: block;
   }
-  > textarea {
-    min-height: 5em;
-  }
 }
 </style>

+ 1 - 3
src/popup/views/app.vue

@@ -164,6 +164,4 @@ export default {
 };
 </script>
 
-<style>
-@import '../style.css';
-</style>
+<style src="../style.css"></style>