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.

117 lines
3.1 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. .o_menu_apps {
  23. .full {
  24. width: 46px;
  25. font-size: 18px;
  26. text-align: center;
  27. }
  28. .dropdown-menu.show {
  29. @include mk-full-screen-sections();
  30. align-content: flex-start;
  31. overflow: inital;
  32. display: flex;
  33. flex-direction: row;
  34. flex-wrap: wrap;
  35. justify-content: flex-start;
  36. @include media-breakpoint-up(lg) {
  37. padding: {
  38. left: 20vw;
  39. right: 20vw;
  40. }
  41. }
  42. .o_app {
  43. display: flex;
  44. margin-top: 20px;
  45. align-items: center;
  46. flex-direction: column;
  47. justify-content: flex-start;
  48. width: percentage(1/3);
  49. @include media-breakpoint-up(sm) {
  50. width: percentage(1/4);
  51. }
  52. @include media-breakpoint-up(md) {
  53. width: percentage(1/6);
  54. }
  55. &:hover, &:focus, &:active, &.active {
  56. background: none;
  57. .o-app-icon {
  58. box-shadow: 0 8px 15px -10px black;
  59. transform: translateY(-1px);
  60. }
  61. }
  62. }
  63. .has-results ~ .o_app {
  64. display: none;
  65. }
  66. .o-app-icon {
  67. height: auto;
  68. max-width: 7rem;
  69. width: 100%;
  70. flex-basis: 0;
  71. }
  72. .o-app-name {
  73. color: $mk-apps-color;
  74. }
  75. .form-row {
  76. width: 100%;
  77. }
  78. .mk_search_container {
  79. margin-top: 25px;
  80. .mk_search_input {
  81. input:focus {
  82. box-shadow: none;
  83. border: 1px solid $gray-400;
  84. }
  85. }
  86. &.has-results {
  87. height: 100%;
  88. .mk_search_input {
  89. height: 3em;
  90. }
  91. .mk_search_results {
  92. height: calc(100% - 3em);
  93. .mk_menu_search_result {
  94. display: block;
  95. cursor: pointer;
  96. align-items: center;
  97. padding-left: 3rem;
  98. padding-right: 1rem;
  99. background-position: left;
  100. background-repeat: no-repeat;
  101. background-size: contain;
  102. white-space: nowrap;
  103. overflow: hidden;
  104. text-overflow: ellipsis;
  105. color: $mk-apps-color;
  106. &:hover, &:active, &.active {
  107. background-color: rgba(255, 255, 255, 0.05);
  108. }
  109. }
  110. }
  111. }
  112. @include media-breakpoint-down(md) {
  113. padding-right: 5px;
  114. }
  115. }
  116. }
  117. }