diff --git a/components/style/core/base.less b/components/style/core/base.less index c56ee7d4dd87..305f26ae37ed 100644 --- a/components/style/core/base.less +++ b/components/style/core/base.less @@ -8,7 +8,7 @@ // Normalize is licensed MIT. https://github.com/necolas/normalize.css // HTML & Body reset -html, +@{html-selector}, body { .square(100%); } @@ -35,7 +35,7 @@ input::-ms-reveal { box-sizing: border-box; // 1 } -html { +@{html-selector} { font-family: sans-serif; // 2 line-height: 1.15; // 3 -webkit-text-size-adjust: 100%; // 4 @@ -368,7 +368,7 @@ select { // controls in Android 4. // 2. Correct the inability to style clickable types in iOS and Safari. button, -html [type="button"], /* 1 */ +@{html-selector} [type="button"], /* 1 */ [type="reset"], [type="submit"] { -webkit-appearance: button; // 2 diff --git a/components/style/themes/default.less b/components/style/themes/default.less index 273a784f1f03..c2fc156c5e3e 100644 --- a/components/style/themes/default.less +++ b/components/style/themes/default.less @@ -4,6 +4,9 @@ // The prefix to use on all css classes from ant. @ant-prefix: ant; +// An override for the html selector for theme prefixes +@html-selector: html; + // -------- Colors ----------- @primary-color: @blue-6; @info-color: @blue-6;