zhengyiming
12 小时以前 d7c8a3a9e1fc5c8e596a17cdadb7079d20e52297
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// viewUi中buttonGroup下几个button的focus状态下样式存在问题,后边的会覆盖前边的box-shadow,这里给focus元素添加z-index.
 
.ivu-btn:focus {
  z-index: 2;
  box-shadow: 0 0 0 2px rgb(45 140 240 / 20%);
}
 
.preview-modal-wrap {
  overflow: hidden;
 
  .ivu-modal-body {
    display: flex;
    //滚动条移动上去才展示,移开不展示滚动条
    overflow: overlay;
    padding: 0;
    max-height: calc(100vh - 51px);
 
    &::-webkit-scrollbar {
      width: 4px;
      background-color: #efeae6;
    }
 
    &:hover ::-webkit-scrollbar-track-piece {
      /* 滚动条的背景颜色 */
      border-radius: 6px;
 
      /* 鼠标移动上去再显示滚动条 */
      background-color: #ffffff;
 
      /* 滚动条的圆角宽度 */
    }
 
    &:hover::-webkit-scrollbar-thumb:hover {
      background-color: #c1c1c1;
    }
 
    &:hover::-webkit-scrollbar-thumb:vertical {
      border: 2px solid #c1c1c1;
      border-radius: 6px;
      background-color: #c1c1c1;
      outline: 2px solid #c1c1c1;
      outline-offset: -2px;
    }
  }
 
  .ivu-modal-content {
    border-radius: 6px 6px 0 0;
  }
 
  .ivu-modal {
    top: 0;
  }
}