Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_mixins.scss « sass « static - github.com/the2ne/hugo-frais.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d8bfcce5afdbf3b4ed4762142d08aaceb6b60a7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
////
/// Mixins
////

/// Render `border-box`
/// cf. http://caniuse.com/#feat=css3-boxsizing
@mixin _border-box {
    & {
        // -moz-box-sizing: border-box;
        // -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }
}

/// `clearfix`
@mixin _clearfix {
    &:before,
    &:after {
        /* clearfix - http://nicolasgallagher.com/micro-clearfix-hack/ */
        content: " ";
        display: table;
    }
    &:after {
        clear: both;
    }
}