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.

121 lines
4.5 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. flex-basis: 100%;
  51. display: flex;
  52. flex: 1 0 auto;
  53. flex-wrap: wrap;
  54. justify-content: space-between;
  55. border-bottom: 1px solid gray('300');
  56. .o_followers {
  57. display: initial !important;
  58. margin-bottom: 0;
  59. }
  60. }
  61. > .o_active {
  62. border-top: none;
  63. }
  64. .o_chatter_button_attachment {
  65. margin-right: 5px;
  66. }
  67. }
  68. }
  69. }
  70. }
  71. .mk_chatter_position_sided {
  72. @include media-breakpoint-up(xxl, $o-extra-grid-breakpoints) {
  73. .o_form_view:not(.o_form_nosheet) > .o_chatter {
  74. .o_chatter_topbar,
  75. .o_thread_composer {
  76. background-color: $o-view-background-color;
  77. position: sticky;
  78. z-index: 2;
  79. top: -1px;
  80. }
  81. .o_chatter_topbar {
  82. height: auto;
  83. flex-wrap: wrap-reverse;
  84. margin-top: $grid-gutter-width* 0.25;
  85. > .o_topbar_right_area {
  86. max-width: 100%;
  87. flex-basis: 100%;
  88. display: flex;
  89. flex: 1 0 auto;
  90. flex-wrap: wrap;
  91. justify-content: space-between;
  92. border-bottom: 1px solid gray('300');
  93. .o_followers {
  94. display: initial !important;
  95. margin-bottom: 0;
  96. }
  97. }
  98. > .o_active {
  99. border-top: none;
  100. }
  101. > .btn-link {
  102. border-top: none;
  103. border-bottom: none;
  104. }
  105. .o_chatter_button_attachment {
  106. margin-right: 5px;
  107. }
  108. .o_topbar_right_area {
  109. position: relative;
  110. top: 1px;
  111. }
  112. }
  113. .o_thread_composer {
  114. border: 1px solid gray('300');
  115. top: $o-statusbar-height;
  116. z-index: 1;
  117. }
  118. }
  119. }
  120. }