alert.scss 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. .m-alert{
  2. width: 100%;
  3. padding: 8px 16px;
  4. margin: 10px 0;
  5. box-sizing: border-box;
  6. border-radius: 4px;
  7. position: relative;
  8. background-color: #fff;
  9. overflow: hidden;
  10. opacity: 1;
  11. display: flex;
  12. align-items: center;
  13. transition: opacity .2s;
  14. .m-alert__icon{
  15. font-size: 16px;
  16. width: 16px;
  17. }
  18. .m-alert__content{
  19. display: table-cell;
  20. padding: 0 8px;
  21. .m-alert__title{
  22. font-size: 13px;
  23. line-height: 18px;
  24. }
  25. .is-bold{
  26. font-weight: 700;
  27. }
  28. .m-alert__closebtn{
  29. font-size: 12px;
  30. opacity: 1;
  31. position: absolute;
  32. top: 12px;
  33. right: 15px;
  34. cursor: pointer;
  35. }
  36. .m-alert__description{
  37. font-size: 12px;
  38. margin: 5px 0;
  39. }
  40. }
  41. }
  42. .m-alert--success.is-light{
  43. background-color: #f0f9eb;
  44. color: #67c23a;
  45. }
  46. .m-alert--info.is-light{
  47. background-color: #f4f4f5;
  48. color: #909399;
  49. }
  50. .m-alert--warning.is-light{
  51. background-color: #fdf6ec;
  52. color: #e6a23c;
  53. }
  54. .m-alert--error.is-light{
  55. background-color: #fef0f0;
  56. color: #f56c6c;
  57. }
  58. .m-alert--success.is-dark{
  59. background-color: #67c23a;
  60. color: #fff;
  61. }
  62. .m-alert--info.is-dark{
  63. background-color: #909399;
  64. color: #fff;
  65. }
  66. .m-alert--warning.is-dark{
  67. background-color: #e6a23c;
  68. color: #fff;
  69. }
  70. .m-alert--error.is-dark{
  71. background-color: #f56c6c;
  72. color: #fff;
  73. }
  74. .m-alert.is-center{
  75. justify-content: center;
  76. }