Sha256: 16dfd1a9980cb86f9281fcda7890f3f042aaf0be180e8785a73978912acdd7b6

Contents?: true

Size: 1.3 KB

Versions: 6

Compression:

Stored size: 1.3 KB

Contents

@use "../utilities/initial-variables" as iv;
@use "../utilities/mixins" as mx;

$container-offset: 2 * iv.$gap !default;
$container-max-width: iv.$fullhd !default;

.#{iv.$class-prefix}container {
  flex-grow: 1;
  margin: 0 auto;
  position: relative;
  width: 100%;

  &.#{iv.$class-prefix}is-fluid {
    max-width: none !important;
    padding-left: iv.$gap;
    padding-right: iv.$gap;
    width: 100%;
  }

  @include mx.desktop {
    max-width: iv.$desktop - $container-offset;
  }

  @include mx.until-widescreen {
    &.#{iv.$class-prefix}is-widescreen:not(.#{iv.$class-prefix}is-max-desktop) {
      max-width: min(iv.$widescreen, $container-max-width) - $container-offset;
    }
  }

  @include mx.until-fullhd {
    &.#{iv.$class-prefix}is-fullhd:not(.#{iv.$class-prefix}is-max-desktop):not(
        .#{iv.$class-prefix}is-max-widescreen
      ) {
      max-width: min(iv.$fullhd, $container-max-width) - $container-offset;
    }
  }

  @include mx.widescreen {
    &:not(.#{iv.$class-prefix}is-max-desktop) {
      max-width: min(iv.$widescreen, $container-max-width) - $container-offset;
    }
  }

  @include mx.fullhd {
    &:not(.#{iv.$class-prefix}is-max-desktop):not(
        .#{iv.$class-prefix}is-max-widescreen
      ) {
      max-width: min(iv.$fullhd, $container-max-width) - $container-offset;
    }
  }
}

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
bulma-clean-theme-1.0.3 node_modules/bulma/sass/layout/container.scss
bulma-rails-1.0.1 app/assets/stylesheets/sass/layout/container.scss
bulma-clean-theme-1.0.0 node_modules/bulma/sass/layout/container.scss
bulma-clean-theme-1.0.0.beta.2 node_modules/bulma/sass/layout/container.scss
bulma-clean-theme-1.0.0.beta.1 node_modules/bulma/sass/layout/container.scss
bulma-rails-1.0.0 app/assets/stylesheets/sass/layout/container.scss