_grid.legacy.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. border-bottom: 1px solid theme('colors.border-furniture');
  33. }
  34. .content {
  35. @include row();
  36. background: theme('colors.surface-page');
  37. border-top: 0 solid transparent; // this top border provides space for the floating logo to toggle the menu
  38. min-height: 100%;
  39. position: relative; // yuk. necessary for positions for jquery ui widgets
  40. @include media-breakpoint-up(sm) {
  41. padding-bottom: 4em;
  42. }
  43. }
  44. @include media-breakpoint-up(sm) {
  45. .content {
  46. border-top: 0;
  47. padding-top: 0;
  48. }
  49. }
  50. .row {
  51. @include clearfix();
  52. }
  53. @include media-breakpoint-up(sm) {
  54. .col1 {
  55. @include column(1);
  56. }
  57. .col2 {
  58. @include column(2);
  59. }
  60. .col3 {
  61. @include column(3);
  62. }
  63. .col4 {
  64. @include column(4);
  65. }
  66. .col5 {
  67. @include column(5);
  68. }
  69. .col6 {
  70. @include column(6);
  71. }
  72. .col7 {
  73. @include column(7);
  74. }
  75. .col8 {
  76. @include column(8);
  77. }
  78. .col9 {
  79. @include column(9);
  80. }
  81. .col10 {
  82. @include column(10);
  83. }
  84. .col11 {
  85. @include column(11);
  86. }
  87. .col12 {
  88. @include column(12);
  89. }
  90. .row {
  91. @include row();
  92. }
  93. .row-flush {
  94. @include row-flush();
  95. }
  96. }