You are here

status_messages.css in Status Messages 8

/*
 * Style overwrites for the status message block.
 */

.simple-status-messages {
  position: fixed;
  top: 100px;
  right: 10px;
  z-index: 9999;
  width: 30%;
  transition: all 0.25s ease;
}

.webform-message .simple-status-messages {
  top: 170px;
}

@media screen and (max-width: 767px) {
  .simple-status-messages {
    width: 100%;
    position: unset;
  }
}

.status-messages + .status-messages {
  margin-top: 0.769em;
}

.simple-status-messages .status-messages {
  position: relative;
  padding: 15px 20px 15px 35px;
  word-wrap: break-word;
  border: 1px solid;
  border-width: 1px 1px 1px 0;
  border-radius: 2px;
  background: no-repeat 10px 17px;
  overflow-wrap: break-word;
}

.simple-status-messages .js-webform-message__link {
  display: none !important;
}

.simple-status-messages .messages--status {
  background-image: url(../img/checked.svg);
  background-size: 16px;
  background-color: #f3faef;
  color: #325e1c;
  border-color: #c9e1bd #c9e1bd #c9e1bd transparent;
  box-shadow: -8px 0 0 #77b259;
}

.simple-status-messages .messages--info {
  background-image: url(../img/checked.svg);
  background-size: 16px;
  background-color: #f3faef;
  color: #325e1c;
  border-color: #c9e1bd #c9e1bd #c9e1bd transparent;
  box-shadow: -8px 0 0 #77b259;
}

.simple-status-messages .messages--webform {
  background-image: url(../img/checked.svg);
  background-size: 16px;
  background-color: #f3faef;
  color: #325e1c;
  border-color: #c9e1bd #c9e1bd #c9e1bd transparent;
  box-shadow: -8px 0 0 #77b259;
}

.simple-status-messages .messages--warning {
  background-image: url(../img/warning.svg);
  background-size: 16px;
  color: #734c00;
  border-color: #f4daa6 #f4daa6 #f4daa6 transparent;
  background-color: #fdf8ed;
  box-shadow: -8px 0 0 #e09600;
}

.simple-status-messages .messages--error {
  background-image: url(../img/cancel.svg);
  background-size: 16px;
  color: #a51b00;
  border-color: #f9c9bf #f9c9bf #f9c9bf transparent;
  background-color: #fcf4f2;
  box-shadow: -8px 0 0 #e62600;
}

.simple-status-messages .status-messageclose {
  position: absolute;
  right: 5px;
  top: 0;
  color: #000000;
  font-size: 20px;
  opacity: 0.25;
  border-bottom: none;
}

.simple-status-messages .status-messageclose:hover,
.simple-status-messages .status-messageclose:focus,
.simple-status-messages .status-messageclose:active {
  color: #000000;
  text-decoration: none;
  opacity: 0.4;
}

File

css/status_messages.css
View source
  1. /*
  2. * Style overwrites for the status message block.
  3. */
  4. .simple-status-messages {
  5. position: fixed;
  6. top: 100px;
  7. right: 10px;
  8. z-index: 9999;
  9. width: 30%;
  10. transition: all 0.25s ease;
  11. }
  12. .webform-message .simple-status-messages {
  13. top: 170px;
  14. }
  15. @media screen and (max-width: 767px) {
  16. .simple-status-messages {
  17. width: 100%;
  18. position: unset;
  19. }
  20. }
  21. .status-messages + .status-messages {
  22. margin-top: 0.769em;
  23. }
  24. .simple-status-messages .status-messages {
  25. position: relative;
  26. padding: 15px 20px 15px 35px;
  27. word-wrap: break-word;
  28. border: 1px solid;
  29. border-width: 1px 1px 1px 0;
  30. border-radius: 2px;
  31. background: no-repeat 10px 17px;
  32. overflow-wrap: break-word;
  33. }
  34. .simple-status-messages .js-webform-message__link {
  35. display: none !important;
  36. }
  37. .simple-status-messages .messages--status {
  38. background-image: url(../img/checked.svg);
  39. background-size: 16px;
  40. background-color: #f3faef;
  41. color: #325e1c;
  42. border-color: #c9e1bd #c9e1bd #c9e1bd transparent;
  43. box-shadow: -8px 0 0 #77b259;
  44. }
  45. .simple-status-messages .messages--info {
  46. background-image: url(../img/checked.svg);
  47. background-size: 16px;
  48. background-color: #f3faef;
  49. color: #325e1c;
  50. border-color: #c9e1bd #c9e1bd #c9e1bd transparent;
  51. box-shadow: -8px 0 0 #77b259;
  52. }
  53. .simple-status-messages .messages--webform {
  54. background-image: url(../img/checked.svg);
  55. background-size: 16px;
  56. background-color: #f3faef;
  57. color: #325e1c;
  58. border-color: #c9e1bd #c9e1bd #c9e1bd transparent;
  59. box-shadow: -8px 0 0 #77b259;
  60. }
  61. .simple-status-messages .messages--warning {
  62. background-image: url(../img/warning.svg);
  63. background-size: 16px;
  64. color: #734c00;
  65. border-color: #f4daa6 #f4daa6 #f4daa6 transparent;
  66. background-color: #fdf8ed;
  67. box-shadow: -8px 0 0 #e09600;
  68. }
  69. .simple-status-messages .messages--error {
  70. background-image: url(../img/cancel.svg);
  71. background-size: 16px;
  72. color: #a51b00;
  73. border-color: #f9c9bf #f9c9bf #f9c9bf transparent;
  74. background-color: #fcf4f2;
  75. box-shadow: -8px 0 0 #e62600;
  76. }
  77. .simple-status-messages .status-messageclose {
  78. position: absolute;
  79. right: 5px;
  80. top: 0;
  81. color: #000000;
  82. font-size: 20px;
  83. opacity: 0.25;
  84. border-bottom: none;
  85. }
  86. .simple-status-messages .status-messageclose:hover,
  87. .simple-status-messages .status-messageclose:focus,
  88. .simple-status-messages .status-messageclose:active {
  89. color: #000000;
  90. text-decoration: none;
  91. opacity: 0.4;
  92. }