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.

179 lines
4.1 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. .mk_apps_sidebar_panel {
  23. height: calc(100% - #{$o-navbar-height});
  24. position: fixed;
  25. overflow-y: auto;
  26. top: $o-navbar-height;
  27. background-color: $mk-appbar-background;
  28. &::-webkit-scrollbar {
  29. display: none;
  30. }
  31. -ms-overflow-style: none;
  32. scrollbar-width: none;
  33. .mk_apps_sidebar {
  34. padding: 0;
  35. white-space: nowrap;
  36. .mk_apps_sidebar_menu {
  37. list-style: none;
  38. margin: 0;
  39. padding: 0;
  40. > li {
  41. margin: 0;
  42. padding: 0;
  43. border: 0px;
  44. display: block;
  45. > a {
  46. margin: 0;
  47. border: 0px;
  48. display: block;
  49. cursor: pointer;
  50. font-size: 13px;
  51. font-weight: 300;
  52. overflow: hidden;
  53. padding: 8px 11px;
  54. position: relative;
  55. text-decoration: none;
  56. color: $mk-appbar-color;
  57. text-overflow: ellipsis;
  58. .mk_apps_sidebar_icon {
  59. width: 22px;
  60. height: 22px;
  61. margin-right: 5px;
  62. }
  63. }
  64. }
  65. > li:hover > a {
  66. background: $o-brand-primary;
  67. }
  68. }
  69. }
  70. }
  71. @include media-breakpoint-up(lg) {
  72. .mk_sidebar_type_large {
  73. .mk_apps_sidebar_panel {
  74. width: $mk-sidebar-large-width;
  75. }
  76. .o_action_manager {
  77. padding-left: $mk-sidebar-large-width;
  78. }
  79. }
  80. .mk_sidebar_type_small {
  81. .mk_apps_sidebar_panel {
  82. width: $mk-sidebar-small-width;
  83. .mk_apps_sidebar_name {
  84. display: none;
  85. }
  86. .mk_apps_sidebar_icon {
  87. margin-right: 0 !important;
  88. }
  89. }
  90. .o_action_manager {
  91. padding-left: $mk-sidebar-small-width;
  92. }
  93. }
  94. .mk_sidebar_type_invisible {
  95. .mk_apps_sidebar_panel {
  96. display: none;
  97. }
  98. }
  99. //.sidebar_padding_invisible {
  100. // margin-left: $sidebar-invisible;
  101. //}
  102. //
  103. //.sidebar_padding_small {
  104. // margin-left: $sidebar-small;
  105. //}
  106. //
  107. //.sidebar_padding_large {
  108. // margin-left: $sidebar-large;
  109. //}
  110. }
  111. @include media-breakpoint-only(md) {
  112. .mk_sidebar_type_large, .mk_sidebar_type_small {
  113. .mk_apps_sidebar_panel {
  114. width: $mk-sidebar-small-width;
  115. .mk_apps_sidebar_name {
  116. display: none;
  117. }
  118. .mk_apps_sidebar_icon {
  119. margin-right: 0 !important;
  120. }
  121. }
  122. .o_action_manager {
  123. padding-left: $mk-sidebar-small-width;
  124. }
  125. }
  126. .mk_sidebar_type_invisible {
  127. .mk_apps_sidebar_panel {
  128. display: none;
  129. }
  130. }
  131. //.sidebar_padding_invisible {
  132. // margin-left: $sidebar-invisible;
  133. //}
  134. //
  135. //.sidebar_padding_small {
  136. // margin-left: $sidebar-invisible;
  137. //}
  138. //
  139. //.sidebar_padding_large {
  140. // margin-left: $sidebar-invisible;
  141. //}
  142. }
  143. @include media-breakpoint-down(sm) {
  144. .mk_apps_sidebar_panel {
  145. display: none;
  146. }
  147. .o_action_manager {
  148. padding-left: 0;
  149. }
  150. //.sidebar_padding_invisible {
  151. // margin-left: $sidebar-invisible;
  152. //}
  153. //
  154. //.sidebar_padding_small {
  155. // margin-left: $sidebar-invisible;
  156. //}
  157. //
  158. //.sidebar_padding_large {
  159. // margin-left: $sidebar-invisible;
  160. //}
  161. }
  162. .o_fullscreen {
  163. .mk_apps_sidebar_panel {
  164. display: none;
  165. }
  166. .o_action_manager {
  167. padding-left: 0;
  168. }
  169. }