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.

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