From 1f461034553c9278910e439c0029cf250bd2666a Mon Sep 17 00:00:00 2001 From: 2betop <2betop.cn@gmail.com> Date: Mon, 8 Jun 2020 17:28:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=8F=E5=B0=91=E4=B8=80=E5=A4=84=E5=AF=B9fo?= =?UTF-8?q?ntawesome=20=E7=9A=84=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scss/_variables.scss | 4 +--- scss/layout/_aside.scss | 12 ++++++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/scss/_variables.scss b/scss/_variables.scss index ee37e8c2b..2eb045370 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -168,9 +168,7 @@ $Layout-asideLink-fontSize: $fontSizeBase !default; $Layout-asideLink-color: #b4b6bd !default; $Layout-asideLink-onHover-color: #fff !default; $Layout-asideLink-onActive-color: #fff !default; -$Layout-asideLink-arrowVendor: 'FontAwesome' !default; -$Layout-asideLink-arrowFontSize: $fontFamilyBase !default; -$Layout-asideLink-arrowIcon: '\f105' !default; + $Layout-asideLink-arrowColor: $Layout-asideLink-color !default; $Layout-asideLink-onActive-arrowColor: $Layout-asideLink-onActive-color !default; $Layout-asideLabel-color: darken($Layout-aside-color, 10%) !default; diff --git a/scss/layout/_aside.scss b/scss/layout/_aside.scss index 8548bce25..c1dc9dc7c 100644 --- a/scss/layout/_aside.scss +++ b/scss/layout/_aside.scss @@ -22,14 +22,18 @@ width: px2rem(20px); text-align: center; line-height: px2rem(17px); + margin-top: px2rem(2px); &::before { - content: $Layout-asideLink-arrowIcon; + content: ''; display: inline-block; - font-family: $Layout-asideLink-arrowVendor; transform-origin: center; - color: $Layout-asideLink-arrowColor; - font-size: $Layout-asideLink-arrowFontSize; + transition: transform 0.2s ease; + background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgNTEzIDEwMjEiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+Cgk8ZyBpZD0icmlnaHQtYXJyb3ciIGZpbGw9IiNmZmZmZmYiIGZpbGwtcnVsZT0ibm9uemVybyI+CgkJPHBhdGggZD0iTTU2LjU1OTA1NCwxMDEzLjc3MzY5IEw1MTIuOTA4MTE2LDUxMi42ODQ1MjQgTDU2LjU1OTA1NCwxMi4yMzQ1MDEgQzQ5LjQxMTQ2NzgsMi45MzQ1NTkxMiAzNy42NjY0MjM4LC0xLjU5MTg4MTc2IDI2LjEyNjIzMjQsMC41MDU5NDgyNDYgQzE0LjU4NjA0MSwyLjYwMzc3ODI1IDUuMTg1NDQ0MDksMTAuOTc0MTcyNyAxLjc2ODE1NTE2LDIyLjE5NDY0NzEgQy0xLjY0OTEzMzc3LDMzLjQxNTEyMTQgMS40ODk4MDIyOCw0NS42MDQ1MzUxIDkuOTAxNTE2LDUzLjc3ODg4NCBMNDI0LjcwNjE5Nyw1MTIuNjg0NTI0IEwxMi40NTgwOTQsOTY5LjY3MjczMSBDMi40NTgyMDU5Niw5ODIuNTUxNDk4IDQuMDEyOTc3MzcsMTAwMC45NDgzIDE2LjAzMjQ0MjIsMTAxMS45NjYxNSBDMjguMDUxOTA3MSwxMDIyLjk4Mzk5IDQ2LjUxNDIzNDYsMTAyMi45MzYxOSA1OC40NzY0ODcsMTAxMS44NTYyNiBMNTYuNTU5MDU0LDEwMTMuNzczNjkgWiIgaWQ9Iui3r+W+hCI+CgkJPC9wYXRoPgoJPC9nPgo8L3N2Zz4K); + width: px2rem(10px); + height: px2rem(10px); + background-position: center center; + background-repeat: no-repeat; } .#{$ns}AsideNav-item.is-open > a > &::before {