_alerts.scss 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /* Alert */
  2. .alert {
  3. border: 0px;
  4. position: relative;
  5. padding: .95rem 1.25rem;
  6. border-radius: 1px;
  7. color: inherit;
  8. background-color: $white-color;
  9. -webkit-box-shadow: 1px 1px 14px 0px rgba(18, 38, 63, 0.26);
  10. -moz-box-shadow: 1px 1px 14px 0px rgba(18, 38, 63, 0.26);
  11. box-shadow: 1px 1px 14px 0px rgba(18, 38, 63, 0.26);
  12. [data-notify="icon"] {
  13. display: block;
  14. &::before {
  15. line-height: 35px;
  16. font-size: 22px;
  17. display: block;
  18. left: 15px;
  19. position: absolute;
  20. top: 50%;
  21. transform: translateY(-50%);
  22. width: 35px;
  23. height: 35px;
  24. border-radius: 30px;
  25. text-align: center;
  26. color: #fff;
  27. }
  28. }
  29. [data-notify="title"] {
  30. display: block;
  31. color: #2b2b2b;
  32. font-weight: $font-weight-extrabold;
  33. font-size: 14px;
  34. margin-bottom: 5px;
  35. }
  36. [data-notify="message"] {
  37. font-size: 13px;
  38. color: #908e8e;
  39. }
  40. .close {
  41. background: rgba(255, 255, 255, 0.8);
  42. width: 25px;
  43. height: 25px;
  44. line-height: 25px;
  45. top: 12px !important;
  46. border-radius: 50%;
  47. }
  48. }
  49. /* Alert States */
  50. @mixin alert-state($color){
  51. border-left: 4px solid $color;
  52. [data-notify="icon"]:before {
  53. background: $color;
  54. }
  55. }
  56. .alert-default {
  57. @include alert-state($dark-color);
  58. }
  59. .alert-primary {
  60. @include alert-state($primary-color);
  61. }
  62. .alert-secondary {
  63. @include alert-state($secondary-color);
  64. }
  65. .alert-info {
  66. @include alert-state($info-color);
  67. }
  68. .alert-success {
  69. @include alert-state($success-color);
  70. }
  71. .alert-warning {
  72. @include alert-state($warning-color);
  73. }
  74. .alert-danger {
  75. @include alert-state($danger-color);
  76. }