_grid.legacy.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. @use '../tools' as *;
  2. @use '../settings' as *;
  3. .wrapper {
  4. @include clearfix();
  5. @apply w-transition-sidebar;
  6. height: 100vh;
  7. @include media-breakpoint-up(sm) {
  8. transform: none;
  9. padding-inline-start: $menu-width;
  10. .sidebar-collapsed & {
  11. padding-inline-start: $menu-width-slim;
  12. }
  13. }
  14. }
  15. /**
  16. * Increase the scroll offset to account for pages with sticky areas - header or footer.
  17. * We apply this to all pages for simplicity.
  18. */
  19. @mixin sticky-areas-scroll-offset() {
  20. $gap: theme('spacing.4');
  21. // For mobile viewports, expect a sticky header over two rows.
  22. scroll-padding-top: calc(theme('spacing.slim-header') * 2 + $gap);
  23. @include media-breakpoint-up(sm) {
  24. scroll-padding-top: calc(theme('spacing.slim-header') + $gap);
  25. // Increase the scroll offset to account for pages with sticky bottom button
  26. scroll-padding-bottom: 100px;
  27. }
  28. }
  29. .content-wrapper {
  30. scroll-behavior: smooth;
  31. width: 100%;
  32. height: 100%; // this has no effect on desktop, but on mobile it helps aesthetics of menu popout action
  33. float: inline-start;
  34. position: relative;
  35. border-bottom: 1px solid theme('colors.border-furniture');
  36. @include sticky-areas-scroll-offset();
  37. }
  38. .content {
  39. @include row();
  40. background: theme('colors.surface-page');
  41. border-top: 0 solid transparent; // this top border provides space for the floating logo to toggle the menu
  42. min-height: 100%;
  43. position: relative; // yuk. necessary for positions for jquery ui widgets
  44. @include media-breakpoint-up(sm) {
  45. padding-bottom: 4em;
  46. }
  47. }
  48. @include media-breakpoint-up(sm) {
  49. .content {
  50. border-top: 0;
  51. padding-top: 0;
  52. }
  53. }
  54. .row {
  55. @include clearfix();
  56. }
  57. @include media-breakpoint-up(sm) {
  58. .col1 {
  59. @include column(1);
  60. }
  61. .col2 {
  62. @include column(2);
  63. }
  64. .col3 {
  65. @include column(3);
  66. }
  67. .col4 {
  68. @include column(4);
  69. }
  70. .col5 {
  71. @include column(5);
  72. }
  73. .col6 {
  74. @include column(6);
  75. }
  76. .col7 {
  77. @include column(7);
  78. }
  79. .col8 {
  80. @include column(8);
  81. }
  82. .col9 {
  83. @include column(9);
  84. }
  85. .col10 {
  86. @include column(10);
  87. }
  88. .col11 {
  89. @include column(11);
  90. }
  91. .col12 {
  92. @include column(12);
  93. }
  94. .row {
  95. @include row();
  96. }
  97. .row-flush {
  98. @include row-flush();
  99. }
  100. }