badge.scss 889 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. .m-badge{
  2. position: relative;
  3. vertical-align: middle;
  4. display: inline-block;
  5. .m-badge__content{
  6. background-color: #f56c6c;
  7. border-radius: 10px;
  8. color: #fff;
  9. display: inline-block;
  10. font-size: 12px;
  11. height: 18px;
  12. line-height: 18px;
  13. padding: 0 6px;
  14. text-align: center;
  15. white-space: nowrap;
  16. border: 1px solid #fff;
  17. }
  18. .m-badge__content.is-fixed{
  19. position: absolute;
  20. top: 0;
  21. right: 10px;
  22. transform: translate(100%,-50%);
  23. }
  24. .m-badge__content.is-dot{
  25. height: 8px;
  26. width: 8px;
  27. padding: 0;
  28. right: 5px;
  29. border-radius: 50%;
  30. }
  31. .m-badge--primary{
  32. background-color: #409eff;
  33. }
  34. .m-badge--success{
  35. background-color: #67c23a;
  36. }
  37. .m-badge--warning{
  38. background-color: #e6a23c;
  39. }
  40. .m-badge--danger{
  41. background-color: #f56c6c;
  42. }
  43. .m-badge--info{
  44. background-color: #909399;
  45. }
  46. }