You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

141 lines
3.8 KiB

  1. // Navbar icon and dropdown
  2. .o_tier_navbar_item {
  3. > a {
  4. opacity: 1;
  5. > i {
  6. font-size: larger;
  7. }
  8. }
  9. &.o_no_notification > a {
  10. opacity: 0.5;
  11. > i {
  12. transform: translateY(0px);
  13. }
  14. .o_notification_counter {
  15. display: none;
  16. }
  17. }
  18. &.show .o_tier_systray_dropdown {
  19. display: flex;
  20. flex-flow: column nowrap;
  21. }
  22. .o_notification_counter {
  23. margin-top: -0.8rem;
  24. margin-right: 0;
  25. margin-left: -0.6rem;
  26. background: #00A09D;
  27. color: white;
  28. vertical-align: super;
  29. font-size: 0.7em;
  30. }
  31. .o_tier_systray_dropdown {
  32. direction: ltr;
  33. width: 350px;
  34. padding: 0;
  35. .o_spinner {
  36. display: flex;
  37. align-items: center;
  38. justify-content: center;
  39. color: $o-main-text-color;
  40. height: 50px;
  41. }
  42. .o_tier_systray_dropdown_top {
  43. display: flex;
  44. flex: 0 0 auto;
  45. justify-content: space-between;
  46. border-bottom: 1px solid gray('400');
  47. box-shadow: 0 0 2px gray('400');
  48. .o_filter_button, .o_new_message {
  49. padding: 5px;
  50. }
  51. .o_filter_button {
  52. color: $o-main-color-muted;
  53. &:hover, &.active {
  54. color: $o-brand-primary;
  55. }
  56. &.active {
  57. cursor: default;
  58. font-weight: bold;
  59. }
  60. }
  61. }
  62. .o_tier_systray_dropdown_items {
  63. flex: 0 1 auto;
  64. max-height: 400px;
  65. min-height: 50px;
  66. overflow-y: auto;
  67. @include media-breakpoint-up(md) {
  68. .o_tier_preview {
  69. min-height: 50px;
  70. padding: 5px;
  71. .o_tier_preview_image {
  72. width: 40px;
  73. height: 40px;
  74. }
  75. .o_preview_info {
  76. margin-left: 10px;
  77. .o_preview_title {
  78. .o_last_message_date {
  79. padding-top: 2px;
  80. font-size: x-small;
  81. margin-left: 10px;
  82. }
  83. }
  84. }
  85. }
  86. }
  87. }
  88. .o_activity_filter_button {
  89. padding: 2px;
  90. }
  91. .o_no_activity {
  92. cursor: initial;
  93. align-items: center;
  94. color: grey;
  95. opacity: 0.5;
  96. padding: 3px;
  97. }
  98. }
  99. }
  100. .o_no_thread_window .o_tier_systray_dropdown .o_new_message {
  101. display: none; // hide 'new message' button if chat windows are disabled
  102. }
  103. // Mobile rules
  104. // Goal: mock the design of Discuss in mobile
  105. @include media-breakpoint-down(sm) {
  106. .o_tier_systray_item {
  107. .o_notification_counter {
  108. top: 10%;
  109. }
  110. .o_tier_systray_dropdown {
  111. position: relative;
  112. .o_tier_systray_dropdown_top {
  113. padding: 5px;
  114. }
  115. .o_tier_systray_mobile_header {
  116. padding: 5px;
  117. height: 44px;
  118. border-bottom: 1px solid #ebebeb;
  119. box-shadow: 0 0 2px gray('400');
  120. }
  121. .o_tier_systray_dropdown_items {
  122. max-height: none;
  123. padding-bottom: 52px; // leave space for tabs
  124. }
  125. .o_tier_mobile_tabs {
  126. position: fixed;
  127. bottom: 0px;
  128. left: 0px;
  129. right: 0px;
  130. background-color: white;
  131. color: $o-main-text-color;
  132. }
  133. }
  134. }
  135. }