alerts.scss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. @import "vars";
  2. #alerts {
  3. position: absolute;
  4. height: auto;
  5. width: auto;
  6. display: inline-block;
  7. bottom: 0px;
  8. right: 0px;
  9. left: 0px;
  10. margin: 10px;
  11. text-align: center;
  12. z-index: 1200;
  13. border-radius: 2px;
  14. .alert-success:first-child:after {
  15. border-bottom-color: #dff0d8;
  16. }
  17. .alert-info:first-child:after {
  18. border-bottom-color: #d9edf7;
  19. }
  20. .alert-warning:first-child:after {
  21. border-bottom-color: #fcf8e3;
  22. }
  23. .alert-danger:first-child:after {
  24. border-bottom-color: #eed3d7;
  25. }
  26. }
  27. .alert {
  28. padding: 10px 30px 10px 20px;
  29. border: none;
  30. display: inline-block;
  31. position: relative;
  32. white-space: normal;
  33. text-align: left;
  34. border-radius: 3px;
  35. font-weight: 600;
  36. // &:first-child {
  37. // border-top-left-radius: 3px;
  38. // border-top-right-radius: 3px;
  39. // }
  40. // &:last-child {
  41. // border-bottom-left-radius: 3px;
  42. // border-bottom-right-radius: 3px;
  43. // }
  44. .close {
  45. float: none;
  46. display: inline-block;
  47. font-size: inherit;
  48. line-height: inherit;
  49. position: absolute;
  50. right: 0px;
  51. top: 0px;
  52. width: 30px;
  53. height: 30px;
  54. line-height: 30px;
  55. text-align: center;
  56. }
  57. p {
  58. margin-top: 0px;
  59. margin-bottom: 15px;
  60. &:last-child { margin-bottom: 0px; }
  61. }
  62. > p + p {
  63. margin-top: 15px;
  64. }
  65. }
  66. .alert-success {
  67. color: white;
  68. background-color: #6bc36f;
  69. border-color: #d6e9c6;
  70. .alert-link {
  71. color: white;
  72. }
  73. }
  74. .alert-info {
  75. color: white;
  76. background-color: #4c9bd8;
  77. border-color: #bce8f1;
  78. .alert-link {
  79. color: white;
  80. }
  81. }
  82. .alert-warning {
  83. color: $dark;
  84. background-color: #ecc133;
  85. border-color: #fbeed5;
  86. .alert-link {
  87. color: $dark;
  88. }
  89. }
  90. .alert-danger {
  91. color: white;
  92. background-color: #c66554;
  93. border-color: #eed3d7;
  94. .alert-link {
  95. color: white;
  96. }
  97. }