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.

154 lines
4.6 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. .oe_button_box {
  31. .btn.oe_stat_button > .o_button_icon {
  32. color: $o-brand-odoo;
  33. }
  34. .btn.oe_stat_button > .o_stat_info {
  35. padding-right: 3px;
  36. }
  37. }
  38. .o_notebook {
  39. .nav-tabs {
  40. overflow-x : auto;
  41. overflow-y: hidden;
  42. flex-flow: nowrap;
  43. .nav-item {
  44. white-space: nowrap;
  45. }
  46. }
  47. }
  48. }
  49. @include media-breakpoint-down(sm) {
  50. .o_form_sheet, .oe_chatter {
  51. min-width: 100% !important;
  52. max-width: 100% !important;
  53. }
  54. .o_group {
  55. @for $i from 1 through $o-form-group-cols {
  56. .o_group_col_#{$i} {
  57. width: 100% !important;
  58. }
  59. }
  60. .o_field_widget.o_text_overflow {
  61. width: auto !important;
  62. }
  63. }
  64. .o_statusbar_buttons_dropdown {
  65. border: {
  66. bottom: 0;
  67. radius: 0;
  68. top: 0;
  69. }
  70. height: 100%;
  71. }
  72. .o_statusbar_buttons > .btn {
  73. border-radius: 0;
  74. border: 0;
  75. width: 100%;
  76. margin-bottom: 0.2rem;
  77. &:last-child {
  78. margin-bottom: 0;
  79. }
  80. }
  81. .o_statusbar_status {
  82. .o_arrow_button:first-child::before {
  83. content: none;
  84. display: none;
  85. }
  86. }
  87. .app_settings_block {
  88. .row {
  89. margin: 0;
  90. }
  91. }
  92. .o_notebook .nav-tabs {
  93. &::-webkit-scrollbar {
  94. display: none;
  95. }
  96. }
  97. }
  98. @include media-breakpoint-down(xs) {
  99. .oe_button_box {
  100. float: none;
  101. display: block;
  102. border-radius: 0;
  103. text-align: right;
  104. margin-top: -17px;
  105. margin-bottom: $o-sheet-vpadding;
  106. margin-left: -$o-horizontal-padding;
  107. width: calc(100% + #{$o-horizontal-padding*2});
  108. border-top: 1px solid $o-form-lightsecondary;
  109. border-bottom: 1px solid $o-form-lightsecondary;
  110. > .btn.oe_stat_button {
  111. border: none;
  112. background: none;
  113. flex: 0 0 auto !important;
  114. width: percentage(1/3) !important;
  115. border-right: 1px solid $o-form-lightsecondary;
  116. }
  117. > .btn.o_button_more {
  118. flex: 1 1 auto !important;
  119. border-right: none;
  120. }
  121. > .o_dropdown_more {
  122. flex: 0 0 auto !important;
  123. width: percentage(1/3) !important;
  124. }
  125. &, & + .oe_avatar {
  126. + .oe_title {
  127. width: 100%;
  128. }
  129. }
  130. }
  131. }
  132. }
  133. .mk_chatter_position_sided {
  134. @include media-breakpoint-up(xxl, $o-extra-grid-breakpoints) {
  135. .o_form_view:not(.o_form_nosheet) {
  136. display: flex;
  137. flex-flow: row nowrap;
  138. height: 100%;
  139. .o_form_sheet_bg {
  140. min-width: $mk-form-min-width;
  141. flex: 1 1 auto;
  142. overflow: auto;
  143. }
  144. > .o_chatter {
  145. flex: 1 1 auto;
  146. overflow: auto;
  147. min-width: $mk-chatter-min-width;
  148. max-width: $mk-chatter-max-width;
  149. border-left: 1px solid gray('400');
  150. }
  151. }
  152. }
  153. }