index.less 739 B

1234567891011121314151617181920212223242526272829303132333435
  1. @import "../styles/mixins/index.less";
  2. @import "../styles/themes/index.less";
  3. .@{wux-prefix}-toast {
  4. position: fixed;
  5. z-index: @z-index-toast;
  6. top: 50%;
  7. left: 50%;
  8. background: @toast-bg;
  9. font-size: @font-size-base;
  10. line-height: @line-height-base;
  11. text-align: center;
  12. border-radius: @border-radius-base;
  13. color: @text-color-inverse;
  14. transform: translate3d(-50%, -50%, 0);
  15. &__content {
  16. min-width: 118px;
  17. padding: 9px 15px;
  18. box-sizing: border-box;
  19. &--has-icon {
  20. padding: 15px;
  21. .@{wux-prefix}-toast__text {
  22. margin-top: 6px;
  23. }
  24. }
  25. }
  26. &__icon {
  27. margin: 0;
  28. display: block;
  29. }
  30. }