Skip to content

Commit

Permalink
Merge pull request #15613 from krokofant/master
Browse files Browse the repository at this point in the history
Enable theme switching by html-prefix
  • Loading branch information
afc163 committed Apr 5, 2019
2 parents 89dd827 + 637b2e3 commit 659efe0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/style/core/base.less
Expand Up @@ -8,7 +8,7 @@
// Normalize is licensed MIT. https://github.com/necolas/normalize.css

// HTML & Body reset
html,
@{html-selector},
body {
.square(100%);
}
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions components/style/themes/default.less
Expand Up @@ -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;
Expand Down

0 comments on commit 659efe0

Please sign in to comment.