diff --git a/style/components/affix.less b/style/components/affix.less new file mode 100644 index 0000000000..c5e8cca7b1 --- /dev/null +++ b/style/components/affix.less @@ -0,0 +1,3 @@ +.ant-affix { + position: fixed; +} diff --git a/style/components/index.less b/style/components/index.less index b570a8feb1..9f1713900a 100644 --- a/style/components/index.less +++ b/style/components/index.less @@ -30,3 +30,4 @@ @import "carousel/slick"; @import "carousel/slick-theme"; @import "menu"; +@import "affix"; diff --git a/style/core/base.less b/style/core/base.less index eac808bfa2..f0df124a9d 100644 --- a/style/core/base.less +++ b/style/core/base.less @@ -98,6 +98,3 @@ a { .invisible { visibility: hidden; } -.affix { - position: fixed; -}