/home/edulekha/sriramaaresorts.com/wp-content/themes/getleads/assets/scss/mixin/_mixin.scss
@mixin border-radius($radius) {
border-radius: $radius;
}
//usage: @include shift([property],[duration],[easing]);
@mixin transition($property: all, $duration: .4s, $ease: ease) {
transition: $property $duration $ease;
}
@mixin background-content($repeat: no-repeat, $size: cover, $position: center center) {
background-repeat: $repeat;
background-size: $size;
background-position: $position;
}
@mixin background-color($color) {
background-color: $color;
}
@mixin width($width) {
width: $width;
}
@mixin equal-size($width, $height: $width) {
width: $width;
height: $height;
}
@mixin equal-size-lineHeight($width, $height: $width, $Lheight: $width) {
width: $width;
height: $height;
line-height: $Lheight;
}
@mixin height-lineheight($height: $height, $blineHeight: $height) {
height: $height;
line-height: $blineHeight;
}
@mixin flex-position($display, $contet, $items) {
display: $display;
justify-content: $contet;
align-items: $items;
}
@mixin position($position) {
position: $position;
}
@mixin center-position($top: $top, $left: $top) {
top: $top;
left: $top;
transform: translate(-#{$top}, -#{$top});
}
@mixin border($direction, $width, $style, $color) {
border-#{$direction}: $width $style $color;
}
@mixin borders($width, $style, $color) {
border: $width $style $color;
}
@mixin my-border($direction) {
@include border($direction, 1px, solid, #e7e7e7);
}
@mixin my-borders() {
@include borders(1px, solid, #eaeaea);
}
@mixin altFont {
font-family: 'Pacifico', cursive;
}
@mixin linear-gradient($direction, $color-stops...) {
background: nth(nth($color-stops, 1), 1);
background: -webkit-linear-gradient(legacy-direction($direction), $color-stops);
background: linear-gradient($direction, $color-stops);
}
@mixin gradient-one() {
@include linear-gradient(93deg, rgb(3, 105, 209) 0%, rgb(0, 236, 188) 100%);
}
@mixin inputPlaceholder() {
$selector: '';
$prefixes: (moz: "::-moz",
webkit: "::-webkit",
ie: ":-ms"
);
@each $prop,
$value in $prefixes {
@if $prop !="moz" {
$selector: #{$value}-input-placeholder;
}
@else {
$selector: #{$value}-placeholder;
}
@if & {
&#{$selector} {
@content;
}
}
@else {
#{$selector} {
@content;
}
}
}
&::placeholder {
@content;
}
}
@mixin remove-list-sltye {
list-style: none;
margin: {
top: 0px;
bottom: 0px;
}
padding: {
left: 0px;
right: 0px;
}
}
@mixin disbaled-button {
opacity: .3;
pointer-events: none;
cursor: auto;
}