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.

149 lines
4.2 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. }
  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. }
  64. }
  65. @include media-breakpoint-down(sm) {
  66. .o_form_sheet, .oe_chatter {
  67. min-width: 100% !important;
  68. max-width: 100% !important;
  69. margin-top: 15px !important;
  70. }
  71. .o_group {
  72. @for $i from 1 through $o-form-group-cols {
  73. .o_group_col_#{$i} {
  74. width: 100% !important;
  75. }
  76. }
  77. .o_field_widget.o_text_overflow {
  78. width: auto !important;
  79. }
  80. }
  81. .o_statusbar_buttons_dropdown {
  82. border: {
  83. bottom: 0;
  84. radius: 0;
  85. top: 0;
  86. }
  87. height: 100%;
  88. }
  89. .o_statusbar_buttons > .btn {
  90. border-radius: 0;
  91. border: 0;
  92. width: 100%;
  93. margin-bottom: 0.2rem;
  94. &:last-child {
  95. margin-bottom: 0;
  96. }
  97. }
  98. .o_statusbar_status {
  99. .o_arrow_button:first-child::before {
  100. content: none;
  101. display: none;
  102. }
  103. }
  104. .app_settings_block {
  105. .row {
  106. margin: 0;
  107. }
  108. }
  109. .o_notebook .nav-tabs {
  110. &::-webkit-scrollbar {
  111. display: none;
  112. }
  113. }
  114. .o_cp_buttons {
  115. width: 100%;
  116. div, .o-kanban-button-new {
  117. width: 100%;
  118. }
  119. }
  120. }
  121. @include media-breakpoint-down(xs) {
  122. .oe_title {
  123. width: 100% !important;
  124. max-width: 100% !important;
  125. }
  126. }
  127. }
  128. .mk_chatter_position_sided {
  129. @include media-breakpoint-up(xxl, $o-extra-grid-breakpoints) {
  130. .o_form_view:not(.o_form_nosheet) {
  131. display: flex;
  132. flex-flow: row nowrap;
  133. height: 100%;
  134. .o_form_sheet_bg {
  135. min-width: $mk-form-min-width;
  136. flex: 1 1 auto;
  137. overflow: auto;
  138. }
  139. > .o_chatter {
  140. flex: 1 1 auto;
  141. overflow: auto;
  142. min-width: $mk-chatter-min-width;
  143. max-width: $mk-chatter-max-width;
  144. border-left: 1px solid gray('400');
  145. }
  146. }
  147. }
  148. }