king
2025-04-21 f3d4db769ba9b51b799d981511a710fd443d0e08
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
.code-mirror-wrap {
  font-size : 14px;
  line-height : 25px;
  position: relative;
  .anticon-format-painter {
    position: absolute;
    z-index: 10;
    right: 10px;
    top: 35px;
    font-size: 18px;
    opacity: 0.7;
    color: orange;
    cursor: pointer;
    transition: opacity 0.3s;
  }
  .anticon-fullscreen {
    position: absolute;
    z-index: 10;
    right: 10px;
    top: 5px;
    font-size: 18px;
    opacity: 0.7;
    color: #1890ff;
    cursor: pointer;
    transition: opacity 0.3s;
  }
  .anticon-fullscreen:hover {
    opacity: 1;
  }
  .anticon-fullscreen-exit {
    position: fixed;
    z-index: 13;
    right: 10px;
    top: 5px;
    font-size: 20px;
    opacity: 0.7;
    color: #1890ff;
    cursor: pointer;
    transition: opacity 0.3s;
    display: none;
  }
  .anticon-fullscreen-exit:hover {
    opacity: 1;
  }
  .anticon-font-size {
    position: fixed;
    z-index: 11;
    right: 10px;
    top: 65px;
    font-size: 20px;
    opacity: 0.7;
    color: #1890ff;
    cursor: pointer;
    transition: opacity 0.3s;
  }
  .anticon-font-size:hover {
    opacity: 1;
  }
  .code-mirror-area {
    border-radius: 4px;
    border: 1px solid #d9d9d9;
    .CodeMirror {
      border-radius: 4px;
      min-height: 100px;
    }
    .CodeMirror-fullscreen.CodeMirror {
      border-radius: 0;
      position: fixed;
      z-index: 12;
    }
    .CodeMirror-linenumber {
      font-size: 14px;
    }
  
    // 重置模态框滚动条
    .CodeMirror-vscrollbar::-webkit-scrollbar {
      width: 7px;
    }
    .CodeMirror-vscrollbar::-webkit-scrollbar-thumb {
      border-radius: 4px;
      box-shadow: inset 0 0 5px #bfbfbf;
      background: #bfbfbf;
    }
    .CodeMirror-vscrollbar::-webkit-scrollbar-track {
      box-shadow: inset 0 0 5px #f5f5f5;
      border-radius: 4px;
      border: 1px solid rgba(255, 255, 255, 0.93);
      background: #f5f5f5;
    }
  }
  .anticon-swap {
    position: absolute;
    left: -25px;
    top: 40px;
    color: #13c2c2;
    font-size: 16px;
  }
}
.code-mirror-wrap.mk-fullscreen {
  .anticon-format-painter {
    position: fixed;
    z-index: 11;
  }
  .anticon-fullscreen-exit {
    display: inline-block;
  }
  .anticon-font-size {
    z-index: 13;
  }
  .anticon-fullscreen {
    display: none;
  }
 
  .anticon-swap {
    position: fixed;
    z-index: 11;
    left: auto;
    right: 10px;
    top: auto;
    bottom: 20px;
  }
}
.model-custom-scripts-modal .code-mirror-wrap:not(.mk-fullscreen), .model-custom-view-scripts-modal .code-mirror-wrap:not(.mk-fullscreen) {
  .anticon-swap {
    position: absolute;
    z-index: 11;
    left: auto;
    right: 10px;
    top: auto;
    bottom: 20px;
  }
}
.mk-mirror-font {
  z-index: 1200!important;
}