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.

118 lines
3.5 KiB

  1. /**********************************************************************************
  2. *
  3. * Copyright (c) 2017-2019 MuK IT GmbH.
  4. *
  5. * This file is part of MuK Backend 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. .breadcrumb, .o_cp_left, .o_cp_right, .o_cp_searchview {
  27. flex: 1 1 100%;
  28. @include media-breakpoint-up(md) {
  29. flex-basis: 50%;
  30. }
  31. }
  32. .breadcrumb {
  33. max-width: 80%;
  34. overflow: hidden;
  35. display: block;
  36. white-space: nowrap;
  37. text-overflow: ellipsis;
  38. }
  39. .o_cp_searchview {
  40. overflow: hidden;
  41. max-width: 20%;
  42. min-width: 20%;
  43. text-align: right;
  44. .o_searchview {
  45. border: none;
  46. padding: 3.5px 5px;
  47. .o_enable_searchview {
  48. margin-left: 0;
  49. box-shadow: none;
  50. &:before {
  51. padding-right: 5px;
  52. }
  53. }
  54. }
  55. }
  56. .o_cp_left {
  57. flex-basis: 50%;
  58. white-space: nowrap;
  59. .o_cp_buttons, .o_cp_sidebar {
  60. flex: 1 1 100%;
  61. }
  62. }
  63. .o_cp_right {
  64. flex-basis: 10%;
  65. }
  66. .o_cp_pager {
  67. white-space: nowrap;
  68. .o_pager_counter {
  69. max-width: 60px;
  70. @include o-text-overflow;
  71. }
  72. .o_pager_previous, .o_pager_next {
  73. border: none;
  74. }
  75. }
  76. .breadcrumb-item {
  77. &:not(.active) {
  78. padding-left: 0;
  79. }
  80. &::before {
  81. content: none;
  82. padding-right: 0;
  83. }
  84. &:nth-last-of-type(1n+3) {
  85. display: none;
  86. }
  87. &:nth-last-of-type(2) {
  88. &::before {
  89. content: "\f053";
  90. cursor: pointer;
  91. color: $o-brand-primary;
  92. font-family: FontAwesome;
  93. }
  94. a {
  95. display: none;
  96. }
  97. }
  98. }
  99. .o_cp_buttons .btn.d-block:not(.d-none) {
  100. display: inline-block !important;
  101. }
  102. .o_cp_switch_buttons.show {
  103. .dropdown-menu {
  104. display: flex;
  105. min-width: 0px;
  106. flex-direction: row;
  107. align-content: center;
  108. justify-content: space-around;
  109. padding: 0;
  110. .btn {
  111. margin: 5px;
  112. border: none;
  113. font-size: 1.25rem;
  114. }
  115. }
  116. }
  117. }
  118. }