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-4.4.8 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
cm-admin-4.4.6 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
cm-admin-4.4.1 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
cm-admin-4.4.0 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
cm-admin-4.3.0 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
elixir-toolkit-theme-4.0.0 _sass/bootstrap/tests/utilities/_api.test.scss
cm-admin-4.2.1 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
cm-admin-4.2.0 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
cm-admin-4.1.2 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
cm-admin-4.1.1 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
cm-admin-4.1.0 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
cm-admin-4.0.0 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
cm-admin-3.0.16 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
cm-admin-3.0.15 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
cm-admin-3.0.14 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
cm-admin-3.0.13 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
cm-admin-3.0.12 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
cm-admin-3.0.11 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
cm-admin-3.0.10 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss
cm-admin-3.0.9 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/tests/utilities/_api.test.scss