diff --git a/components/back-top/style/index.less b/components/back-top/style/index.less index d37017eb54..27d59ff6df 100644 --- a/components/back-top/style/index.less +++ b/components/back-top/style/index.less @@ -36,3 +36,5 @@ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAoCAYAAACWwljjAAAABGdBTUEAALGPC/xhBQAAAbtJREFUWAntmMtKw0AUhhMvS5cuxILgQlRUpIggIoKIIoigG1eC+AA+jo+i6FIXBfeuXIgoeKVeitVWJX5HWhhDksnUpp3FDPyZk3Nm5nycmZKkXhAEOXSA3lG7muTeRzmfy6HneUvIhnYkQK+Q9NhAA0Opg0vBEhjBKHiyb8iGMyQMOYuK41BcBSypAL+MYXSKjtFAW7EAGEO3qN4uMQbbAkXiSfRQJ1H6a+yhlkKRcAoVFYiweYNjtCVQJJpBz2GCiPt7fBOZQpFgDpUikse5HgnkM4Fi4QX0Fpc5wf9EbLqpUCy4jMoJSXWhFwbMNgWKhVbRhy5jirhs9fy/oFhgHVVTJEs7RLZ8sSEoJm6iz7SZDMbJ+/OKERQTttCXQRLToRUmrKWCYuA2+jbN0MB4OQobYShfdTCgn/sL1K36M7TLrN3n+758aPy2rrpR6+/od5E8tf/A1uLS9aId5T7J3CNYihkQ4D9PiMdMC7mp4rjB9kjFjZp8BlnVHJBuO1yFXIV0FdDF3RlyFdJVQBdv5AxVdIsq8apiZ2PyYO1EVykesGfZEESsCkweyR8MUW+V8uJ1gkYipmpdP1pm2aJVPEGzAAAAAElFTkSuQmCC) ~"100%/100%" no-repeat; } } + +@import './responsive'; diff --git a/components/back-top/style/responsive.less b/components/back-top/style/responsive.less new file mode 100644 index 0000000000..7b21a85009 --- /dev/null +++ b/components/back-top/style/responsive.less @@ -0,0 +1,11 @@ +@media screen and (max-width: @screen-md) { + .@{backtop-prefix-cls} { + right: 60px; + } +} + +@media screen and (max-width: @screen-xs) { + .@{backtop-prefix-cls} { + right: 20px; + } +}