-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathcontract-result-overlay.scss
65 lines (52 loc) · 1.28 KB
/
contract-result-overlay.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
59
60
61
62
63
64
65
@use 'components/shared/styles/constants' as *;
@use 'components/shared/styles/mixins' as *;
@keyframes animate-fade-in {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
.db-contract-card__result {
$contract_result: &;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: $BORDER_RADIUS;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
box-sizing: border-box;
z-index: 2;
background-color: var(--overlay-inside-dialog);
animation: animate-fade-in 0.3s;
@include flex-center;
&:hover {
background: 0;
#{$contract_result}-caption {
opacity: 0;
}
}
&-caption {
display: flex;
align-items: center;
transition: opacity 0.25s linear;
}
&-icon {
margin-left: 10px;
}
&--won {
background-image: $COLOR_LIGHT_GREEN_GRADIENT; // TODO: Update when gradients are added.
> #{$contract_result}-caption {
color: var(--text-profit-success);
}
}
&--lost {
background-image: $COLOR_LIGHT_RED_GRADIENT; // TODO: Update when gradients are added.
> #{$contract_result}-caption {
color: var(--text-loss-danger);
}
}
}