From c20ddf8d51044ae6527bd10ea7c47bf7245571fe Mon Sep 17 00:00:00 2001 From: sorrycc Date: Tue, 14 Aug 2018 11:40:09 +0800 Subject: [PATCH] global.less don't need to wrap with :global --- src/global.less | 54 ++++++++++++++++++++++++------------------------- 1 file changed, 26 insertions(+), 28 deletions(-) diff --git a/src/global.less b/src/global.less index 9654700b..d7b0d770 100644 --- a/src/global.less +++ b/src/global.less @@ -1,35 +1,33 @@ -:global { - html, - body, - #root { - height: 100%; - } +html, +body, +#root { + height: 100%; +} - .colorWeak { - filter: invert(80%); - } +.colorWeak { + filter: invert(80%); +} - .ant-layout { - min-height: 100vh; - } +.ant-layout { + min-height: 100vh; +} - canvas { - display: block; - } +canvas { + display: block; +} - body { - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - } +body { + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} - .globalSpin { - width: 100%; - margin: 40px 0 !important; - } +.globalSpin { + width: 100%; + margin: 40px 0 !important; +} - // temp fix for https://github.com/ant-design/ant-design/commit/a1fafb5b727b62cb0be29ce6e9eca8f579d4f8b7 - .ant-spin-container { - overflow: visible !important; - } +// temp fix for https://github.com/ant-design/ant-design/commit/a1fafb5b727b62cb0be29ce6e9eca8f579d4f8b7 +.ant-spin-container { + overflow: visible !important; } -- GitLab