_alert-box.scss 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. /* Alert box */
  2. .alert-success {
  3. background-color: #f1fbec;
  4. color: #54b783;
  5. border-color: #cce8b3;
  6. padding: 10px 20px 10px 20px;
  7. }
  8. .alert {
  9. padding: 20px 25px 20px 30px;
  10. margin-bottom: 30px;
  11. line-height: 22px;
  12. position: relative;
  13. z-index: 1;
  14. @include prefix(border-radius, 4px, webkit);
  15. &.alert-success {
  16. background-color: #f1fbec;
  17. color: #54b783;
  18. border-color: #cce8b3;
  19. }
  20. &.alert-info {
  21. background-color: #ebf5f9;
  22. color: #4278bb;
  23. border-color: #bce8f1;
  24. }
  25. &.alert-warning {
  26. background-color: #fcf8e3;
  27. color: #e2ad4b;
  28. border-color: #faebcc;
  29. }
  30. &.alert-danger {
  31. background-color: #fbf1f1;
  32. color: #e65656;
  33. border-color: #efe1e3;
  34. }
  35. strong {
  36. font-weight: 500;
  37. }
  38. @keyframes hvr-icon-push {
  39. 50% {
  40. @include prefix(trasfrom, scale(0.5), webkit);
  41. }
  42. }
  43. .close {
  44. opacity: 1;
  45. font-size: 16px;
  46. line-height: 22px;
  47. color: rgba(0,0,0,.34);
  48. text-shadow: none;
  49. float: right;
  50. i {
  51. @include prefix(transform, translateZ(0), webkit);
  52. @include prefix(transition-duration, 0.3s, webkit);
  53. @include prefix(transition-property, transform, webkit);
  54. @include prefix(transition-timing-function, ease-out, webkit);
  55. }
  56. &:hover {
  57. i {
  58. -webkit-animation-name: hvr-icon-push;
  59. animation-name: hvr-icon-push;
  60. -webkit-animation-duration: 0.3s;
  61. animation-duration: 0.3s;
  62. -webkit-animation-timing-function: linear;
  63. animation-timing-function: linear;
  64. -webkit-animation-iteration-count: 1;
  65. animation-iteration-count: 1;
  66. }
  67. }
  68. &:not(:disabled), &:not(.disabled):focus, &:not(.disabled):hover {
  69. opacity: 1;
  70. }
  71. }
  72. }
  73. /* Alert box style 02 */
  74. .alert-box-style-02 {
  75. .alert {
  76. padding: 22px 60px 22px 30px;
  77. border: none;
  78. line-height: 22px;
  79. @include box-shadow(0px 0 10px 0 rgba(111, 111, 111, 0.1));
  80. &.alert-success {
  81. color: #54b783;
  82. }
  83. &.alert-info {
  84. color: #4278bb;
  85. }
  86. &.alert-warning {
  87. color: #e2ad4b;
  88. }
  89. &.alert-danger {
  90. color: #e65656;
  91. }
  92. .close {
  93. height: 100%;
  94. position: absolute;
  95. right: 0;
  96. width: 60px;
  97. text-align: center;
  98. top: 0;
  99. display: flex;
  100. justify-content: center;
  101. align-items: center;
  102. border-left: 1px solid var(--light-medium-gray);
  103. font-size: 18px;
  104. }
  105. }
  106. }
  107. /* Alert box style 03 */
  108. .alert-box-style-03 {
  109. .alert {
  110. padding: 20px 30px 20px 55px;
  111. border: 0;
  112. &:before {
  113. font-family: bootstrap-icons;
  114. display: inline-block;
  115. position: absolute;
  116. left: 25px;
  117. font-size: 18px;
  118. }
  119. &.alert-success {
  120. background-color: #54b783;
  121. &:before {
  122. content: "\F26B";
  123. }
  124. }
  125. &.alert-info {
  126. background-color: #4278bb;
  127. &:before {
  128. content: "\F431";
  129. }
  130. }
  131. &.alert-warning {
  132. background-color: #e2ad4b;
  133. &:before {
  134. content: "\F567";
  135. }
  136. }
  137. &.alert-danger {
  138. background-color: #e65656;
  139. &:before {
  140. content: "\F623";
  141. }
  142. }
  143. .close {
  144. right: -10px;
  145. position: relative;
  146. }
  147. }
  148. }
  149. /* Alert box style 04 */
  150. .alert-box-style-04 {
  151. .alert {
  152. padding: 20px 25px 20px 30px;
  153. border-radius: 0;
  154. border: none;
  155. border-left:3px solid;
  156. &:hover{
  157. @include box-shadow(0px 0 10px 0 rgba(111, 111, 111, 0.1));
  158. }
  159. &.alert-success {
  160. color: #54b783;
  161. border-color: #54b783;
  162. }
  163. &.alert-info {
  164. color: #4278bb;
  165. border-color: #4278bb;
  166. }
  167. &.alert-warning {
  168. color: #e2ad4b;
  169. border-color: #e2ad4b;
  170. }
  171. &.alert-danger {
  172. color: #e65656;
  173. border-color: #e65656;
  174. }
  175. }
  176. }
  177. /* Alert box style 05 */
  178. .alert-box-style-05 {
  179. .alert {
  180. background-color: transparent;
  181. padding-left: 0;
  182. padding-right: 0;
  183. border: none;
  184. border-bottom: 2px solid;
  185. color: var(--dark-gray);
  186. padding: 10px 0;
  187. @include prefix(border-radius, 0px, webkit);
  188. &.alert-success {
  189. border-color: #54b783;
  190. }
  191. &.alert-info {
  192. border-color: #4278bb;
  193. }
  194. &.alert-warning {
  195. border-color: #e2ad4b;
  196. }
  197. &.alert-danger {
  198. border-color: #e65656;
  199. }
  200. }
  201. }