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.

243 lines
6.9 KiB

  1. /**********************************************************************************
  2. *
  3. * Copyright (c) 2017-today MuK IT GmbH.
  4. *
  5. * This file is part of MuK 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. @include media-breakpoint-down(sm) {
  23. .o_control_panel {
  24. padding-left: $o-horizontal-padding /2;
  25. padding-right: $o-horizontal-padding /2;
  26. .o_cp_top {
  27. justify-content: space-between;
  28. .o_cp_top_left {
  29. flex-grow: 100;
  30. .breadcrumb {
  31. overflow: hidden;
  32. display: block;
  33. white-space: nowrap;
  34. text-overflow: ellipsis;
  35. }
  36. }
  37. .o_cp_top_right {
  38. flex-grow: 1;
  39. min-height: 35px;
  40. .o_searchview_mobile {
  41. border: none;
  42. }
  43. }
  44. }
  45. .o_cp_bottom {
  46. justify-content: space-between;
  47. .o_cp_bottom_left {
  48. flex-grow: 1;
  49. .o_cp_action_menus, .o_cp_buttons {
  50. flex: 1 1 100%;
  51. }
  52. .o_cp_action_menus .o_dropdown .o_dropdown_toggler_btn {
  53. .o_dropdown_title {
  54. display: none;
  55. }
  56. i:last-of-type{
  57. display: none;
  58. }
  59. &::after{
  60. display: inline-block;
  61. width: 0;
  62. height: 0;
  63. margin-left: 0.255em;
  64. vertical-align: 0.255em;
  65. content: "";
  66. border-top: 0.3em solid;
  67. border-right: 0.3em solid transparent;
  68. border-bottom: 0;
  69. border-left: 0.3em solid transparent;
  70. }
  71. }
  72. }
  73. .o_cp_bottom_right {
  74. .o_cp_pager {
  75. white-space: nowrap;
  76. .o_pager_counter {
  77. max-width: 60px;
  78. @include o-text-overflow;
  79. }
  80. .o_pager_previous, .o_pager_next {
  81. border: none;
  82. }
  83. }
  84. .o_search_options {
  85. display: none;
  86. }
  87. }
  88. }
  89. .breadcrumb-item {
  90. &:not(.active) {
  91. padding-left: 0;
  92. }
  93. &::before {
  94. content: none;
  95. padding-right: 0;
  96. }
  97. &:nth-last-of-type(1n+3) {
  98. display: none;
  99. }
  100. &:nth-last-of-type(2) {
  101. &::before {
  102. content: "\f053";
  103. cursor: pointer;
  104. color: $o-brand-primary;
  105. font-family: FontAwesome;
  106. }
  107. a {
  108. display: none;
  109. }
  110. }
  111. }
  112. .o_searchview_input_container > .o_searchview_autocomplete {
  113. left: 0;
  114. right: 0;
  115. > li {
  116. padding: 10px 0px;
  117. }
  118. }
  119. .o_searchview_quick {
  120. display: flex;
  121. flex: 1 1 auto;
  122. align-items: center;
  123. .o_searchview_input_container {
  124. flex: 1 1 auto;
  125. }
  126. }
  127. .o_searchview {
  128. padding: 1px 0px 3px 0px;
  129. &.o_searchview_mobile {
  130. cursor: pointer;
  131. }
  132. }
  133. .o_cp_buttons .btn.d-block:not(.d-none) {
  134. display: inline-block !important;
  135. }
  136. .o_cp_switch_buttons {
  137. display: flex;
  138. min-width: 0px;
  139. flex-direction: row;
  140. align-content: center;
  141. justify-content: space-around;
  142. padding: 0;
  143. .btn {
  144. margin: 5px;
  145. border: none;
  146. font-size: 1.25rem;
  147. }
  148. }
  149. }
  150. .o_controller_with_searchpanel .o_search_panel {
  151. display: none;
  152. }
  153. }
  154. .mk_cp_mobile_search {
  155. position: fixed;
  156. top: 0;
  157. left: 0;
  158. bottom: 0;
  159. padding: 0;
  160. width: 100%;
  161. background-color: white;
  162. z-index: $zindex-modal;
  163. overflow: auto;
  164. .mk_mobile_search_header {
  165. height: 46px;
  166. margin-bottom: 10px;
  167. width: 100%;
  168. background-color: $o-brand-odoo;
  169. color: white;
  170. span:active {
  171. background-color: darken($o-brand-primary, 10%);
  172. }
  173. span {
  174. cursor: pointer;
  175. }
  176. }
  177. .o_searchview_input_container {
  178. display: flex;
  179. padding: 15px 20px 0 20px;
  180. position: relative;
  181. .o_searchview_input {
  182. width: 100%;
  183. margin-bottom: 15px;
  184. border-bottom: 1px solid $o-brand-primary;
  185. }
  186. .o_searchview_facet {
  187. display: inline-flex;
  188. order: 1;
  189. }
  190. .o_searchview_autocomplete {
  191. top: 3rem;
  192. }
  193. }
  194. .mk_mobile_search_filter {
  195. padding-bottom: 15%;
  196. > .dropdown {
  197. flex-direction: column;
  198. line-height: 2rem;
  199. width: 100%;
  200. margin: 15px 5px 0px 5px;
  201. border: solid 1px darken(gray("200"), 20%);
  202. }
  203. .dropdown.show > .dropdown-toggle {
  204. background-color: gray("200");
  205. }
  206. .dropdown-toggle {
  207. width: 100%;
  208. text-align: left;
  209. &:after {
  210. top: auto;
  211. }
  212. }
  213. .dropdown-item:before {
  214. top: auto;
  215. }
  216. .dropdown-item.focus {
  217. background-color: white;
  218. }
  219. .dropdown-menu {
  220. position: relative !important;
  221. top: 0 !important;
  222. left: 0 !important;
  223. width: 100%;
  224. max-height: 100%;
  225. box-shadow: none;
  226. border: none;
  227. color: gray("600");
  228. .divider {
  229. margin: 0px;
  230. }
  231. > li > a {
  232. padding: 10px 26px;
  233. }
  234. }
  235. }
  236. .mk_mobile_search_show_result {
  237. padding: 10px;
  238. font-size: 15px;
  239. }
  240. }