diff options
author | zeripath <art27@cantab.net> | 2019-10-21 23:23:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-21 23:23:35 +0100 |
commit | 2f9a66a76c73f8fa03147d47efb338798b68c3a5 (patch) | |
tree | 8dfa5b800a39755b5d19e6a89a2d4e44ba53873e /public | |
parent | d8161ee3fd5d2991f70523b03421af4e6cf5b513 (diff) | |
download | gitea-2f9a66a76c73f8fa03147d47efb338798b68c3a5.tar.gz gitea-2f9a66a76c73f8fa03147d47efb338798b68c3a5.zip |
Prevent .code-view from overriding font on icon fonts (#8614)
Diffstat (limited to 'public')
-rw-r--r-- | public/css/index.css | 2 | ||||
-rw-r--r-- | public/less/_base.less | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/public/css/index.css b/public/css/index.css index 03a199d0b9..9292604422 100644 --- a/public/css/index.css +++ b/public/css/index.css @@ -243,7 +243,7 @@ i.icon.centerlock{top:1.5em} .lines-commit .ui.avatar.image{height:18px;width:18px} .lines-code .bottom-line,.lines-commit .bottom-line,.lines-num .bottom-line{border-bottom:1px solid #eaecef} .code-view{overflow:auto;overflow-x:auto;overflow-y:hidden} -.code-view *{font-size:12px;font-family:'SF Mono',Consolas,Menlo,'Liberation Mono',Monaco,'Lucida Console',monospace;line-height:20px} +.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} .code-view table{width:100%} .code-view .active{background:#fff866} .markdown:not(code){overflow:hidden;font-size:16px;line-height:1.6!important;word-wrap:break-word} diff --git a/public/less/_base.less b/public/less/_base.less index 62b2084a3b..1a386f17b0 100644 --- a/public/less/_base.less +++ b/public/less/_base.less @@ -1063,7 +1063,7 @@ i.icon.centerlock { overflow-x: auto; overflow-y: hidden; - * { + *:not(.fa):not(.octicon):not(.icon) { font-size: 12px; font-family: @monospaced-fonts, monospace; line-height: 20px; |