MOON
Server: Apache
System: Linux e2e-78-16.ssdcloudindia.net 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
User: imensosw (1005)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/imensosw/.trash/sass/_mixin.scss
// em change pixel into em 
@function em($pixel, $defalut-font-size: 16 ){
  @return #{ $pixel/$defalut-font-size }em; 
}
/* Media query map function starts */
// max width functions
$max-breakpoints: (
    xs: 480px,
    sm: 575.98px,
    md: 767.98px,
    lg: 991.98px
    
);
@mixin max($key){
    @if map-has-key($max-breakpoints, $key) {
        @media(max-width: #{map-get($max-breakpoints, $key) }) {
            @content;   
        }
    }
    @else{
        @warn "Unfortunately, no value could be retrieved from `#{$key}`. "
        + "Please make sure it is defined in `$breakpoints` map.";
    }
}
// min width functions
$min-breakpoints: (
    sm: 576px,
    md: 768px,
    lg: 992px,
    xl: 1200px
);
@mixin min($key){
    @if map-has-key($min-breakpoints, $key) {
        @media(min-width: #{map-get($min-breakpoints, $key) }) {
            @content;   
        }
    }
    @else{
        @warn "Unfortunately, no value could be retrieved from `#{$key}`. "
        + "Please make sure it is defined in `$breakpoints` map.";
    }
}
// only for tablet
@mixin tab{
    @media(min-width: 768px) and (max-width: 1024px){
        @content;
    }
}
@mixin max-tab{
    @media(max-width: 1024px) {
        @content;
    }
}
@mixin min-fullHd{
    @media(min-width: 1920px) {
        @content;
    }
}
@mixin max-fullHd{
    @media(max-width: 1919px) {
        @content;
    }
}
@mixin bgcover {
    background-repeat:no-repeat;
    background-size:cover;
}