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.

118 lines
3.2 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_menu_brand, .o_menu_sections, .oe_topbar_name {
  52. display: none;
  53. }
  54. .o-menu-toggle {
  55. cursor: pointer;
  56. padding: 0 $o-horizontal-padding;
  57. }
  58. .o_mail_systray_dropdown.show {
  59. @include mk-full-screen-sections();
  60. .o_mail_preview_image {
  61. align-items: center;
  62. display: flex;
  63. flex-direction: row;
  64. img {
  65. display: block;
  66. height: auto;
  67. }
  68. }
  69. }
  70. .dropdown-menu .dropdown-item {
  71. padding: {
  72. bottom: 0.5rem;
  73. top: 0.5rem;
  74. }
  75. }
  76. .o_menu_sections.show {
  77. @include mk-full-screen-sections();
  78. background: $mk-brand-gradient;
  79. .dropdown-toggle, .dropdown-item {
  80. padding: 0;
  81. color: white;
  82. height: 46px;
  83. line-height: 46px;
  84. background: none;
  85. span {
  86. padding-left: 15px;
  87. font-size: initial;
  88. }
  89. }
  90. .mk_menu_mobile_section {
  91. .fa {
  92. padding-top: 14px;
  93. padding-right: 15px;
  94. }
  95. .dropdown-menu {
  96. padding: 0;
  97. width: 100%;
  98. border: none;
  99. min-width: auto;
  100. box-shadow: none;
  101. background: none;
  102. position: relative;
  103. }
  104. @for $index from 1 through 5 {
  105. .o_menu_entry_lvl_#{$index} {
  106. margin-left: ($index - 1) * 1.5rem;
  107. }
  108. }
  109. @for $index from 2 through 5 {
  110. .o_menu_header_lvl_#{$index} {
  111. margin-left: ($index - 1) * 1.5rem;
  112. }
  113. }
  114. }
  115. }
  116. }
  117. }