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.

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