Browse Source

添加树形结构被选中的效果

hangb 8 years ago
parent
commit
c7fb497b7d
1 changed files with 85 additions and 8 deletions
  1. 85 8
      assets/scss/common.scss

+ 85 - 8
assets/scss/common.scss

@@ -304,6 +304,9 @@
 .el-tree-node__content:hover span{
   color: #5078cb;
 }
+.is-current>div.el-tree-node__content:first-child{
+  color: #5078cb;
+}
 .el-pagination .el-pager li.active{
   background-color: #5078cb;
   border-color: #337ab7;
@@ -343,18 +346,92 @@ div.el-tree-node__content{
 .dialog .el-dialog__body{
   padding: 0 !important;
 }
-/*查看*/
-.messageBoard .img-item .preview {
-  display: none;
+
+/*查看大图*/
+#image-box .x-floating-wrap,.image-box .x-floating-wrap {
+  position: fixed;
+  z-index: 99998;
+  background: #000;
+  top: 0;
+  left: 0;
+  width: 100%;
+  height: 100%;
+  opacity: 0.5;
+}
+#image-box,.image-box{
+  display:table; overflow:hidden; margin-left:50px; _position:relative;  width: 1200px;height: 700px;
+  position: fixed;
+  top: 50%;
+  margin-top: -350px;
+  left: 50%;
+  margin-left: -600px;
+  z-index: 2020;
+}
+#image-box .x-floating,.image-box .x-floating {
+  vertical-align:middle !important;
+  display:table-cell;
+  text-align:center;
+  _position:absolute;
+  _top:50%; _left:50%;
+  top: inherit !important;
+  left: inherit !important;
+}
+#image-box .x-floating img ,.image-box .x-floating img {
+  margin: auto auto;
+  max-width: 970px !important;
+  max-height: 600px !important;
+  -webkit-user-select: none;
+  -moz-user-select: none;
+  -ms-user-select: none;
+  user-select: none;
+}
+#image-box .x-floating-wrap,.image-box .x-floating-wrap{
+  z-index: 1000000 !important;
+}
+#item-content{
+  color:#fff; display:inline-block; _position:relative; _top:-50%; _left:-50%;
+  position: relative;
+  z-index: 10000000;
+}
+#item-content div.x-close-wrap{
   position: absolute;
-  top: 27px;
-  right: 16px;
-  z-index: 1000;
+  right: -15px;
+  line-height: 30px;
+  top: -13px;
   color: #fff;
+  width: 35px;
+  height: 35px;
+  background: rgba(0, 0, 0, 0.5);
+  border-radius: 100%;
+  opacity: 1;
+  margin: 0;
+  z-index: 100000;
+  min-height: initial;
+  text-align: center;
 }
-.messageBoard .img-item:hover .preview {
-  display: block;
+#item-content div.x-close-wrap a{
+  position: relative;
+  left: 0;
+  bottom: 0;
+  font-size: 34px;
+  color: #fff;
 }
+#item-content div.x-close-wrap a:hover{
+  color: #fff !important;
+}
+#item-content div.x-close-wrap:hover{
+  cursor: pointer;
+  opacity: .9;
+}
+#item-content div.x-close-wrap img{
+  width: 30px !important;
+  height: 30px !important;
+}
+#item-content .img{
+  position: relative;
+  z-index: 10;
+}
+
 
 /*查看大图*/
 #image-box .x-floating-wrap,.image-box .x-floating-wrap {