_grid.legacy.scss 2.1 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 a sticky header.
  15. * We apply this to all pages for simplicity.
  16. */
  17. @mixin slim-header-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. }
  24. }
  25. .content-wrapper {
  26. @include slim-header-scroll-offset();
  27. scroll-behavior: smooth;
  28. width: 100%;
  29. height: 100%; // this has no effect on desktop, but on mobile it helps aesthetics of menu popout action
  30. float: left;
  31. position: relative;
  32. background-color: $color-grey-4;
  33. border-bottom: 1px solid $color-grey-3;
  34. }
  35. .content {
  36. @include row();
  37. background: $color-white;
  38. border-top: 0 solid $color-grey-5; // this top border provides space for the floating logo to toggle the menu
  39. min-height: 100%;
  40. position: relative; // yuk. necessary for positions for jquery ui widgets
  41. @include media-breakpoint-up(sm) {
  42. padding-bottom: 4em;
  43. }
  44. }
  45. @include media-breakpoint-up(sm) {
  46. .content {
  47. border-top: 0;
  48. background-color: none;
  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. }