From c5d6444b40e659b343de5eb06d27571ed13b5276 Mon Sep 17 00:00:00 2001 From: Michael <85116490+MishaZhem@users.noreply.github.com> Date: Fri, 2 Aug 2024 13:32:58 +0300 Subject: [PATCH] feat: improve contrast weather widget (#46) * feat: improve contrast weather widget * chore: change box-shadow * chore: update weather.component.less --- .../iot/components/weather/weather.component.html | 3 +-- .../iot/components/weather/weather.component.less | 7 +++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/apps/taiga-lumbermill/src/dashboards/iot/components/weather/weather.component.html b/apps/taiga-lumbermill/src/dashboards/iot/components/weather/weather.component.html index bcca9d963..58b05e6d9 100644 --- a/apps/taiga-lumbermill/src/dashboards/iot/components/weather/weather.component.html +++ b/apps/taiga-lumbermill/src/dashboards/iot/components/weather/weather.component.html @@ -6,13 +6,12 @@ tuiAppearance="whiteblock" tuiCardLarge="normal" class="card" - [class.card_light]="getTypeOfWeather(current.condition.code) != 'clouds'" [style.background-image]="getImage(current.condition.code)" >

Weather diff --git a/apps/taiga-lumbermill/src/dashboards/iot/components/weather/weather.component.less b/apps/taiga-lumbermill/src/dashboards/iot/components/weather/weather.component.less index 0f1533151..11fcce981 100644 --- a/apps/taiga-lumbermill/src/dashboards/iot/components/weather/weather.component.less +++ b/apps/taiga-lumbermill/src/dashboards/iot/components/weather/weather.component.less @@ -6,10 +6,9 @@ .card { background-position: center; - - &_light { - color: var(--tui-background-base); - } + overflow: hidden; + box-shadow: inset 0 10rem 10rem 10rem rgba(0, 0, 0, 0.527); + color: var(--tui-text-primary-on-accent-1); } .info {