index.less 937 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. @import "../styles/mixins/index.less";
  2. @import "../styles/themes/index.less";
  3. .@{wux-prefix}-toptips {
  4. position: fixed;
  5. top: 0;
  6. left: 0;
  7. right: 0;
  8. z-index: @z-index-toptips;
  9. &__content {
  10. padding: 5px;
  11. font-size: @toptips-font-size;
  12. color: @toptips-color;
  13. word-wrap: break-word;
  14. word-break: break-all;
  15. transition: background-color .3s;
  16. &--success {
  17. background-color: @toptips-success-bg;
  18. }
  19. &--info {
  20. background-color: @toptips-info-bg;
  21. }
  22. &--warn {
  23. background-color: @toptips-warn-bg;
  24. }
  25. &--cancel {
  26. background-color: @toptips-cancel-bg;
  27. }
  28. }
  29. &__icon {
  30. position: absolute;
  31. top: 50%;
  32. transform: translateY(-50%);
  33. }
  34. &__text {
  35. display: block;
  36. text-align: center;
  37. padding: 0 26px;
  38. }
  39. }