diff --git a/site/theme/static/demo.less b/site/theme/static/demo.less index f457341c17..c631e8148e 100644 --- a/site/theme/static/demo.less +++ b/site/theme/static/demo.less @@ -127,14 +127,18 @@ position: absolute; left: 0; top: 0; - &:hover { - opacity: 1; - } } .code-expand-icon-show { opacity: 0.55; pointer-events: auto; + &:hover { + opacity: 1; + } + } + + .code-expand-icon.ant-tooltip-open .code-expand-icon-show { + opacity: 1; } .code-expand-icon-hide {