-
-
Notifications
You must be signed in to change notification settings - Fork 746
/
task.component.mixins.scss
58 lines (50 loc) · 1 KB
/
task.component.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
50
51
52
53
54
55
56
57
58
@mixin isCurrent {
:host.isCurrent & {
@content;
}
}
@mixin isHostFocus($direct-parent-only-sel: false) {
@if $direct-parent-only-sel {
:host-context(.isNoTouchDevice):focus > #{$direct-parent-only-sel} > & {
@content;
}
} @else {
:host-context(.isNoTouchDevice):focus & {
@content;
}
}
}
@mixin isDone($direct-parent-only-sel: false) {
@if $direct-parent-only-sel {
.inner-wrapper.isDone > #{$direct-parent-only-sel} > & {
@content;
}
} @else {
.inner-wrapper.isDone & {
@content;
}
}
}
@mixin isDoneForFirstLine($direct-parent-only-sel: false) {
:host.isDone > .inner-wrapper > .first-line & {
@content;
}
}
@mixin standardTaskOpacityChange {
opacity: $task-icon-default-opacity;
transition: transform $transition-fast;
.isCurrent &,
&:hover,
&:focus {
opacity: 1;
}
}
%standardTaskOpacityChange {
@include standardTaskOpacityChange;
}
%standardTaskZoom {
&:hover,
&:focus {
transform: scale(1.2);
}
}