Skip to content

Commit fb395db

Browse files
committed
feat(CodeReview): 优化边框线
1 parent 152107b commit fb395db

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

packages/devui-vue/devui/code-review/src/code-review.scss

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@
183183
content: '';
184184
}
185185

186-
.d2h-code-linenumber{
187-
border-right: 1px solid transparent;
186+
.d2h-code-linenumber {
187+
border-right: 2px solid transparent;
188188
}
189189

190190
.d2h-code-line-ctn {
@@ -227,9 +227,9 @@
227227
display: table-cell;
228228
}
229229

230-
&.d-code-left:nth-of-type(1),
231-
&.d-code-right:nth-of-type(3) {
232-
border-right: 1px solid transparent;
230+
.d-code-left:nth-of-type(2) > .d2h-code-side-line,
231+
.d-code-right:nth-of-type(4) > .d2h-code-side-line {
232+
border-left: 2px solid transparent;
233233
}
234234
}
235235

@@ -279,13 +279,13 @@
279279
}
280280
}
281281

282-
&.d2h-code-linenumber{
283-
border-right: 1px solid #fe7300 !important;
282+
&.d2h-code-linenumber {
283+
border-right: 2px solid #fe7300;
284284
}
285285

286-
&.d-code-left:nth-of-type(1),
287-
&.d-code-right:nth-of-type(3) {
288-
border-right: 1px solid #fe7300 !important;
286+
&.d-code-left:nth-of-type(2) > .d2h-code-side-line,
287+
&.d-code-right:nth-of-type(4) > .d2h-code-side-line {
288+
border-left: 2px solid #fe7300;
289289
}
290290
}
291291
}

0 commit comments

Comments
 (0)