Toolbox

Toolbox is a collection of useful mixins, functions and classes. This file can operate independently of the framework, you can grab it (_toolbox.scss) to your project even without using Mate.

preview tollbox.scss on github

Media queries breakpoint

One of the most important mixin responsible for media queries and breakpoints for the purpose of RWD.
Available media breakpoints: $mobile, $phone, $tablet, $tablet--xs, $desktop, $desktop--xl

$mobile is responsible for range phone + tablet.

Breakpoints are defined in main settings file

EXAMPLES:

        .element {
            font-size: 3rem;
        
            @include respond-to($mobile) {
                font-size: 1.6rem;
            }
        
            @include respond-to-custom(min-width, 750px, max-width, 850px) {
                bottom: 25%;
            }
        
            @include respond-to($phone, $tablet--xs){
                height: auto;
                overflow: initial;
            }
        }
    

Flex Box

EXAMPLES:

        .example-flex {
            @include display-flex;
            > div {
                @include flex-item($flex-grow: 1);
            }
        }

        .example-flex-with-params {
            @include display-flex(row, wrap, null, stretch);
        }

        .example-flex-with-one-param {
            @include display-flex($wrap: wrap);
        }
    

Transforms

Transitions

EXAMPLES:

        .element {
            height: 500px;
            padding: 15px;
            margin-left: 90px;
            top: 50px;
            @include transition(margin-left);
        
            &:hover{
                margin-left: 180px
            }
        }
        
        .element {
            height: 500px;
            padding: 15px;
            margin-left: 90px;
            top: 50px;
            @include transition((height, top));
        
            &:hover{
                height: 700px;
                top: 55px;
                padding: 0;
            }
        }
        
        .element {
            height: 500px;
            padding: 15px;
            margin-left: 90px;
            top: 50px;
            @include transition((height, top), .25s, ease, .5s);
        
            &:hover{
                height: 700px;
                top: 55px;
                padding: 0;
            }
        }
    

Positioning

Others