_grid.legacy.scss 2.2 KB

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