From b6d781d5a1a4d66fb1ff1c0f930cc3042edc3f7e Mon Sep 17 00:00:00 2001 From: chriseverson Date: Mon, 14 Sep 2015 11:42:49 -0500 Subject: [PATCH] Add Sass/LESS mappings for Weather Underground API --- less/mappings/wi-wunderground.less | 19 +++++++++++++++++++ less/weather-icons.less | 1 + sass/mappings/wi-wunderground.scss | 19 +++++++++++++++++++ sass/weather-icons.scss | 3 ++- 4 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 less/mappings/wi-wunderground.less create mode 100644 sass/mappings/wi-wunderground.scss diff --git a/less/mappings/wi-wunderground.less b/less/mappings/wi-wunderground.less new file mode 100644 index 0000000..f79abd6 --- /dev/null +++ b/less/mappings/wi-wunderground.less @@ -0,0 +1,19 @@ +.@{$wi-css-prefix}-chanceflurries:before { content: $snow-wind; } +.@{$wi-css-prefix}-chancerain:before { content: $rain; } +.@{$wi-css-prefix}-chancesleat:before { content: $sleet; } +.@{$wi-css-prefix}-chancesnow:before { content: $snow; } +.@{$wi-css-prefix}-chancetstorms:before { content: $thunderstorm; } +.@{$wi-css-prefix}-clear:before { content: $day-sunny; } +.@{$wi-css-prefix}-cloudy:before { content: $day-cloudy; } +.@{$wi-css-prefix}-flurries:before { content: $snow-wind; } +.@{$wi-css-prefix}-hazy:before { content: $day-haze; } +.@{$wi-css-prefix}-mostlycloudy:before { content: $day-cloudy; } +.@{$wi-css-prefix}-mostlysunny:before { content: $day-sunny; } +.@{$wi-css-prefix}-partlycloudy:before { content: $day-cloudy; } +.@{$wi-css-prefix}-partlysunny:before { content: $day-sunny; } +.@{$wi-css-prefix}-rain:before { content: $showers; } +.@{$wi-css-prefix}-sleat:before { content: $sleet; } +.@{$wi-css-prefix}-snow:before { content: $snow; } +.@{$wi-css-prefix}-sunny:before { content: $day-sunny; } +.@{$wi-css-prefix}-tstorms:before { content: $thunderstorm; } +.@{$wi-css-prefix}-unknown:before { content: $day-sunny; } \ No newline at end of file diff --git a/less/weather-icons.less b/less/weather-icons.less index ef3a921..9cf4c78 100644 --- a/less/weather-icons.less +++ b/less/weather-icons.less @@ -28,3 +28,4 @@ @import "mappings/wi-forecast-io.less"; @import "mappings/wi-wmo4680.less"; @import "mappings/wi-owm.less"; +@import "mappings/wi-wunderground.less"; diff --git a/sass/mappings/wi-wunderground.scss b/sass/mappings/wi-wunderground.scss new file mode 100644 index 0000000..07c315f --- /dev/null +++ b/sass/mappings/wi-wunderground.scss @@ -0,0 +1,19 @@ +.#{$wi-css-prefix}-chanceflurries:before { content: $snow-wind; } +.#{$wi-css-prefix}-chancerain:before { content: $rain; } +.#{$wi-css-prefix}-chancesleat:before { content: $sleet; } +.#{$wi-css-prefix}-chancesnow:before { content: $snow; } +.#{$wi-css-prefix}-chancetstorms:before { content: $thunderstorm; } +.#{$wi-css-prefix}-clear:before { content: $day-sunny; } +.#{$wi-css-prefix}-cloudy:before { content: $day-cloudy; } +.#{$wi-css-prefix}-flurries:before { content: $snow-wind; } +.#{$wi-css-prefix}-hazy:before { content: $day-haze; } +.#{$wi-css-prefix}-mostlycloudy:before { content: $day-cloudy; } +.#{$wi-css-prefix}-mostlysunny:before { content: $day-sunny; } +.#{$wi-css-prefix}-partlycloudy:before { content: $day-cloudy; } +.#{$wi-css-prefix}-partlysunny:before { content: $day-sunny; } +.#{$wi-css-prefix}-rain:before { content: $showers; } +.#{$wi-css-prefix}-sleat:before { content: $sleet; } +.#{$wi-css-prefix}-snow:before { content: $snow; } +.#{$wi-css-prefix}-sunny:before { content: $day-sunny; } +.#{$wi-css-prefix}-tstorms:before { content: $thunderstorm; } +.#{$wi-css-prefix}-unknown:before { content: $day-sunny; } \ No newline at end of file diff --git a/sass/weather-icons.scss b/sass/weather-icons.scss index a8106cf..cc3a4e2 100644 --- a/sass/weather-icons.scss +++ b/sass/weather-icons.scss @@ -27,4 +27,5 @@ @import "mappings/wi-yahoo.scss"; @import "mappings/wi-forecast-io.scss"; @import "mappings/wi-wmo4680.scss"; -@import "mappings/wi-owm.scss"; \ No newline at end of file +@import "mappings/wi-owm.scss"; +@import "mappings/wi-wunderground.scss"; \ No newline at end of file