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.

157 lines
4.3 KiB

  1. /**********************************************************************************
  2. *
  3. * Copyright (c) 2017-today MuK IT GmbH.
  4. *
  5. * This file is part of MuK Backend Theme
  6. * (see https://mukit.at).
  7. *
  8. * MuK Proprietary License v1.0
  9. *
  10. * This software and associated files (the "Software") may only be used
  11. * (executed, modified, executed after modifications) if you have
  12. * purchased a valid license from MuK IT GmbH.
  13. *
  14. * The above permissions are granted for a single database per purchased
  15. * license. Furthermore, with a valid license it is permitted to use the
  16. * software on other databases as long as the usage is limited to a testing
  17. * or development environment.
  18. *
  19. * You may develop modules based on the Software or that use the Software
  20. * as a library (typically by depending on it, importing it and using its
  21. * resources), but without copying any source code or material from the
  22. * Software. You may distribute those modules under the license of your
  23. * choice, provided that this license is compatible with the terms of the
  24. * MuK Proprietary License (For example: LGPL, MIT, or proprietary licenses
  25. * similar to this one).
  26. *
  27. * It is forbidden to publish, distribute, sublicense, or sell copies of
  28. * the Software or modified copies of the Software.
  29. *
  30. * The above copyright notice and this permission notice must be included
  31. * in all copies or substantial portions of the Software.
  32. *
  33. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  34. * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  35. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  36. * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  37. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  38. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  39. * DEALINGS IN THE SOFTWARE.
  40. *
  41. **********************************************************************************/
  42. .mk_apps_sidebar_panel {
  43. @include mk-disable-scrollbar();
  44. overflow-y: auto;
  45. position: fixed;
  46. top: $o-navbar-height;
  47. height: calc(100% - #{$o-navbar-height});
  48. background-color: $mk-appbar-background;
  49. .mk_apps_sidebar {
  50. padding: 0;
  51. white-space: nowrap;
  52. .mk_apps_sidebar_menu {
  53. list-style: none;
  54. margin: 0;
  55. padding: 0;
  56. > li {
  57. margin: 0;
  58. padding: 0;
  59. border: 0px;
  60. display: block;
  61. > a {
  62. margin: 0;
  63. border: 0px;
  64. display: block;
  65. cursor: pointer;
  66. font-size: 13px;
  67. font-weight: 300;
  68. overflow: hidden;
  69. padding: 8px 11px;
  70. position: relative;
  71. text-decoration: none;
  72. color: $mk-appbar-color;
  73. text-overflow: ellipsis;
  74. .mk_apps_sidebar_icon {
  75. width: 22px;
  76. height: 22px;
  77. margin-right: 5px;
  78. }
  79. }
  80. }
  81. > li:hover > a {
  82. background: $o-brand-primary;
  83. }
  84. }
  85. }
  86. }
  87. @include media-breakpoint-up(lg) {
  88. .mk_sidebar_type_large {
  89. .mk_apps_sidebar_panel {
  90. width: $mk-sidebar-large-width;
  91. }
  92. .o_navbar + .o_action_manager {
  93. padding-left: $mk-sidebar-large-width;
  94. }
  95. }
  96. .mk_sidebar_type_small {
  97. .mk_apps_sidebar_panel {
  98. width: $mk-sidebar-small-width;
  99. .mk_apps_sidebar_name {
  100. display: none;
  101. }
  102. .mk_apps_sidebar_icon {
  103. margin-right: 0 !important;
  104. }
  105. }
  106. .o_navbar + .o_action_manager {
  107. padding-left: $mk-sidebar-small-width;
  108. }
  109. }
  110. .mk_sidebar_type_invisible {
  111. .mk_apps_sidebar_panel {
  112. display: none;
  113. }
  114. }
  115. }
  116. @include media-breakpoint-only(md) {
  117. .mk_sidebar_type_large, .mk_sidebar_type_small {
  118. .mk_apps_sidebar_panel {
  119. width: $mk-sidebar-small-width;
  120. .mk_apps_sidebar_name {
  121. display: none;
  122. }
  123. .mk_apps_sidebar_icon {
  124. margin-right: 0 !important;
  125. }
  126. }
  127. .o_navbar + .o_action_manager {
  128. padding-left: $mk-sidebar-small-width;
  129. }
  130. }
  131. .mk_sidebar_type_invisible {
  132. .mk_apps_sidebar_panel {
  133. display: none;
  134. }
  135. }
  136. }
  137. @include media-breakpoint-down(sm) {
  138. .mk_apps_sidebar_panel {
  139. display: none;
  140. }
  141. .o_action_manager {
  142. padding-left: 0;
  143. }
  144. }
  145. .editor_has_snippets_hide_backend_navbar {
  146. .mk_apps_sidebar_panel {
  147. display: none !important;
  148. }
  149. .o_action_manager {
  150. padding-left: 0 !important;
  151. }
  152. }