diff --git a/app/assets/stylesheets/application.tailwind.css.scss b/app/assets/stylesheets/application.tailwind.css.scss index 097702b5..4bf728be 100644 --- a/app/assets/stylesheets/application.tailwind.css.scss +++ b/app/assets/stylesheets/application.tailwind.css.scss @@ -21,3 +21,24 @@ --main-colour-light: #dae7f7; --main-colour-lightest: #EDF4FB;; } + +.air-quality-alert { + background-color: var(--main-colour-lightest); + padding: 1rem; + display: flex; + justify-content: space-between; + + svg { + width: 1rem; + height: 1rem; + margin-right: 0.25rem; + stroke: black; + margin-bottom: 2px; + display: inline-block; + } + + a { + color: black; + text-decoration: underline; + } +} diff --git a/app/assets/stylesheets/daqi-levels.scss b/app/assets/stylesheets/daqi-levels.scss index be3ca80f..1f3a6db4 100644 --- a/app/assets/stylesheets/daqi-levels.scss +++ b/app/assets/stylesheets/daqi-levels.scss @@ -22,7 +22,7 @@ --daqi-level-10-text: white; } -.daqi-scale, .tabs, .daqi-table { +.daqi-scale, .tabs, .daqi-table, .air-quality-alert { .daqi-level-1 { background-color: var(--daqi-level-1-bg); color: var(--daqi-level-1-text); @@ -65,22 +65,22 @@ } } -.daqi-low-level { +.daqi-level-low { color: var(--daqi-level-2-text); background-color: var(--daqi-level-2-bg); } -.daqi-moderate-level { +.daqi-level-moderate { color: var(--daqi-level-5-text); background-color: var(--daqi-level-5-bg); } -.daqi-high-level { +.daqi-level-high { color: var(--daqi-level-8-text); background-color: var(--daqi-level-8-bg); } -.daqi-very-high-level { +.daqi-level-very-high { color: var(--daqi-level-10-text); background-color: var(--daqi-level-10-bg); } diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index a638a9bc..dc20fc00 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -14,6 +14,7 @@