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