-
Notifications
You must be signed in to change notification settings - Fork 0
/
_mixins.scss
49 lines (44 loc) · 1.02 KB
/
_mixins.scss
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
37
38
39
40
41
42
43
44
45
46
47
48
49
// ============================================================================================= //
// MIXINS //
// ============================================================================================= //
///
/// Disabled touch screen.
///
@mixin disabled-touch-screen {
@media (pointer: fine) {
@content;
}
}
///
/// Disabled pointer events.
///
@mixin disabled-pointer-events {
cursor: default;
pointer-events: none;
}
///
/// Ellipsis.
///
@mixin ellipsis {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
///
/// Ellipsis multiline.
///
/* stylelint-disable */
@mixin ellipsis-multiline($line: 2, $orient: vertical) {
display: -webkit-box;
-webkit-line-clamp: $line;
-webkit-box-orient: $orient;
overflow: hidden;
}
/* stylelint-enable */
///
/// Font smoothing.
///
@mixin font-smoothing {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
}