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.

115 lines
3.4 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_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. .o_cp_buttons, .o_cp_sidebar {
  57. flex: 1 1 100%;
  58. }
  59. }
  60. .o_cp_right {
  61. flex-basis: 10%;
  62. }
  63. .o_cp_pager {
  64. white-space: nowrap;
  65. .o_pager_counter {
  66. max-width: 60px;
  67. @include o-text-overflow;
  68. }
  69. .o_pager_previous, .o_pager_next {
  70. border: none;
  71. }
  72. }
  73. .breadcrumb-item {
  74. &:not(.active) {
  75. padding-left: 0;
  76. }
  77. &::before {
  78. content: none;
  79. padding-right: 0;
  80. }
  81. &:nth-last-of-type(1n+3) {
  82. display: none;
  83. }
  84. &:nth-last-of-type(2) {
  85. &::before {
  86. content: "\f053";
  87. cursor: pointer;
  88. color: $o-brand-primary;
  89. font-family: FontAwesome;
  90. }
  91. a {
  92. display: none;
  93. }
  94. }
  95. }
  96. .o_cp_buttons .btn.d-block:not(.d-none) {
  97. display: inline-block !important;
  98. }
  99. .o_cp_switch_buttons.show {
  100. .dropdown-menu {
  101. display: flex;
  102. min-width: 0px;
  103. flex-direction: row;
  104. align-content: center;
  105. justify-content: space-around;
  106. padding: 0;
  107. .btn {
  108. margin: 5px;
  109. border: none;
  110. font-size: 1.25rem;
  111. }
  112. }
  113. }
  114. }
  115. }