Skip to content

Commit ab1ab0f

Browse files
zeripathguillep2k
authored andcommitted
Prevent .code-view from overriding font on icon fonts (go-gitea#8614)
1 parent 3db7c21 commit ab1ab0f

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
@@ -243,7 +243,7 @@ i.icon.centerlock{top:1.5em}
243243
.lines-commit .ui.avatar.image{height:18px;width:18px}
244244
.lines-code .bottom-line,.lines-commit .bottom-line,.lines-num .bottom-line{border-bottom:1px solid #eaecef}
245245
.code-view{overflow:auto;overflow-x:auto;overflow-y:hidden}
246-
.code-view *{font-size:12px;font-family:'SF Mono',Consolas,Menlo,'Liberation Mono',Monaco,'Lucida Console',monospace;line-height:20px}
246+
.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}
247247
.code-view table{width:100%}
248248
.code-view .active{background:#fff866}
249249
.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
@@ -1063,7 +1063,7 @@ i.icon.centerlock {
10631063
overflow-x: auto;
10641064
overflow-y: hidden;
10651065

1066-
* {
1066+
*:not(.fa):not(.octicon):not(.icon) {
10671067
font-size: 12px;
10681068
font-family: @monospaced-fonts, monospace;
10691069
line-height: 20px;

0 commit comments

Comments
 (0)