diff --git a/app/frontend/styles/_data_box.scss b/app/frontend/styles/_data_box.scss index 9bfb861ed..f9003f99e 100644 --- a/app/frontend/styles/_data_box.scss +++ b/app/frontend/styles/_data_box.scss @@ -1,5 +1,53 @@ +.app-data-box-group { + @include govuk-font($size: 19); + font-weight: bold; + white-space: nowrap; +} + +@media (min-width: 54.0625em) { + .app-data-box-group-one-third { + display: flex; + justify-content: space-between; + column-gap: govuk-spacing(4); + width: 100%; + min-width: 733.33px; + } +} +@media (min-width: 54.0625em) { + .app-data-box-one-third { + width: 33.3333333%; + float: left; + } +} +@media (min-width: 54.0625em) { + .app-data-box__underline { + min-width: 733.33px; + } +} +@media (min-width: 54.0625em) { + .app-data-box-group-one-half { + display: flex; + justify-content: space-between; + column-gap: govuk-spacing(4); + width: 100%; + min-width: 733.33px; + } +} +@media (min-width: 54.0625em) { + .app-data-box-one-half { + width: 50%; + float: left; + } +} +@media (min-width: 54.0625em) { + .app-data-box-one-half__underline { + min-width: 733.33px; + } +} + .app-data-box__upper { @include govuk-responsive-margin(2, "bottom"); + @include govuk-responsive-padding(4); background-color: govuk-colour("light-grey"); color: govuk-colour("blue"); @@ -7,16 +55,11 @@ .app-data-box__lower { @include govuk-responsive-margin(4, "bottom"); + @include govuk-responsive-padding(4); background-color: govuk-colour("blue"); } -.app-data-box { - @include govuk-responsive-padding(4); - font-weight: bold; - white-space: nowrap; -} - .app-data-box__count { font-size: 48px; color: govuk-colour("blue"); diff --git a/app/views/home/_data_box.html.erb b/app/views/home/_data_box.html.erb index fdd13d1a6..38efb5195 100644 --- a/app/views/home/_data_box.html.erb +++ b/app/views/home/_data_box.html.erb @@ -1,9 +1,9 @@ -