@mixin theme-content($theme) {
  &:not(.amp) {
    div#main {
      margin-top: $custom-topbar-height;
      padding-bottom: $custom-footer-height;

      #content {
        padding-top: 10px + $custom-ribbon-height;

        @include on-sm {
          padding-top: 10px;
        }
      }
    }
  }

  &.amp {
    div#main {
      background: map-get($theme, content-background);
    }

    .with-sidebar-padding {
      padding-left: $asideWidth + 16px;
    }
  }

  div#main {
    padding-bottom: $custom-reduced-footer-height + $custom-content-padding;
  }

  @include when-minified {
    div#main {
      margin-left: $custom-sidebar-minified-size;
    }

    .with-sidebar-padding {
      padding-left: $custom-sidebar-minified-size + 16px;
    }
  }

  &.hidden-menu {
    .with-sidebar-padding {
      padding-left: 16px;
    }
  }
}
