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.

193 lines
5.4 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 {
  56. max-width: 100%;
  57. text-overflow: ellipsis;
  58. white-space: nowrap;
  59. overflow: hidden;
  60. width: initial;
  61. }
  62. span:active {
  63. white-space: normal;
  64. }
  65. }
  66. .o_notebook {
  67. .nav-tabs {
  68. overflow-x : auto;
  69. overflow-y: hidden;
  70. flex-flow: nowrap;
  71. .nav-item {
  72. white-space: nowrap;
  73. }
  74. }
  75. }
  76. }
  77. @include media-breakpoint-down(sm) {
  78. .o_form_sheet, .oe_chatter {
  79. min-width: 100% !important;
  80. max-width: 100% !important;
  81. }
  82. .o_group {
  83. @for $i from 1 through $o-form-group-cols {
  84. .o_group_col_#{$i} {
  85. width: 100% !important;
  86. }
  87. }
  88. .o_field_widget.o_text_overflow {
  89. width: auto !important;
  90. }
  91. }
  92. .o_statusbar_buttons_dropdown {
  93. border: {
  94. bottom: 0;
  95. radius: 0;
  96. top: 0;
  97. }
  98. height: 100%;
  99. }
  100. .o_statusbar_buttons > .btn {
  101. border-radius: 0;
  102. border: 0;
  103. width: 100%;
  104. margin-bottom: 0.2rem;
  105. &:last-child {
  106. margin-bottom: 0;
  107. }
  108. }
  109. .o_statusbar_status {
  110. .o_arrow_button:first-child::before {
  111. content: none;
  112. display: none;
  113. }
  114. }
  115. .app_settings_block {
  116. .row {
  117. margin: 0;
  118. }
  119. }
  120. .o_notebook .nav-tabs {
  121. &::-webkit-scrollbar {
  122. display: none;
  123. }
  124. }
  125. .o_cp_buttons {
  126. width: 100%;
  127. div, .o-kanban-button-new {
  128. width: 100%;
  129. }
  130. }
  131. }
  132. @include media-breakpoint-down(xs) {
  133. .oe_button_box {
  134. float: none;
  135. display: block;
  136. border-radius: 0;
  137. text-align: right;
  138. margin-top: -17px;
  139. margin-bottom: $o-sheet-vpadding;
  140. margin-left: -$o-horizontal-padding;
  141. width: calc(100% + #{$o-horizontal-padding*2});
  142. border-top: 1px solid $o-form-lightsecondary;
  143. border-bottom: 1px solid $o-form-lightsecondary;
  144. > .btn.oe_stat_button {
  145. border: none;
  146. background: none;
  147. flex: 0 0 auto !important;
  148. width: percentage(1/3) !important;
  149. border-right: 1px solid $o-form-lightsecondary;
  150. }
  151. > .btn.o_button_more {
  152. flex: 1 1 auto !important;
  153. border-right: none;
  154. }
  155. > .o_dropdown_more {
  156. flex: 0 0 auto !important;
  157. width: percentage(1/3) !important;
  158. }
  159. &, & + .oe_avatar {
  160. + .oe_title {
  161. width: 100%;
  162. }
  163. }
  164. }
  165. .oe_title {
  166. width: 100% !important;
  167. max-width: 100% !important;
  168. }
  169. }
  170. }
  171. .mk_chatter_position_sided {
  172. @include media-breakpoint-up(xxl, $o-extra-grid-breakpoints) {
  173. .o_form_view:not(.o_form_nosheet) {
  174. display: flex;
  175. flex-flow: row nowrap;
  176. height: 100%;
  177. .o_form_sheet_bg {
  178. min-width: $mk-form-min-width;
  179. flex: 1 1 auto;
  180. overflow: auto;
  181. }
  182. > .o_chatter {
  183. flex: 1 1 auto;
  184. overflow: auto;
  185. min-width: $mk-chatter-min-width;
  186. max-width: $mk-chatter-max-width;
  187. border-left: 1px solid gray('400');
  188. }
  189. }
  190. }
  191. }