Sha256: c64128d19aea94a409a344af37c8287dd2bf5b594ce2c2c7daef57643004267b

Contents?: true

Size: 1.23 KB

Versions: 13

Compression:

Stored size: 1.23 KB

Contents

// stylelint-disable primer/selector-no-utility
//
// Utility classes for layout
//

// Display

.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-none { display: none !important; }

@each $media-query in map-keys($media-queries) {
  @for $i from 1 through length($spacers) {
    @include mq($media-query) {
      $size: #{map-get($spacers, sp-#{$i - 1})};
      $scale: #{$i - 1};

      // .d-sm-block, .d-md-none, .d-lg-inline
      .d-#{$media-query}-block { display: block !important; }
      .d-#{$media-query}-flex { display: flex !important; }
      .d-#{$media-query}-inline { display: inline !important; }
      .d-#{$media-query}-inline-block { display: inline-block !important; }
      .d-#{$media-query}-none { display: none !important; }

    }
  }
}

// Vertical alignment

.v-align-baseline { vertical-align: baseline !important; }
.v-align-bottom { vertical-align: bottom !important; }
.v-align-middle { vertical-align: middle !important; }
.v-align-text-bottom { vertical-align: text-bottom !important; }
.v-align-text-top { vertical-align: text-top !important; }
.v-align-top { vertical-align: top !important; }

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
just-the-docs-0.2.4 _sass/utilities/_layout.scss
just-the-docs-altair-0.2.3 _sass/utilities/_layout.scss
just-the-docs-0.2.3 _sass/utilities/_layout.scss
just-the-docs-0.2.2 _sass/utilities/_layout.scss
just-the-docs-0.2.1 _sass/utilities/_layout.scss
just-the-docs-0.2.0 _sass/utilities/_layout.scss
just-the-docs-0.1.6 _sass/utilities/_layout.scss
just-the-docs-0.1.5 _sass/utilities/_layout.scss
just-the-docs-0.1.4 _sass/utilities/_layout.scss
just-the-docs-0.1.3 _sass/utilities/_layout.scss
just-the-docs-0.1.2 _sass/utilities/_layout.scss
just-the-docs-0.1.1 _sass/utilities/_layout.scss
just-the-docs-0.1.0 _sass/utilities/_layout.scss