You are here

dismiss.base.css in Dismiss 7

Essential CSS for the Dismiss module

File

css/dismiss.base.css
View source
  1. /**
  2. * @file
  3. * Essential CSS for the Dismiss module
  4. */
  5. /*
  6. * All messages require relative positioning
  7. * for the Dismiss button to be placed properly
  8. */
  9. div.messages {
  10. position: relative;
  11. padding-right: 1.5em;
  12. }
  13. /*
  14. * Dismiss button
  15. */
  16. .dismiss {
  17. display: block;
  18. position: absolute;
  19. top: .4em;
  20. right: .4em;
  21. width: 1.8em;
  22. background: #ed541d;
  23. border: 0;
  24. color: #fff;
  25. font-weight: 900;
  26. text-align: center;
  27. text-shadow: -1px -1px 0px rgba(0,0,0,0.4);
  28. text-decoration: none;
  29. border-radius: 3px;
  30. box-shadow: 1px 1px 0px rgba(0,0,0,0.4);
  31. opacity: .5;
  32. cursor: pointer;
  33. -webkit-transition: .1s opacity linear;
  34. -moz-transition: .1s opacity linear;
  35. -ms-transition: .1s opacity linear;
  36. -o-transition: .1s opacity linear;
  37. transition: .1s opacity linear;
  38. }
  39. .dismiss:before {
  40. content: '\2715';
  41. }
  42. .error .dismiss {
  43. background: #ed541d;
  44. }
  45. .status .dismiss {
  46. background: #be7;
  47. color: #000;
  48. text-shadow: none;
  49. }
  50. .warning .dismiss {
  51. background: #ed5;
  52. color: #000;
  53. text-shadow: none;
  54. }
  55. /*
  56. * When the user mouses over the message box, make the button more prominent
  57. */
  58. .messages:hover .dismiss {
  59. opacity: 1;
  60. }
  61. /*
  62. * Change states when users mouseover
  63. */
  64. .dismiss:hover {
  65. color: #fff;
  66. text-decoration: none;
  67. text-shadow: -1px -1px 0px rgba(0,0,0,0.4);
  68. }
  69. /*
  70. * Change states when users click
  71. */
  72. .dismiss:active {
  73. text-shadow: 1px 1px 0px rgba(0,0,0,0.4);
  74. box-shadow: 0 0 1px rgba(0,0,0,0.4);
  75. margin-top: 1px;
  76. margin-left: 1px;
  77. }