This repository was archived by the owner on Oct 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhotfloat.scss
More file actions
66 lines (54 loc) · 1.96 KB
/
hotfloat.scss
File metadata and controls
66 lines (54 loc) · 1.96 KB
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
// ----------------------------------------------------------------------------
// Mixins
// ----------------------------------------------------------------------------
@mixin transition($transition-property, $transition-time, $method) {
-webkit-transition: $transition-property $transition-time $method;
-moz-transition: $transition-property $transition-time $method;
-o-transition: $transition-property $transition-time $method;
transition: $transition-property $transition-time $method;
}
// ----------------------------------------------------------------------------
// Sass declarations
// ----------------------------------------------------------------------------
$background-color: #47bbb3;
$value-color: #fff;
$title-color: rgba(255, 255, 255, 0.7);
$moreinfo-color: rgba(255, 255, 255, 0.7);
$updated-at-color: rgba(0, 0, 0, 0.3);
// ----------------------------------------------------------------------------
// Widget-hotfloat styles
// ----------------------------------------------------------------------------
.widget-hotfloat {
background-color: $background-color;
.title {
color: $title-color;
}
.value {
color: $value-color;
}
.change-rate {
font-weight: 500;
font-size: 30px;
color: $value-color;
}
.more-info {
color: $moreinfo-color;
}
.updated-at {
color: $updated-at-color;
}
}
.hotfloat0 { background-color: #00C176; }
.hotfloat1 { background-color: #FF8A00; }
.hotfloat2 { background-color: #FF003C; }
//.hotfloat0 { background-color: #00C176; }
//.hotfloat1 { background-color: #88C100; }
//.hotfloat2 { background-color: #FABE28; }
//.hotfloat3 { background-color: #FF8A00; }
//.hotfloat4 { background-color: #FF003C; }
// // More colour-blind friendly palette
// .hotfloat0 { background-color: #046D8B; }
// .hotfloat1 { background-color: #309292; }
// .hotfloat2 { background-color: #2FB8AC; }
// .hotfloat3 { background-color: #93A42A; }
// .hotfloat4 { background-color: #ECBE13; }