// Center block @mixin center-block { display: block; margin-left: auto; margin-right: auto; } // Column width with margin @mixin column-width($numberColumns: 3) { width: map-get($columns, $numberColumns) - ( ( $columns__margin * ( $numberColumns - 1 ) ) / $numberColumns ); } // Transition @mixin transition { -webkit-transition: all .3s; -moz-transition: all .3s; -ms-transition: all .3s; -o-transition: all .3s; transition: all .3s; } // Overlay for image @mixin overlay { content: ''; position: absolute; top: 0; left: 0; bottom: 0; right: 0; z-index: 0; background: rgba(0, 0, 0, 0.36); pointer-events: none; } // Animation @mixin animation { -webkit-animation: wobble .3s; animation: wobble .3s } @-webkit-keyframes wobble { 0% { -webkit-transform: translateX(0); transform: translateX(0) } 50% { -webkit-transform: translateX(6px); transform: translateX(6px) } to { -webkit-transform: translateX(0); transform: translateX(0) } } @keyframes wobble { 0% { -webkit-transform: translateX(0); transform: translateX(0) } 50% { -webkit-transform: translateX(6px); transform: translateX(6px) } to { -webkit-transform: translateX(0); transform: translateX(0) } }