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.

189 lines
5.3 KiB

  1. /**********************************************************************************
  2. *
  3. * Copyright (c) 2017-2019 MuK IT GmbH.
  4. *
  5. * This file is part of MuK Backend 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. .btn.oe_stat_button > .o_stat_info {
  43. padding-right: 3px;
  44. }
  45. &, & + .oe_avatar {
  46. + .oe_title {
  47. max-width: calc(100% - 420px);
  48. width: initial !important;
  49. }
  50. }
  51. }
  52. .oe_title {
  53. max-width: 100%;
  54. width: initial;
  55. span.o_field_widget {
  56. max-width: 100%;
  57. text-overflow: ellipsis;
  58. white-space: nowrap;
  59. overflow: hidden;
  60. width: initial;
  61. }
  62. }
  63. .o_notebook {
  64. .nav-tabs {
  65. overflow-x : auto;
  66. overflow-y: hidden;
  67. flex-flow: nowrap;
  68. .nav-item {
  69. white-space: nowrap;
  70. }
  71. }
  72. }
  73. }
  74. @include media-breakpoint-down(sm) {
  75. .o_form_sheet, .oe_chatter {
  76. min-width: 100% !important;
  77. max-width: 100% !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_button_box {
  131. float: none;
  132. display: block;
  133. border-radius: 0;
  134. text-align: right;
  135. margin-top: -17px;
  136. margin-bottom: $o-sheet-vpadding;
  137. margin-left: -$o-horizontal-padding;
  138. width: calc(100% + #{$o-horizontal-padding*2});
  139. border-top: 1px solid $o-form-lightsecondary;
  140. border-bottom: 1px solid $o-form-lightsecondary;
  141. > .btn.oe_stat_button {
  142. border: none;
  143. background: none;
  144. flex: 0 0 auto !important;
  145. width: percentage(1/3) !important;
  146. border-right: 1px solid $o-form-lightsecondary;
  147. }
  148. > .btn.o_button_more {
  149. flex: 1 1 auto !important;
  150. border-right: none;
  151. }
  152. > .o_dropdown_more {
  153. flex: 0 0 auto !important;
  154. width: percentage(1/3) !important;
  155. }
  156. &, & + .oe_avatar {
  157. + .oe_title {
  158. width: 100%;
  159. }
  160. }
  161. }
  162. .oe_title {
  163. width: 100% !important;
  164. max-width: 100% !important;
  165. }
  166. }
  167. }
  168. .mk_chatter_position_sided {
  169. @include media-breakpoint-up(xxl, $o-extra-grid-breakpoints) {
  170. .o_form_view:not(.o_form_nosheet) {
  171. display: flex;
  172. flex-flow: row nowrap;
  173. height: 100%;
  174. .o_form_sheet_bg {
  175. min-width: $mk-form-min-width;
  176. flex: 1 1 auto;
  177. overflow: auto;
  178. }
  179. > .o_chatter {
  180. flex: 1 1 auto;
  181. overflow: auto;
  182. min-width: $mk-chatter-min-width;
  183. max-width: $mk-chatter-max-width;
  184. border-left: 1px solid gray('400');
  185. }
  186. }
  187. }
  188. }