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.

113 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, &: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. }
  68. .o-app-name {
  69. color: $gray-100;
  70. }
  71. .form-row {
  72. width: 100%;
  73. }
  74. .mk_search_container {
  75. margin-top: 25px;
  76. .mk_search_input {
  77. input:focus {
  78. box-shadow: none;
  79. border: 1px solid $gray-400;
  80. }
  81. }
  82. &.has-results {
  83. height: 100%;
  84. .mk_search_input {
  85. height: 3em;
  86. }
  87. .mk_search_results {
  88. height: calc(100% - 3em);
  89. .mk_menu_search_result {
  90. display: block;
  91. cursor: pointer;
  92. align-items: center;
  93. padding-left: 3rem;
  94. padding-right: 1rem;
  95. background-position: left;
  96. background-repeat: no-repeat;
  97. background-size: contain;
  98. white-space: nowrap;
  99. overflow: hidden;
  100. text-overflow: ellipsis;
  101. color: $gray-100;
  102. &:hover, &:active, &.active {
  103. background-color: rgba(255, 255, 255, 0.05);
  104. }
  105. }
  106. }
  107. }
  108. @include media-breakpoint-down(md) {
  109. padding-right: 5px;
  110. }
  111. }
  112. }
  113. }