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: c845a547e3891fb908195ea13e5a6285a216aa26 (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
27
////
/// 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;
    }
}

/// Background opacity
@mixin _background-opacity($color, $opacity: 0.5) {
    background-color: $color; /* The Fallback */
    background-color: rgba($color, $opacity);
}

/// Separator on ::before
@mixin _separator-before($color: inherit, $content: "•", $margin: 0.5em) {
        color: $color;
        content: $content;
        display: inline-block;
        margin-right: $margin;
}