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.

117 lines
2.8 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. .mk_apps_sidebar_panel {
  20. height: calc(100% - #{$o-navbar-height});
  21. position: fixed;
  22. overflow-y: auto;
  23. top: $o-navbar-height;
  24. background-color: $mk-appbar-background;
  25. .mk_apps_sidebar {
  26. padding: 0;
  27. white-space: nowrap;
  28. .mk_apps_sidebar_menu {
  29. list-style: none;
  30. margin: 0;
  31. padding: 0;
  32. > li {
  33. margin: 0;
  34. padding: 0;
  35. border: 0px;
  36. display: block;
  37. > a {
  38. margin: 0;
  39. border: 0px;
  40. display: block;
  41. cursor: pointer;
  42. font-size: 13px;
  43. padding: 8px 11px;
  44. position: relative;
  45. text-decoration: none;
  46. font-weight: 300;
  47. color: gray('300');
  48. overflow: hidden;
  49. text-overflow: ellipsis;
  50. .mk_apps_sidebar_icon {
  51. width: 22px;
  52. height: 22px;
  53. margin-right: 5px;
  54. }
  55. }
  56. }
  57. > li:hover > a {
  58. background: $o-brand-primary;
  59. }
  60. }
  61. }
  62. }
  63. @include media-breakpoint-up(lg) {
  64. .mk_sidebar_type_large {
  65. .mk_apps_sidebar_panel {
  66. width: $mk-sidebar-large-width;
  67. }
  68. .o_main {
  69. padding-left: $mk-sidebar-large-width;
  70. }
  71. }
  72. .mk_sidebar_type_small {
  73. .mk_apps_sidebar_panel {
  74. width: $mk-sidebar-small-width;
  75. .mk_apps_sidebar_name {
  76. display: none;
  77. }
  78. }
  79. .o_main {
  80. padding-left: $mk-sidebar-small-width;
  81. }
  82. }
  83. .mk_sidebar_type_invisible {
  84. .mk_apps_sidebar_panel {
  85. display: none;
  86. }
  87. }
  88. }
  89. @include media-breakpoint-only(md) {
  90. .mk_sidebar_type_large, .mk_sidebar_type_small {
  91. .mk_apps_sidebar_panel {
  92. width: $mk-sidebar-small-width;
  93. .mk_apps_sidebar_name {
  94. display: none;
  95. }
  96. }
  97. .o_main {
  98. padding-left: $mk-sidebar-small-width;
  99. }
  100. }
  101. .mk_sidebar_type_invisible {
  102. .mk_apps_sidebar_panel {
  103. display: none;
  104. }
  105. }
  106. }
  107. @include media-breakpoint-down(sm) {
  108. .mk_apps_sidebar_panel {
  109. display: none;
  110. }
  111. .o_main {
  112. padding-left: 0;
  113. }
  114. }