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.

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