forked from kinow/niwaweather-dashing-js-widget
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathniwaweather.scss
71 lines (57 loc) · 1.83 KB
/
niwaweather.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
66
67
68
69
70
71
$background-color: darkturquoise;
.widget-niwaweather {
background-color: $background-color;
transition: background-color 2s linear;
-moz-transition: background-color 2s linear;
-o-transition: background-color 2s linear;
-webkit-transition: background-color 2s linear;
h1.temperature {
display: inline-block;
vertical-align: middle;
font-size: 80px;
&:after {
content: "\00b0";
}
}
h2 {
display: inline-block;
vertical-align: middle;
font-size: 120px;
font-family: "Climacons-Font";
}
h3 {
width: 100%;
margin-top: 10px;
text-transform: uppercase;
font-size: 15px;
letter-spacing: 2px;
}
.updated-at {
text-transform: uppercase;
letter-spacing: 1px;
font-size: 10px;
color: lighten($background-color, 15%);
}
}
// background colors
$background-colors: #52a5ff #48efff #4dff5a #ffe33d #ff9d37 #ff5131 #ff2c59;
//=niwaweather-background($color, $percentage: 25%) {
@mixin niwaweather-background($color, $percentage: 25%) {
background-color: $color;
.updated-at {
color: lighten($color, $percentage);
}
}
@for $index from 0 through 6 {
.niwaweather-temperature-#{$index} {
//+niwaweather-background(nth($background-colors, $index + 1));
@include niwaweather-background(nth($background-colors, $index + 1));
}
}
// climacons
$climacons: "\e037" "\e009" "\e009" "\e025" "\e025" "\e00f" "\e015" " \e00f" "\e00c" "\e00c" "\e00f" "\e006" "\e006" "\e015" "\e018" "\e018" "\e018" "\e012" "\e00f" "\e01e" "\e01b" "\e01e" "\e01e" "\e01e" "\e021" "\e01b" "\e000" "\e002" "\e001" "\e002" "\e001" "\e02d" "\e028" "\e002" "\e028" "\e012" "\e028" "\e025" "\e025" "\e025" "\e006" "\e036" "\e036" "\e036" "\e000" "\e025" "\e036" "\e025";
@for $index from 0 through 47 {
.niwaweather-#{$index}:before {
content: nth($climacons, $index + 1);
}
}