notifications.less 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. //
  2. // Notifications
  3. // --------------------------------------------------
  4. // Notifications dropdowned list
  5. //
  6. //==
  7. .user-notifications-nav {
  8. .dropdown-menu {
  9. width: 320px;
  10. .dropdown-title {
  11. margin-bottom: 0px;
  12. }
  13. ul {
  14. margin: 0px;
  15. max-height: @line-height-computed * 8.75;
  16. li {
  17. border-bottom: 1px solid @dropdown-divider-bg;
  18. padding: @padding-base-vertical @padding-base-horizontal;
  19. &.new {
  20. .state-icon {
  21. color: @state-active;
  22. }
  23. }
  24. .state-icon {
  25. float: left;
  26. width: @font-size-base * 1.5;
  27. color: @state-default;
  28. }
  29. a {
  30. display: block;
  31. margin: 0px;
  32. padding: 0px;
  33. color: @text-color;
  34. &:hover {
  35. background: none;
  36. text-decoration: none;
  37. }
  38. &:active {
  39. background: none;
  40. color: @state-clicked;
  41. }
  42. }
  43. footer {
  44. padding-left: @font-size-base * 1.5;
  45. font-size: @font-size-small;
  46. a {
  47. display: inline;
  48. margin-right: @line-height-computed / 4;
  49. }
  50. }
  51. &.empty {
  52. border-bottom: none;
  53. padding: @padding-large-vertical @padding-base-horizontal;
  54. padding-bottom: @line-height-computed;
  55. text-align: center;
  56. .fa {
  57. display: block;
  58. font-size: @font-size-large * 3;
  59. }
  60. }
  61. }
  62. }
  63. }
  64. }
  65. // Full notifications list
  66. //
  67. //==
  68. .notifications-list {
  69. li {
  70. border-bottom: 1px solid @hr-border;
  71. overflow: auto;
  72. padding: (@line-height-computed / 2) 0px;
  73. &.new {
  74. .state-icon {
  75. color: @state-active;
  76. }
  77. }
  78. &:last-child {
  79. border-bottom: none;
  80. }
  81. .state-icon {
  82. float: left;
  83. margin-top: 2px;
  84. margin-right: @line-height-computed / 2;
  85. color: @state-default;
  86. font-size: @font-size-large;
  87. }
  88. .message {
  89. float: left;
  90. margin-top: 2px;
  91. font-size: @font-size-large;
  92. &:link, &:active, &:visited {
  93. color: @text-color;
  94. }
  95. &:hover {
  96. background: none;
  97. text-decoration: none;
  98. }
  99. &:active {
  100. background: none;
  101. color: @state-clicked;
  102. }
  103. }
  104. footer {
  105. margin-top: 5px;
  106. float: right;
  107. a {
  108. margin-right: @line-height-computed / 3;
  109. }
  110. }
  111. .read-form {
  112. float: right;
  113. margin-left: @line-height-computed;
  114. }
  115. }
  116. }