_sidebar.scss 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /*=========================================================================================
  2. File Name: sidebar.scss
  3. Description: content sidebar specific scss.
  4. ----------------------------------------------------------------------------------------
  5. Item Name: Vuexy - Vuejs, React, Angular, HTML & Laravel Admin Dashboard Template
  6. Author: PIXINVENT
  7. Author URL: http://www.themeforest.net/user/pixinvent
  8. ==========================================================================================*/
  9. // Sidebar base
  10. // ------------------------------
  11. // Base
  12. .sidebar {
  13. position: relative;
  14. width: 100%;
  15. height: 100%;
  16. // For desktop only
  17. @include media-breakpoint-up(lg) {
  18. vertical-align: top;
  19. }
  20. }
  21. .sidebar-fixed {
  22. position: fixed;
  23. height: 100%;
  24. overflow: scroll;
  25. }
  26. .sidenav-overlay {
  27. position: fixed;
  28. top: 0;
  29. left: 0;
  30. right: 0;
  31. height: 120vh;
  32. background-color: rgba($black, 0.5);
  33. z-index: 997;
  34. display: block;
  35. visibility: hidden;
  36. opacity: 0;
  37. transition: all 0.5s ease;
  38. &.show {
  39. opacity: 1;
  40. visibility: visible;
  41. transition: all 0.5s ease;
  42. }
  43. }
  44. .drag-target {
  45. height: 100%;
  46. width: 40px;
  47. position: fixed;
  48. top: 0;
  49. left: -10px;
  50. z-index: 1036;
  51. }
  52. .sidebar-detached {
  53. .sidebar {
  54. width: $sidebar-width;
  55. }
  56. }
  57. @include media-breakpoint-up(lg) {
  58. .sidebar-left {
  59. float: left;
  60. }
  61. .sidebar-right {
  62. float: right;
  63. }
  64. }
  65. @include media-breakpoint-down(md) {
  66. .sidebar-detached {
  67. .sidebar {
  68. width: 100%;
  69. }
  70. }
  71. }