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.

133 lines
4.3 KiB

  1. /**********************************************************************************
  2. *
  3. * Copyright (c) 2017-today MuK IT GmbH.
  4. *
  5. * This file is part of MuK Grid Snippets
  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. max-width: 35%;
  30. .breadcrumb {
  31. overflow: hidden;
  32. display: block;
  33. white-space: nowrap;
  34. text-overflow: ellipsis;
  35. }
  36. }
  37. .o_cp_top_right {
  38. min-height: 35px;
  39. min-width: 65%;
  40. flex-grow: 1;
  41. }
  42. }
  43. .o_cp_bottom {
  44. justify-content: space-between;
  45. .o_cp_bottom_left {
  46. flex-grow: 1;
  47. .o_cp_action_menus, .o_cp_buttons {
  48. flex: 1 1 100%;
  49. }
  50. .o_cp_action_menus .o_dropdown .o_dropdown_toggler_btn {
  51. .o_dropdown_title {
  52. display: none;
  53. }
  54. i:last-of-type{
  55. display: none;
  56. }
  57. &::after{
  58. display: inline-block;
  59. width: 0;
  60. height: 0;
  61. margin-left: 0.255em;
  62. vertical-align: 0.255em;
  63. content: "";
  64. border-top: 0.3em solid;
  65. border-right: 0.3em solid transparent;
  66. border-bottom: 0;
  67. border-left: 0.3em solid transparent;
  68. }
  69. }
  70. }
  71. .o_cp_bottom_right {
  72. .o_cp_pager {
  73. white-space: nowrap;
  74. .o_pager_counter {
  75. max-width: 60px;
  76. @include o-text-overflow;
  77. }
  78. .o_pager_previous, .o_pager_next {
  79. border: none;
  80. }
  81. }
  82. .o_search_options {
  83. display: none;
  84. }
  85. }
  86. }
  87. .breadcrumb-item {
  88. &:not(.active) {
  89. padding-left: 0;
  90. }
  91. &::before {
  92. content: none;
  93. padding-right: 0;
  94. }
  95. &:nth-last-of-type(1n+3) {
  96. display: none;
  97. }
  98. &:nth-last-of-type(2) {
  99. &::before {
  100. content: "\f053";
  101. cursor: pointer;
  102. color: $o-brand-primary;
  103. font-family: FontAwesome;
  104. }
  105. a {
  106. display: none;
  107. }
  108. }
  109. }
  110. .o_cp_buttons .btn.d-block:not(.d-none) {
  111. display: inline-block !important;
  112. }
  113. .o_cp_switch_buttons {
  114. &.show > .dropdown-menu {
  115. display: flex;
  116. min-width: 0px;
  117. flex-direction: row;
  118. align-content: center;
  119. justify-content: space-around;
  120. padding: 0;
  121. .btn {
  122. margin: 5px;
  123. border: none;
  124. font-size: 1.25rem;
  125. }
  126. }
  127. }
  128. }
  129. .o_controller_with_searchpanel .o_search_panel {
  130. display: none;
  131. }
  132. }