_notifications.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. .single-notification.alert {
  2. position: relative;
  3. }
  4. .hide-notification {
  5. right: 1rem;
  6. position: absolute;
  7. }
  8. .alert.raw {
  9. padding: 0 !important;
  10. }
  11. #admin-dashboard {
  12. #notifications {
  13. .admin-block {
  14. padding: 1rem 0;
  15. }
  16. li {
  17. white-space: nowrap;
  18. overflow: hidden;
  19. -ms-text-overflow: ellipsis;
  20. text-overflow: ellipsis;
  21. }
  22. }
  23. }
  24. .dashboard-notifications-container, .plugins-notifications-container, .themes-notifications-container {
  25. margin-bottom: 1rem;
  26. .raw {
  27. position: relative;
  28. .hide-notification {
  29. position: absolute;
  30. top: 5px;
  31. right: 5px;
  32. line-height: 1;
  33. font-size: 1.2rem;
  34. color: #333;
  35. text-shadow:
  36. -1px -1px 0 #fff,
  37. 1px -1px 0 #fff,
  38. -1px 1px 0 #fff,
  39. 1px 1px 0 #fff;
  40. }
  41. }
  42. &:empty {
  43. margin: 0;
  44. }
  45. }
  46. #admin-main {
  47. .content-padding {
  48. div[class*=notifications-container] .alert {
  49. a:hover {
  50. text-decoration: underline;
  51. }
  52. a.button, span.button, button.button {
  53. float: right;
  54. text-decoration: none;
  55. }
  56. }
  57. .top-notifications-container {
  58. margin-bottom: 1rem;
  59. .alert {
  60. a {
  61. cursor: pointer;
  62. }
  63. }
  64. @include breakpoint(mobile-only) {
  65. padding-bottom: 20px;
  66. }
  67. }
  68. }
  69. #notifications {
  70. td:last-child {
  71. position: relative;
  72. span {
  73. position: absolute;
  74. display: block;
  75. right: 2rem;
  76. top: 6px;
  77. }
  78. }
  79. .badge.alert {
  80. margin: 0;
  81. font-size: 0.7rem;
  82. text-transform: uppercase;
  83. margin-right: 5px;
  84. border-radius: 4px;
  85. vertical-align: middle;
  86. line-height: 1.7;
  87. i {
  88. margin-right: 3px;
  89. }
  90. }
  91. }
  92. }