$posalias: (
    l: left,
    t: top,
    r: right,
    b: bottom
);

@mixin aui-browser-ie9 () {
    $self: #{&};
    @at-root {
        html.ie9 #{$self} {
           @content;
       }     
    }
}

@mixin aui-browser-greate-ie10 () {
    $self: #{&};
    @at-root {
        _:-ms-input-placeholder, :root #{$self} {
            @content;
        }     
    }    
}

@mixin aui-browser-greate-ie11 () {
    $self: #{&};
    @at-root {
        _:-ms-fullscreen, :root #{$self} {
            @content;
        }     
    }    
}

@mixin create-gutter-class($value, $sel: "m", $type: "margin", $pos: (l,t,r,b), $ns: "u") {
    @each $a in $pos {
        .#{$ns}-#{$sel}-#{$a}-#{$value} {
            #{$type}-#{map-get($posalias, $a)}: #{$value}px;
        }
    }
}

@mixin create-gutter-extend($i, $sel: "m") {
    .u-#{$sel}-h-#{$i} {
        @extend .u-#{$sel}-l-#{$i};
        @extend .u-#{$sel}-r-#{$i};
    }
    .u-#{$sel}-v-#{$i} {
        @extend .u-#{$sel}-t-#{$i};
        @extend .u-#{$sel}-b-#{$i};
    }
}

@mixin create-align-center($sel) {
    &:before {
        content: "";
        height: 100%;
        vertical-align: middle;
    }
    > #{$sel} {
        vertical-align: middle;
    }
    @content;
} 

@mixin aui-exp-host($host, $sel, $append: " > ") {
    $s: "";
    @if ($host != ":host") {
        $s: $s + $host + $append;
    } 
    #{$s + $sel} {
        @content;
    }
}

@mixin aui-selector-state($state, $parent: #{&}) {
    &#{$parent}--#{$state} {
        @content;
    }
}

@mixin aui-clear-fix() {
    &:after {
        content: "";
        display: table;
        clear: both;
    }
}

@mixin aui-reset-ie() {
    input[type=password]::-ms-reveal,
    input[type=password]::-ms-clear
    {
        display: none;
    }
    input::-ms-clear {
        display: none;
    }
}

@mixin aui-abs-center() {
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
}

@mixin aui-layout-inline-block-vertical-center() {
    &:before {
        content: "";
        display: inline-block;
        width: 0;
        height: 100%;
        @content;
    }
}