From f23ea6b8d9ad888b5fb96213c31fad50e683362d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Thu, 12 Jul 2018 10:05:50 +0800 Subject: [PATCH] style:fix Global.less does not work --- src/global.less | 54 +++++++++++++++++++++++++------------------------ 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/src/global.less b/src/global.less index d7b0d770..9654700b 100644 --- a/src/global.less +++ b/src/global.less @@ -1,33 +1,35 @@ -html, -body, -#root { - height: 100%; -} +:global { + 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