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.

158 lines
4.3 KiB

  1. /**********************************************************************************
  2. *
  3. * Copyright (c) 2017-today MuK IT GmbH.
  4. *
  5. * This file is part of MuK Theme
  6. * (see https://mukit.at).
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU Lesser General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU Lesser General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public License
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. *
  21. **********************************************************************************/
  22. .o_form_view {
  23. .o_form_sheet_bg {
  24. background: $o-webclient-background-color;
  25. border-bottom: 1px solid gray('300');
  26. > .o_form_sheet {
  27. @include mk-container-widths();
  28. background-color: $o-view-background-color;
  29. border: 1px solid gray('400');
  30. box-shadow: 0 5px 20px -15px black;
  31. max-width: calc(100% - #{$o-horizontal-padding*2});
  32. }
  33. .o_form_statusbar {
  34. position: sticky;
  35. z-index: 1;
  36. top: 0;
  37. }
  38. .oe_button_box {
  39. .btn.oe_stat_button > .o_button_icon {
  40. color: $o-brand-odoo;
  41. }
  42. }
  43. .oe_title {
  44. max-width: 100%;
  45. width: initial;
  46. span.o_field_widget {
  47. max-width: 100%;
  48. text-overflow: ellipsis;
  49. white-space: nowrap;
  50. overflow: hidden;
  51. width: initial;
  52. }
  53. }
  54. .o_notebook {
  55. .nav-tabs {
  56. overflow-x : auto;
  57. overflow-y: hidden;
  58. flex-flow: nowrap;
  59. .nav-item {
  60. white-space: nowrap;
  61. }
  62. }
  63. > .tab-content > .tab-pane > :first-child {
  64. margin-top: 0;
  65. }
  66. }
  67. }
  68. &.o_form_editable {
  69. .oe_title {
  70. max-width: map-get($container-max-widths, md) - (2 * $o-horizontal-padding);
  71. }
  72. }
  73. @include media-breakpoint-down(sm) {
  74. .o_form_sheet {
  75. min-width: 100% !important;
  76. max-width: 100% !important;
  77. margin-top: 15px !important;
  78. }
  79. .o_group {
  80. @for $i from 1 through $o-form-group-cols {
  81. .o_group_col_#{$i} {
  82. width: 100% !important;
  83. }
  84. }
  85. .o_field_widget.o_text_overflow {
  86. width: auto !important;
  87. }
  88. }
  89. .o_statusbar_buttons_dropdown {
  90. border: {
  91. bottom: 0;
  92. radius: 0;
  93. top: 0;
  94. }
  95. height: 100%;
  96. }
  97. .o_statusbar_buttons > .btn {
  98. border-radius: 0;
  99. border: 0;
  100. width: 100%;
  101. margin-bottom: 0.2rem;
  102. &:last-child {
  103. margin-bottom: 0;
  104. }
  105. }
  106. .o_statusbar_status {
  107. .o_arrow_button:first-child::before {
  108. content: none;
  109. display: none;
  110. }
  111. }
  112. .app_settings_block {
  113. .row {
  114. margin: 0;
  115. }
  116. }
  117. .o_notebook .nav-tabs {
  118. &::-webkit-scrollbar {
  119. display: none;
  120. }
  121. }
  122. .o_cp_buttons {
  123. width: 100%;
  124. div, .o-kanban-button-new {
  125. width: 100%;
  126. }
  127. }
  128. }
  129. @include media-breakpoint-down(xs) {
  130. .oe_title {
  131. width: 100% !important;
  132. max-width: 100% !important;
  133. }
  134. }
  135. }
  136. .mk_chatter_position_sided {
  137. @include media-breakpoint-up(xxl, $o-extra-grid-breakpoints) {
  138. .o_form_view:not(.o_form_nosheet) {
  139. display: flex;
  140. flex-flow: row nowrap;
  141. height: 100%;
  142. .o_form_sheet_bg {
  143. min-width: $mk-form-min-width;
  144. flex: 1 1 auto;
  145. overflow: auto;
  146. }
  147. > .o_FormRenderer_chatterContainer {
  148. flex: 1 1 auto;
  149. overflow: auto;
  150. min-width: $mk-chatter-min-width;
  151. max-width: $mk-chatter-max-width;
  152. border-left: 1px solid gray('400');
  153. }
  154. }
  155. }
  156. }