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.

115 lines
4.3 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. top: -1px;
  76. z-index: 2;
  77. height: auto;
  78. position: sticky;
  79. flex-wrap: wrap-reverse;
  80. background-color: $o-view-background-color;
  81. margin-top: $grid-gutter-width* 0.25;
  82. > .o_topbar_right_area {
  83. max-width: 100%;
  84. flex-basis: 100%;
  85. display: flex;
  86. flex: 1 0 auto;
  87. flex-wrap: wrap;
  88. justify-content: space-between;
  89. border-bottom: 1px solid gray('300');
  90. .o_followers {
  91. margin-bottom: 0;
  92. }
  93. }
  94. > .o_active {
  95. border-top: none;
  96. }
  97. > .btn-link {
  98. border-top: none;
  99. border-bottom: none;
  100. }
  101. .o_chatter_button_attachment {
  102. margin-right: 5px;
  103. }
  104. }
  105. .o_thread_composer {
  106. position: sticky;
  107. border: 1px solid gray('300');
  108. background-color: $o-view-background-color;
  109. z-index: 1;
  110. top: 68px;
  111. }
  112. }
  113. }
  114. }