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.

125 lines
3.3 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. @include media-breakpoint-down(sm) {
  23. .o_main_navbar {
  24. display: flex;
  25. > .dropdown {
  26. display: flex;
  27. .navbar-toggler {
  28. color: white;
  29. }
  30. .o_menu_sections, .o_menu_systray {
  31. padding: 0;
  32. }
  33. }
  34. .o_menu_systray {
  35. margin-left: auto;
  36. }
  37. .o_debug_manager {
  38. .dropdown-menu.show {
  39. @include mk-full-screen-sections();
  40. }
  41. }
  42. .o_user_menu, .o_switch_company_menu {
  43. > .dropdown-toggle {
  44. padding: 0 10px;
  45. white-space: nowrap;
  46. &::before, &::after {
  47. content: normal;
  48. }
  49. }
  50. .dropdown-menu.show {
  51. @include mk-full-screen-sections();
  52. }
  53. }
  54. .o_user_menu img {
  55. margin-bottom: 3px;
  56. }
  57. .o_menu_brand, .o_menu_sections, .oe_topbar_name {
  58. display: none;
  59. }
  60. .o-menu-toggle {
  61. cursor: pointer;
  62. padding: 0 $o-horizontal-padding;
  63. }
  64. .o_mail_systray_dropdown.show {
  65. @include mk-full-screen-sections();
  66. .o_mail_preview_image {
  67. align-items: center;
  68. display: flex;
  69. flex-direction: row;
  70. img {
  71. display: block;
  72. height: auto;
  73. }
  74. }
  75. }
  76. .dropdown-menu .dropdown-item {
  77. padding: {
  78. bottom: 0.5rem;
  79. top: 0.5rem;
  80. }
  81. }
  82. .o_menu_sections.show {
  83. @include mk-full-screen-sections();
  84. background: $mk-brand-gradient;
  85. .dropdown-toggle, .dropdown-item {
  86. padding: 0;
  87. color: white;
  88. height: 46px;
  89. line-height: 46px;
  90. background: none;
  91. span {
  92. padding-left: 15px;
  93. font-size: initial;
  94. }
  95. }
  96. .mk_menu_mobile_section {
  97. .fa {
  98. padding-top: 14px;
  99. padding-right: 15px;
  100. }
  101. .dropdown-menu {
  102. padding: 0;
  103. width: 100%;
  104. border: none;
  105. min-width: auto;
  106. box-shadow: none;
  107. background: none;
  108. position: static;
  109. overflow: visible;
  110. }
  111. @for $index from 1 through 5 {
  112. .o_menu_entry_lvl_#{$index} {
  113. margin-left: ($index - 1) * 1.5rem;
  114. }
  115. }
  116. @for $index from 2 through 5 {
  117. .o_menu_header_lvl_#{$index} {
  118. margin-left: ($index - 1) * 1.5rem;
  119. }
  120. }
  121. }
  122. }
  123. }
  124. }