From 4d414ea055e36c3d595d0045f0e97fe081e596d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Thu, 23 May 2019 11:01:08 +0800 Subject: [PATCH] fix copy block url style --- src/components/CopyBlock/index.less | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/CopyBlock/index.less b/src/components/CopyBlock/index.less index 68327401..32846160 100644 --- a/src/components/CopyBlock/index.less +++ b/src/components/CopyBlock/index.less @@ -1,5 +1,5 @@ .copy-block { - position: absolute; + position: fixed; right: 80px; bottom: 40px; display: flex; @@ -22,20 +22,20 @@ .ant-typography-copy { position: absolute; right: 5px; - bottom: 0px; + bottom: 0; } } .copy-block-code { - color: #fff; + display: inline-block; margin: 0 0.2em; padding: 0.2em 0.4em 0.1em; + color: #fff; font-size: 85%; background: rgba(0, 0, 0, 0.06); border-radius: 3px; - display: inline-block; } .copy-block-text { - font-size: 12px; margin: 0; + font-size: 12px; } } -- GitLab