_layout.scss 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. //
  2. // Core: Layout
  3. //
  4. .wrapper {
  5. align-items: stretch;
  6. display: flex;
  7. width: 100%;
  8. overflow: clip;
  9. .sidebar-rtl {
  10. flex-direction: row-reverse;
  11. }
  12. .layout-fixed & .sidebar {
  13. // stylelint-disable-next-line
  14. height: calc(100vh - (#{$main-header-height-inner} + #{$main-header-bottom-border-width}));
  15. }
  16. .layout-fixed.text-sm & .sidebar {
  17. // stylelint-disable-next-line
  18. height: calc(100vh - (#{$main-header-height-sm-inner} + #{$main-header-bottom-border-width}));
  19. }
  20. }
  21. .content-wrapper {
  22. display: flex;
  23. width: 100%;
  24. min-width: 0;
  25. min-height: 100vh;
  26. background-color: $main-bg;
  27. color: $main-color;
  28. flex-direction: column;
  29. overflow: hidden;
  30. border-top-left-radius: 0;
  31. border-bottom-left-radius: 0;
  32. z-index: $zindex-content-wrapper;
  33. @include transition($sidebar-transition);
  34. }
  35. .content {
  36. flex: 1;
  37. width: 100vw;
  38. max-width: 100vw;
  39. padding: 1rem;
  40. }
  41. .sidebar-close .main-sidebar {
  42. margin-left: -250px;
  43. }
  44. .layout-fixed {
  45. .main-sidebar {
  46. bottom: 0;
  47. float: none;
  48. left: 0;
  49. position: fixed;
  50. top: 0;
  51. }
  52. .sidebar-close {
  53. .content-wrapper {
  54. margin-left: 0;
  55. }
  56. }
  57. }
  58. @include media-breakpoint-up(sm) {
  59. body:not(.sidebar-close).layout-fixed {
  60. .content-wrapper {
  61. margin-left: $sidebar-width;
  62. }
  63. &.sidebar-collapse .content-wrapper {
  64. margin-left: $sidebar-mini-width;
  65. }
  66. }
  67. }
  68. // @debug $sidebar-fixed;
  69. // @debug $sidebar-fixed;
  70. @include dark-mode() {
  71. .content-wrapper {
  72. background-color: $main-bg-alt;
  73. color: $main-color-alt;
  74. }
  75. }
  76. //