Sha256: 54dfaadf67493b7737714e6301852a1586ce454e9d85d4048e58a4c5584d6750

Contents?: true

Size: 1.43 KB

Versions: 158

Compression:

Stored size: 1.43 KB

Contents

@import "../../functions";
@import "../../variables";
@import "../../variables-dark";
@import "../../maps";
@import "../../mixins";

$utilities: ();

@include describe("utilities/api") {
  @include it("generates utilities for each breakpoints") {
    $utilities: (
      margin: (
        property: margin,
        values: auto
      ),
      padding: (
        property: padding,
        responsive: true,
        values: 1rem
      ),
      font-size: (
        property: font-size,
        values: (large: 1.25rem),
        print: true
      )
    ) !global;

    $grid-breakpoints: (
      xs: 0,
      sm: 333px,
      md: 666px
    ) !global;

    @include assert() {
      @include output() {
        @import "../../utilities/api";
      }

      @include expect() {
        // margin is not set to responsive
        .margin-auto {
          margin: auto !important;
        }

        // padding is, though
        .padding-1rem {
          padding: 1rem !important;
        }

        .font-size-large {
          font-size: 1.25rem !important;
        }

        @media (min-width: 333px) {
          .padding-sm-1rem {
            padding: 1rem !important;
          }
        }

        @media (min-width: 666px) {
          .padding-md-1rem {
            padding: 1rem !important;
          }
        }

        @media print {
          .font-size-print-large {
            font-size: 1.25rem !important;
          }
        }
      }

    }
  }
}

Version data entries

158 entries across 158 versions & 8 rubygems

Version Path
cm-admin-1.5.49 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
cm-admin-1.5.48 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
cm-admin-1.5.47 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
cm-admin-1.5.46 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
cm-admin-1.5.45 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
cm-admin-1.5.44 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
cm-admin-1.5.43 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
cm-admin-1.5.42 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
elixir-toolkit-theme-3.1.1 _sass/bootstrap/tests/utilities/_api.test.scss
elixir-toolkit-theme-3.1.0 _sass/bootstrap/tests/utilities/_api.test.scss
cm-admin-1.5.41 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
cm-admin-1.5.40 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
cm-admin-1.5.39 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
cm-admin-1.5.38 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
cm-admin-1.5.37 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
cm-admin-1.5.36 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
cm-admin-1.5.35 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
cm-admin-1.5.34 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
cm-admin-1.5.33 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
cm-admin-1.5.32 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss