_notifications.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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: 2rem 0 2rem 0;
  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. .alert {
  59. a {
  60. cursor: pointer;
  61. }
  62. }
  63. @include breakpoint(mobile-only) {
  64. padding-bottom: 20px;
  65. }
  66. }
  67. }
  68. #notifications {
  69. td:last-child {
  70. position: relative;
  71. span {
  72. position: absolute;
  73. display: block;
  74. right: 2rem;
  75. top: 6px;
  76. }
  77. }
  78. .badge.alert {
  79. margin: 0;
  80. font-size: 0.7rem;
  81. text-transform: uppercase;
  82. margin-right: 5px;
  83. border-radius: 4px;
  84. vertical-align: middle;
  85. line-height: 1.7;
  86. i {
  87. margin-right: 3px;
  88. }
  89. }
  90. }
  91. }