_notices.scss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. .notice {
  2. border-radius: 0.2rem;
  3. position: relative;
  4. margin: 2rem 0;
  5. padding: 0 0.75rem;
  6. overflow: auto;
  7. .notice-title {
  8. position: relative;
  9. font-weight: 700;
  10. margin: 0 -0.75rem;
  11. padding: 0.2rem 3.5rem;
  12. border-bottom: 1px solid $bg-color;
  13. i {
  14. position: absolute;
  15. top: 50%;
  16. left: 1.8rem;
  17. transform: translate(-50%, -50%);
  18. }
  19. }
  20. .notice-content {
  21. display: block;
  22. margin: 2rem 2rem;
  23. }
  24. }
  25. .notice.note {
  26. background-color: $bg-color-notice-note-content;
  27. .notice-title {
  28. background-color: $bg-color-notice-note-title;
  29. i {
  30. color: $fg-color-notice-note-icon;
  31. }
  32. }
  33. }
  34. .notice.tip {
  35. background-color: $bg-color-notice-tip-content;
  36. .notice-title {
  37. background-color: $bg-color-notice-tip-title;
  38. i {
  39. color: $fg-color-notice-tip-icon;
  40. }
  41. }
  42. }
  43. .notice.example {
  44. background-color: $bg-color-notice-example-content;
  45. .notice-title {
  46. background-color: $bg-color-notice-example-title;
  47. i {
  48. color: $fg-color-notice-example-icon;
  49. }
  50. }
  51. }
  52. .notice.question {
  53. background-color: $bg-color-notice-question-content;
  54. .notice-title {
  55. background-color: $bg-color-notice-question-title;
  56. i {
  57. color: $fg-color-notice-question-icon;
  58. }
  59. }
  60. }
  61. .notice.info {
  62. background-color: $bg-color-notice-info-content;
  63. .notice-title {
  64. background-color: $bg-color-notice-info-title;
  65. i {
  66. color: $fg-color-notice-info-icon;
  67. }
  68. }
  69. }
  70. .notice.warning {
  71. background-color: $bg-color-notice-warning-content;
  72. .notice-title {
  73. background-color: $bg-color-notice-warning-title;
  74. i {
  75. color: $fg-color-notice-warning-icon;
  76. }
  77. }
  78. }
  79. .notice.error {
  80. background-color: $bg-color-notice-error-content;
  81. .notice-title {
  82. background-color: $bg-color-notice-error-title;
  83. i {
  84. color: $fg-color-notice-error-icon;
  85. }
  86. }
  87. }