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.

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