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.

184 lines
5.3 KiB

  1. /**********************************************************************************
  2. *
  3. * Copyright (C) 2017 MuK IT GmbH
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU Affero General Public License as
  7. * published by the Free Software Foundation, either version 3 of the
  8. * License, or (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU Affero General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Affero General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. *
  18. **********************************************************************************/
  19. .o_form_view {
  20. .o_form_sheet_bg {
  21. background: $o-webclient-background-color;
  22. border-bottom: 1px solid gray('300');
  23. > .o_form_sheet {
  24. @include mk-container-widths();
  25. background-color: $o-view-background-color;
  26. border: 1px solid gray('400');
  27. box-shadow: 0 5px 20px -15px black;
  28. max-width: calc(100% - #{$o-horizontal-padding*2});
  29. }
  30. .o_form_statusbar {
  31. position: sticky;
  32. z-index: 1;
  33. top: 0;
  34. }
  35. .oe_button_box {
  36. .btn.oe_stat_button > .o_button_icon {
  37. color: $o-brand-odoo;
  38. }
  39. .btn.oe_stat_button > .o_stat_info {
  40. padding-right: 3px;
  41. }
  42. &, & + .oe_avatar {
  43. + .oe_title {
  44. max-width: calc(100% - 420px);
  45. width: initial !important;
  46. }
  47. }
  48. }
  49. .oe_title {
  50. max-width: 100%;
  51. width: initial;
  52. span {
  53. max-width: 100%;
  54. text-overflow: ellipsis;
  55. white-space: nowrap;
  56. overflow: hidden;
  57. width: initial;
  58. }
  59. span:active {
  60. white-space: normal;
  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. }
  123. @include media-breakpoint-down(xs) {
  124. .oe_button_box {
  125. float: none;
  126. display: block;
  127. border-radius: 0;
  128. text-align: right;
  129. margin-top: -17px;
  130. margin-bottom: $o-sheet-vpadding;
  131. margin-left: -$o-horizontal-padding;
  132. width: calc(100% + #{$o-horizontal-padding*2});
  133. border-top: 1px solid $o-form-lightsecondary;
  134. border-bottom: 1px solid $o-form-lightsecondary;
  135. > .btn.oe_stat_button {
  136. border: none;
  137. background: none;
  138. flex: 0 0 auto !important;
  139. width: percentage(1/3) !important;
  140. border-right: 1px solid $o-form-lightsecondary;
  141. }
  142. > .btn.o_button_more {
  143. flex: 1 1 auto !important;
  144. border-right: none;
  145. }
  146. > .o_dropdown_more {
  147. flex: 0 0 auto !important;
  148. width: percentage(1/3) !important;
  149. }
  150. &, & + .oe_avatar {
  151. + .oe_title {
  152. width: 100%;
  153. }
  154. }
  155. }
  156. .oe_title {
  157. width: 100% !important;
  158. max-width: 100% !important;
  159. }
  160. }
  161. }
  162. .mk_chatter_position_sided {
  163. @include media-breakpoint-up(xxl, $o-extra-grid-breakpoints) {
  164. .o_form_view:not(.o_form_nosheet) {
  165. display: flex;
  166. flex-flow: row nowrap;
  167. height: 100%;
  168. .o_form_sheet_bg {
  169. min-width: $mk-form-min-width;
  170. flex: 1 1 auto;
  171. overflow: auto;
  172. }
  173. > .o_chatter {
  174. flex: 1 1 auto;
  175. overflow: auto;
  176. min-width: $mk-chatter-min-width;
  177. max-width: $mk-chatter-max-width;
  178. border-left: 1px solid gray('400');
  179. }
  180. }
  181. }
  182. }