Sha256: 07966ee3015c48d737f99c17b1ccbeabfe3cc6e8dd810097ddc5bb7a70f0c695

Contents?: true

Size: 580 Bytes

Versions: 40

Compression:

Stored size: 580 Bytes

Contents

//
// Block Centered
//

@mixin block-centered($position: 0, $horizontal: true, $vertical: true) {
  @if ($position == absolute) {
    position: absolute !important
  } @else {
    position: relative
  }
  @if ($horizontal and $vertical) {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
  } @else if ($horizontal) {
    left: 50% !important;
    transform: translateX(-50%);
  } @else if ($vertical) {
    top: 50% !important;
    transform: translateY(-50%);
  }
  -webkit-backface-visibility: hidden; // Improvement for Chrome browser
}

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
jekyll-theme-glueckkanja-1.2.29 _sass/unify/tools/mixins/_centered.scss
jekyll-theme-glueckkanja-1.2.28 _sass/unify/tools/mixins/_centered.scss
jekyll-theme-glueckkanja-1.2.27 _sass/unify/tools/mixins/_centered.scss
jekyll-theme-glueckkanja-1.2.26 _sass/unify/tools/mixins/_centered.scss
jekyll-theme-glueckkanja-1.2.25 _sass/unify/tools/mixins/_centered.scss
jekyll-theme-glueckkanja-1.2.24 _sass/unify/tools/mixins/_centered.scss
jekyll-theme-glueckkanja-1.2.23 _sass/unify/tools/mixins/_centered.scss
jekyll-theme-glueckkanja-1.2.22 _sass/unify/tools/mixins/_centered.scss
jekyll-theme-glueckkanja-1.2.21 _sass/unify/tools/mixins/_centered.scss
jekyll-theme-glueckkanja-1.2.20 _sass/unify/tools/mixins/_centered.scss
jekyll-theme-glueckkanja-1.2.19 _sass/unify/tools/mixins/_centered.scss
jekyll-theme-glueckkanja-1.2.18 _sass/unify/tools/mixins/_centered.scss
jekyll-theme-glueckkanja-1.2.17 _sass/unify/tools/mixins/_centered.scss
jekyll-theme-glueckkanja-1.2.16 _sass/unify/tools/mixins/_centered.scss
jekyll-theme-glueckkanja-1.2.15 _sass/unify/tools/mixins/_centered.scss
jekyll-theme-glueckkanja-1.2.14 _sass/unify/tools/mixins/_centered.scss
jekyll-theme-glueckkanja-1.2.13 _sass/unify/tools/mixins/_centered.scss
jekyll-theme-glueckkanja-1.2.12 _sass/unify/tools/mixins/_centered.scss
jekyll-theme-glueckkanja-1.2.11 _sass/unify/tools/mixins/_centered.scss
jekyll-theme-glueckkanja-1.2.10 _sass/unify/tools/mixins/_centered.scss