浏览代码

分页组件样式调整,快讯页面样式代码调整。

yangc 8 年之前
父节点
当前提交
ec9dc0a9a2
共有 4 个文件被更改,包括 11 次插入19 次删除
  1. 5 0
      components/common/page/pageComponent.vue
  2. 1 2
      components/news/Right.vue
  3. 1 7
      pages/news/_id.vue
  4. 4 10
      pages/news/index.vue

+ 5 - 0
components/common/page/pageComponent.vue

@@ -43,6 +43,11 @@
   .ivu-page >li{
   .ivu-page >li{
     margin: 0!important;
     margin: 0!important;
   }
   }
+  .ivu-page >li:hover{
+    color: #23527c;
+    background-color: #eee;
+  }
+
   .ivu-page-item-jump-next, .ivu-page-item, .ivu-page-item-jump-prev, .ivu-page-next, .ivu-page-prev {
   .ivu-page-item-jump-next, .ivu-page-item, .ivu-page-item-jump-prev, .ivu-page-next, .ivu-page-prev {
     width: 33.64px;
     width: 33.64px;
     height: 30.8px!important;
     height: 30.8px!important;

+ 1 - 2
components/news/Right.vue

@@ -69,7 +69,7 @@
 
 
 </script>
 </script>
 
 
-<style>
+<style scoped>
   .news-content{
   .news-content{
     padding-left: 0;
     padding-left: 0;
     float: right;
     float: right;
@@ -79,7 +79,6 @@
   .news-content h4{
   .news-content h4{
     border-bottom: #e8e8e8 1px solid;
     border-bottom: #e8e8e8 1px solid;
     line-height: 40px;
     line-height: 40px;
-    font-size: 18px!important;
     margin: 0;
     margin: 0;
   }
   }
   .news-content h4 span.label{
   .news-content h4 span.label{

+ 1 - 7
pages/news/_id.vue

@@ -24,14 +24,8 @@
     }
     }
   }
   }
 </script>
 </script>
-<style >
+<style scoped>
 .menu-title{
 .menu-title{
   margin-top: 20px;
   margin-top: 20px;
 }
 }
-.container {
-  padding-right: 15px;
-  padding-left: 15px;
-  margin-right: auto;
-  margin-left: auto;
-}
 </style>
 </style>

+ 4 - 10
pages/news/index.vue

@@ -7,6 +7,7 @@
 
 
 <script>
 <script>
   import { Left, Right } from '~components/news'
   import { Left, Right } from '~components/news'
+  import 'bootstrap/dist/css/bootstrap.min.css'
   export default {
   export default {
     layout: 'main',
     layout: 'main',
     data () {
     data () {
@@ -35,8 +36,8 @@
   }
   }
 </script>
 </script>
 
 
-<style>
-  .clearfix, .nav-list{
+<style scoped>
+  /*.clearfix, .nav-list{
     font-size: 14px!important;
     font-size: 14px!important;
   }
   }
   .footer .item{
   .footer .item{
@@ -45,14 +46,7 @@
   .navbar{
   .navbar{
     height: 36px!important;
     height: 36px!important;
     min-height: 36px!important;
     min-height: 36px!important;
-  }
-  .news-container{
-    font: 100%/1.2 verdana, "Microsoft YaHei", '宋体', serif;
-  }
-  .news-container a:hover{
-    text-decoration: underline;
-  }
-
+  }*/
   div{
   div{
     display: block;
     display: block;
   }
   }