You are here

yamlform.element.message.css in YAML Form 8

Messages element styles.

File

css/yamlform.element.message.css
View source
  1. /**
  2. * @file
  3. * Messages element styles.
  4. */
  5. .messages {
  6. box-shadow: -8px 0 0 #3b3b3b; /* LTR */
  7. }
  8. [dir="rtl"] .messages {
  9. box-shadow: 8px 0 0 #3b3b3b;
  10. margin-left: 0;
  11. }
  12. .messages.messages--info {
  13. color: #31708f;
  14. background-color: #d9edf7;
  15. background-image: url(../images/icons/info.svg);
  16. border-color: #0074bd #0074bd #0074bd transparent; /* LTR */
  17. box-shadow: -8px 0 0 #0074bd; /* LTR */
  18. }
  19. [dir="rtl"] .messages.messages--info {
  20. border-color: #0074bd transparent #0074bd #0074bd;
  21. box-shadow: 8px 0 0 #0074bd;
  22. margin-left: 0;
  23. }
  24. /**
  25. * Message close.
  26. */
  27. .yamlform-message--close .messages {
  28. position: relative;
  29. }
  30. .yamlform-message--close .yamlform-message__link {
  31. display: none;
  32. }
  33. html.js .yamlform-message--close .yamlform-message__link {
  34. display: block;
  35. position: absolute;
  36. top: 11px;
  37. right: 10px;
  38. line-height: 24px;
  39. font-size: 24px;
  40. }
  41. .yamlform-message__link {
  42. color: inherit;
  43. opacity: 0.33;
  44. }
  45. .yamlform-message__link:link {
  46. border-bottom: none;
  47. text-decoration: none;
  48. }
  49. .yamlform-message__link:hover,
  50. .yamlform-message__link:focus,
  51. .yamlform-message__link:active {
  52. border-bottom: none;
  53. text-decoration: none;
  54. color: inherit;
  55. opacity: 1;
  56. }
  57. html.js .js-yamlform-message--close-storage {
  58. display: none;
  59. }