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.

135 lines
3.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. .mk_apps_sidebar {
  29. padding: 0;
  30. white-space: nowrap;
  31. .mk_apps_sidebar_menu {
  32. list-style: none;
  33. margin: 0;
  34. padding: 0;
  35. > li {
  36. margin: 0;
  37. padding: 0;
  38. border: 0px;
  39. display: block;
  40. > a {
  41. margin: 0;
  42. border: 0px;
  43. display: block;
  44. cursor: pointer;
  45. font-size: 13px;
  46. font-weight: 300;
  47. overflow: hidden;
  48. padding: 8px 11px;
  49. position: relative;
  50. text-decoration: none;
  51. color: $mk-appbar-color;
  52. text-overflow: ellipsis;
  53. .mk_apps_sidebar_icon {
  54. width: 22px;
  55. height: 22px;
  56. margin-right: 5px;
  57. }
  58. }
  59. }
  60. > li:hover > a {
  61. background: $o-brand-primary;
  62. }
  63. }
  64. }
  65. }
  66. @include media-breakpoint-up(lg) {
  67. .mk_sidebar_type_large {
  68. .mk_apps_sidebar_panel {
  69. width: $mk-sidebar-large-width;
  70. }
  71. .o_main {
  72. padding-left: $mk-sidebar-large-width;
  73. }
  74. }
  75. .mk_sidebar_type_small {
  76. .mk_apps_sidebar_panel {
  77. width: $mk-sidebar-small-width;
  78. .mk_apps_sidebar_name {
  79. display: none;
  80. }
  81. .mk_apps_sidebar_icon {
  82. margin: 0;
  83. }
  84. }
  85. .o_main {
  86. padding-left: $mk-sidebar-small-width;
  87. }
  88. }
  89. .mk_sidebar_type_invisible {
  90. .mk_apps_sidebar_panel {
  91. display: none;
  92. }
  93. }
  94. }
  95. @include media-breakpoint-only(md) {
  96. .mk_sidebar_type_large, .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: 0;
  104. }
  105. }
  106. .o_main {
  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-down(sm) {
  117. .mk_apps_sidebar_panel {
  118. display: none;
  119. }
  120. .o_main {
  121. padding-left: 0;
  122. }
  123. }
  124. .o_fullscreen {
  125. .mk_apps_sidebar_panel {
  126. display: none;
  127. }
  128. .o_main {
  129. padding-left: 0;
  130. }
  131. }