Merge pull request #15613 from krokofant/master

Enable theme switching by html-prefix
This commit is contained in:
偏右 2019-04-05 16:15:36 +08:00 committed by GitHub
commit 659efe05a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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;