@mixin flex($alignItem, $justifyContent) { display: flex; align-items: $alignItem; justify-content: $justifyContent; } @mixin grid($loop, $num, $row-gap, $col-gap) { display: grid; grid-template-columns: repeat($loop, $num); gap: $row-gap $col-gap; } @mixin transformScale { transform: scale(1); -moz-transform: scale(1); -webkit-transform: scale(1); -ms-transform: scale(1); -o-transform: scale(1); } @mixin transition3() { -webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; -ms-transition: all 0.3s ease; -o-transition: all 0.3s ease; transition: all 0.3s ease; } @mixin topcenter() { top: 50%; -webkit-transform: translateY(-50%); -moz-transform: translateY(-50%); -ms-transform: translateY(-50%); -o-transform: translateY(-50%); transform: translateY(-50%); } @mixin center() { top: 50%; left: 50%; transform: translate(-50%, -50%); } @mixin left() { top: 50%; right: 50%; transform: translate(-50%, -50%); } @mixin wh-full() { width: 100%; height: 100%; } @mixin transition3 (){ -webkit-transition: all 0.3s ease; -moz-transition : all 0.3s ease; -ms-transition : all 0.3s ease; -o-transition : all 0.3s ease; transition : all 0.3s ease; } @mixin transition5 (){ -webkit-transition: all 0.5s ease; -moz-transition : all 0.5s ease; -ms-transition : all 0.5s ease; -o-transition : all 0.5s ease; transition : all 0.5s ease; } @mixin transition6 (){ -webkit-transition: all 0.6s ease; -moz-transition : all 0.6s ease; -ms-transition : all 0.6s ease; -o-transition : all 0.6s ease; transition : all 0.6s ease; } @mixin transitionY (){ -webkit-transform: translateY(-50%); -ms-transform : translateY(-50%); -o-transform : translateY(-50%); transform : translateY(-50%); } @mixin transitionY3 (){ -webkit-transform : translateY(30px); -ms-transform : translateY(30px); -o-transform : translateY(30px); transform : translateY(30px); } @mixin transitionY0 (){ -webkit-transform : translateY(0); -ms-transform : translateY(0); -o-transform : translateY(0); transform : translateY(0); } @mixin absolute { top : 0; right : 0; left : 0; bottom : 0; position: absolute; } @mixin flex-center { display : flex; align-items : center; justify-content: center; } @mixin flex-end { display : flex; align-items : end; justify-content: end; } @mixin space-between { display: flex; justify-content: space-between; align-items: center; }