Skip to content

Commit ccf5298

Browse files
guillep2klunny
authored andcommitted
Prevent .code-view from overriding font on icon fonts (#8614) (#8627)
1 parent ece768a commit ccf5298

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

public/css/index.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ footer .ui.left,footer .ui.right{line-height:40px}
239239
.lines-commit .ui.avatar.image{height:18px;width:18px}
240240
.lines-code .bottom-line,.lines-commit .bottom-line,.lines-num .bottom-line{border-bottom:1px solid #eaecef}
241241
.code-view{overflow:auto;overflow-x:auto;overflow-y:hidden}
242-
.code-view *{font-size:12px;font-family:'SF Mono',Consolas,Menlo,'Liberation Mono',Monaco,'Lucida Console',monospace;line-height:20px}
242+
.code-view :not(.fa):not(.octicon):not(.icon){font-size:12px;font-family:'SF Mono',Consolas,Menlo,'Liberation Mono',Monaco,'Lucida Console',monospace;line-height:20px}
243243
.code-view table{width:100%}
244244
.code-view .active{background:#fff866}
245245
.markdown:not(code){overflow:hidden;font-size:16px;line-height:1.6!important;word-wrap:break-word}

public/less/_base.less

+1-1
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,7 @@ footer {
10471047
overflow-x: auto;
10481048
overflow-y: hidden;
10491049

1050-
* {
1050+
*:not(.fa):not(.octicon):not(.icon) {
10511051
font-size: 12px;
10521052
font-family: @monospaced-fonts, monospace;
10531053
line-height: 20px;

0 commit comments

Comments
 (0)