From 090f25845c64662b6a60de6d10279b20b2feb246 Mon Sep 17 00:00:00 2001 From: ycjcl868 <45808948@qq.com> Date: Thu, 26 Dec 2019 15:59:50 +0800 Subject: [PATCH] fix: lint --- components/calendar/style/index.less | 2 +- site/theme/static/demo.less | 22 +++++++++++----------- site/theme/static/highlight.less | 4 ++-- site/theme/static/icon-pic-searcher.less | 2 +- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/components/calendar/style/index.less b/components/calendar/style/index.less index c67326ec2c..c8f68a3409 100644 --- a/components/calendar/style/index.less +++ b/components/calendar/style/index.less @@ -84,8 +84,8 @@ display: block; width: 100%; text-align: right; - border: 0; background: @calendar-full-bg; + border: 0; .@{calendar-picker-prefix-cls}-body { th, diff --git a/site/theme/static/demo.less b/site/theme/static/demo.less index 4151b211be..aa90355eb7 100644 --- a/site/theme/static/demo.less +++ b/site/theme/static/demo.less @@ -270,13 +270,13 @@ background: transparent url('https://gw.alipayobjects.com/zos/rmsportal/OtZslpOjYXijshDERXwc.svg') center / 14px no-repeat; + border: 0; + cursor: pointer; opacity: 0.65; + transition: all 0.3s; &:hover { opacity: 1; } - border: 0; - cursor: pointer; - transition: all 0.3s; } &-riddle { @@ -285,16 +285,16 @@ height: 20px; overflow: hidden; text-indent: -9999px; - opacity: 0.65; - &:hover { - opacity: 1; - } background: transparent url('https://gw.alipayobjects.com/zos/rmsportal/DlHbxMCyeuyOrqOdbgik.svg') center / 14px no-repeat; border: 0; cursor: pointer; + opacity: 0.65; transition: all 0.3s; + &:hover { + opacity: 1; + } } &-codesandbox { @@ -302,16 +302,16 @@ height: 20px; overflow: hidden; text-indent: -9999px; - opacity: 0.65; - &:hover { - opacity: 1; - } background: transparent url('https://gw.alipayobjects.com/zos/rmsportal/aaYmtdDyHSCkXyLZVgGK.svg') center / 14px no-repeat; border: 0; cursor: pointer; + opacity: 0.65; transition: all 0.3s; + &:hover { + opacity: 1; + } } .highlight-wrapper:hover &-code-copy, diff --git a/site/theme/static/highlight.less b/site/theme/static/highlight.less index 255405c3c7..829ae9828a 100644 --- a/site/theme/static/highlight.less +++ b/site/theme/static/highlight.less @@ -75,8 +75,8 @@ pre[class*='language-'] { [data-theme='dark'] :not(pre) > code[class*='language-'], [data-theme='dark'] pre[class*='language-'] { - background: #141414; color: rgba(255, 255, 255, 0.65); + background: #141414; } /* Inline code */ @@ -209,8 +209,8 @@ pre[class*='language-'] { .hljs { display: block; - overflow-x: auto; padding: 0.5em; + overflow-x: auto; color: #c0c5ce; background: #1c1d21; } diff --git a/site/theme/static/icon-pic-searcher.less b/site/theme/static/icon-pic-searcher.less index 36f1834cc2..bd1e7d5863 100644 --- a/site/theme/static/icon-pic-searcher.less +++ b/site/theme/static/icon-pic-searcher.less @@ -3,8 +3,8 @@ margin: 1px 8px; .icon-pic-btn { - cursor: pointer; color: @text-color-secondary; + cursor: pointer; transition: all 0.3s; &:hover { color: @input-icon-hover-color;