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.

118 lines
4.4 KiB

  1. /**********************************************************************************
  2. *
  3. * Copyright (C) 2018 MuK IT GmbH
  4. *
  5. * Odoo Proprietary License v1.0
  6. * This software and associated files (the "Software") may only be used
  7. * (executed, modified, executed after modifications) if you have
  8. * purchased a valid license from the authors, typically via Odoo Apps,
  9. * or if you have received a written agreement from the authors of the
  10. * Software (see the COPYRIGHT file).
  11. *
  12. * You may develop Odoo modules that use the Software as a library
  13. * (typically by depending on it, importing it and using its resources),
  14. * but without copying any source code or material from the Software.
  15. * You may distribute those modules under the license of your choice,
  16. * provided that this license is compatible with the terms of the Odoo
  17. * Proprietary License (For example: LGPL, MIT, or proprietary licenses
  18. * similar to this one).
  19. *
  20. * It is forbidden to publish, distribute, sublicense, or sell copies of
  21. * the Software or modified copies of the Software.
  22. *
  23. * The above copyright notice and this permission notice must be included
  24. * in all copies or substantial portions of the Software.
  25. *
  26. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  27. * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  28. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  29. * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  30. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  31. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  32. * DEALINGS IN THE SOFTWARE.
  33. *
  34. **********************************************************************************/
  35. .o_form_view {
  36. @include media-breakpoint-down(sm) {
  37. .o_chatter {
  38. .o_thread_composer {
  39. padding-left: $o-mail-thread-avatar-size * 0.5;
  40. .o_chatter_avatar {
  41. display: none;
  42. }
  43. }
  44. .o_chatter_topbar {
  45. height: auto;
  46. flex-wrap: wrap-reverse;
  47. margin-top: $grid-gutter-width* 0.25;
  48. > .o_topbar_right_area {
  49. max-width: 100%;
  50. min-width: 100%;
  51. flex-basis: 100%;
  52. display: flex;
  53. flex: 1 0 auto;
  54. flex-wrap: wrap;
  55. justify-content: space-between;
  56. border-bottom: 1px solid gray('300');
  57. .o_followers {
  58. display: initial !important;
  59. margin-bottom: 0;
  60. }
  61. }
  62. > .o_active {
  63. border-top: none;
  64. }
  65. .o_chatter_button_attachment {
  66. margin-right: 5px;
  67. }
  68. }
  69. }
  70. }
  71. }
  72. .mk_chatter_position_sided {
  73. @include media-breakpoint-up(xxl, $o-extra-grid-breakpoints) {
  74. .o_form_view:not(.o_form_nosheet) > .o_chatter {
  75. .o_chatter_topbar {
  76. top: -1px;
  77. z-index: 2;
  78. height: auto;
  79. position: sticky;
  80. flex-wrap: wrap-reverse;
  81. background-color: $o-view-background-color;
  82. margin-top: $grid-gutter-width* 0.25;
  83. > .o_topbar_right_area {
  84. max-width: 100%;
  85. min-width: 100%;
  86. flex-basis: 100%;
  87. display: flex;
  88. flex: 1 0 auto;
  89. flex-wrap: wrap;
  90. justify-content: space-between;
  91. border-bottom: 1px solid gray('300');
  92. .o_followers {
  93. margin-bottom: 0;
  94. min-width: 100px;
  95. }
  96. }
  97. > .o_active {
  98. border-top: none;
  99. }
  100. > .btn-link {
  101. border-top: none;
  102. border-bottom: none;
  103. }
  104. .o_chatter_button_attachment {
  105. margin-right: 5px;
  106. }
  107. }
  108. .o_thread_composer {
  109. position: sticky;
  110. border: 1px solid gray('300');
  111. background-color: $o-view-background-color;
  112. z-index: 1;
  113. top: 68px;
  114. }
  115. }
  116. }
  117. }