From 7b4cbd3f9501967560d90f18643fe97866be737b Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Sat, 23 Mar 2019 22:01:53 +0800 Subject: [PATCH] update --- source/less/_article.less | 37 +++++++++++++++++++++++++++++++++++++ source/less/_header.less | 37 ------------------------------------- 2 files changed, 37 insertions(+), 37 deletions(-) diff --git a/source/less/_article.less b/source/less/_article.less index 70e6385..faf7648 100755 --- a/source/less/_article.less +++ b/source/less/_article.less @@ -452,6 +452,43 @@ } + //代码块复制按钮 + .highlight{ + //方便copy代码按钮(btn-copy)的定位 + position: relative; + } + .btn-copy { + display: inline-block; + cursor: pointer; + background-color: #eee; + background-image: linear-gradient(#fcfcfc,#eee); + border: 1px solid #d5d5d5; + border-radius: 3px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + -webkit-appearance: none; + font-size: 13px; + font-weight: 700; + line-height: 20px; + color: #333; + -webkit-transition: opacity .3s ease-in-out; + -o-transition: opacity .3s ease-in-out; + transition: opacity .3s ease-in-out; + padding: 2px 6px; + position: absolute; + right: 5px; + top: 5px; + opacity: 0; + } + .btn-copy span { + margin-left: 5px; + } + .highlight:hover .btn-copy{ + opacity: 1; + } + /* Handle */ &::-webkit-scrollbar-thumb { diff --git a/source/less/_header.less b/source/less/_header.less index cf4f7fe..8d72f04 100755 --- a/source/less/_header.less +++ b/source/less/_header.less @@ -285,43 +285,6 @@ } } -//代码块复制按钮 -.highlight{ - //方便copy代码按钮(btn-copy)的定位 - position: relative; -} -.btn-copy { - display: inline-block; - cursor: pointer; - background-color: #eee; - background-image: linear-gradient(#fcfcfc,#eee); - border: 1px solid #d5d5d5; - border-radius: 3px; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - -webkit-appearance: none; - font-size: 13px; - font-weight: 700; - line-height: 20px; - color: #333; - -webkit-transition: opacity .3s ease-in-out; - -o-transition: opacity .3s ease-in-out; - transition: opacity .3s ease-in-out; - padding: 2px 6px; - position: absolute; - right: 5px; - top: 5px; - opacity: 0; -} -.btn-copy span { - margin-left: 5px; -} -.highlight:hover .btn-copy{ - opacity: 1; -} - .menu-phone{ .header{ border-top-left-radius: @border_radius;