summaryrefslogtreecommitdiffstats
path: root/webapp/sass/utils/_functions.scss
blob: 26e3c6147b3db0c7099e7ff6b14e31b313cda495 (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
@charset "UTF-8";

@function em($pixels, $context: 14px) {
	@return ($pixels / $context * 1em)
}

@function alpha-color($color, $amount) {
    @return rgba($color, $amount)
}

%popover-box-shadow {
    @include box-shadow(rgba(black, .175) 1px -3px 12px);
}

%font-awesome {
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translate(0, 0);
}

@mixin unselectable {
    -webkit-user-select: none; /* Chrome/Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+ */

    /* Rules below not implemented in browsers yet */
    -o-user-select: none;
    user-select: none;
}