summaryrefslogtreecommitdiff
path: root/web/css/_src/_mixins.scss
blob: d547306813e2e51b8e7f1d6d5381a0a7f0113d3d (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
28
29
30
31
32
33
34
35
36
@mixin debug($color: red) {
    border: 1px solid $color;
}

@mixin clearfix {
    zoom:1;
    &:before, &:after {
        content: "\0020";
        display: block;
        height: 0;
        overflow: hidden;
    }
    &:after {
        clear: both;
    }
}

@mixin letterpress($opacity) {
    text-shadow: rgba(255, 255, 255, $opacity) 0 1px 0;
}

@mixin hide-text {
    font: 0/0 a;
    text-shadow: none;
    color: transparent;
}

@mixin link-colors($normal, $hover: $normal, $visited: $normal) {
    color: $normal;
    &:hover, &:focus {
        color: $hover;
    }
    &:visited {
        color: $visited;
    }
}