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.

150 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_col_6 {
  55. width: 100%;
  56. }
  57. .o_statusbar_buttons_dropdown {
  58. border: {
  59. bottom: 0;
  60. radius: 0;
  61. top: 0;
  62. }
  63. height: 100%;
  64. }
  65. .o_statusbar_buttons > .btn {
  66. border-radius: 0;
  67. border: 0;
  68. width: 100%;
  69. margin-bottom: 0.2rem;
  70. &:last-child {
  71. margin-bottom: 0;
  72. }
  73. }
  74. .o_statusbar_status {
  75. .o_arrow_button:first-child::before {
  76. content: none;
  77. display: none;
  78. }
  79. }
  80. .app_settings_block {
  81. .row {
  82. margin: 0;
  83. }
  84. }
  85. .o_notebook .nav-tabs {
  86. &::-webkit-scrollbar {
  87. display: none;
  88. }
  89. }
  90. }
  91. @include media-breakpoint-down(xs) {
  92. .oe_button_box {
  93. float: none;
  94. display: block;
  95. border-radius: 0;
  96. text-align: right;
  97. margin-top: -17px;
  98. margin-bottom: $o-sheet-vpadding;
  99. margin-left: -$o-horizontal-padding;
  100. width: calc(100% + #{$o-horizontal-padding*2});
  101. border-top: 1px solid $o-form-lightsecondary;
  102. border-bottom: 1px solid $o-form-lightsecondary;
  103. > .btn.oe_stat_button {
  104. border: none;
  105. background: none;
  106. flex: 0 0 auto !important;
  107. width: percentage(1/3) !important;
  108. border-right: 1px solid $o-form-lightsecondary;
  109. }
  110. > .btn.o_button_more {
  111. flex: 1 1 auto !important;
  112. border-right: none;
  113. }
  114. > .o_dropdown_more {
  115. flex: 0 0 auto !important;
  116. width: percentage(1/3) !important;
  117. }
  118. &, & + .oe_avatar {
  119. + .oe_title {
  120. width: 100%;
  121. }
  122. }
  123. }
  124. }
  125. }
  126. .mk_chatter_position_sided {
  127. @include media-breakpoint-up(xxl, $o-extra-grid-breakpoints) {
  128. .o_form_view:not(.o_form_nosheet) {
  129. display: flex;
  130. flex-flow: row nowrap;
  131. height: 100%;
  132. .o_form_sheet_bg {
  133. min-width: $mk-form-min-width;
  134. flex: 1 1 auto;
  135. overflow: auto;
  136. }
  137. .o_chatter {
  138. border-left: 1px solid gray('400');
  139. min-width: $mk-chatter-min-width;
  140. max-width: $mk-chatter-max-width;
  141. flex: 1 1 auto;
  142. overflow: auto;
  143. .o_followers_title_box {
  144. margin-left: 0;
  145. }
  146. }
  147. }
  148. }
  149. }