diff --git a/cara/apps/calculator/static/css/report.css b/cara/apps/calculator/static/css/report.css index be80c21f..a2d86159 100644 --- a/cara/apps/calculator/static/css/report.css +++ b/cara/apps/calculator/static/css/report.css @@ -1,85 +1,174 @@ #body { - top: 10px; - left: 20px; - bottom: 20px; - right: 20px; - padding: 20px; + top: 10px; + left: 20px; + bottom: 20px; + right: 20px; + padding: 20px; } h1 { - text-align: center; + text-align: center; } .subtitle { - text-align: center; - font-size: 13pt; - padding-bottom: 15pt; + text-align: center; + font-size: 13pt; + padding-bottom: 15pt; } p.data_italic { - font-style: italic; + font-style: italic; } p.data_title { - font-weight: bold; + font-weight: bold; } p.data_text { - padding-left: 30px; + padding-left: 30px; } p.data_subtext { - padding-left: 60px; - margin-left: -3em; + padding-left: 60px; + margin-left: -3em; } p.result_title { - font-weight: bold; - font-size: 15pt; + font-weight: bold; + font-size: 15pt; } p.image { - text-align: center; - font-size: 13pt; + text-align: center; + font-size: 13pt; } p.disclaimer { - font-size: 12pt; + font-size: 12pt; } p.notes { - font-size: 10pt; + font-size: 10pt; } .red_bkg { - color: #000000; - background-color: #CD5C5C; - text-decoration: none; + color: #000000; + background-color: #CD5C5C; + text-decoration: none; } .yellow_bkg { - color: #000000; - background-color: #FFFF00; - text-decoration: none; + color: #000000; + background-color: #FFFF00; + text-decoration: none; } .green_bkg { - color: #000000; - background-color: #90EE90; - text-decoration: none; + color: #000000; + background-color: #90EE90; + text-decoration: none; } .icon_button { - border: none; - background: none; + border: none; + background: none; } -.icon_button:focus { outline:0 !important; } +.icon_button:focus { + outline: 0 !important; +} .nav-tabs .nav-item .nav-link.active { - font-weight: bold; + font-weight: bold; } -.nav-tabs .nav-item .nav-link{ - color: black; +.nav-tabs .nav-item .nav-link { + color: black; +} + + +/* CSS for the animation */ + +.green-1 { + background-color: green!important; + background-image: linear-gradient(90deg, #0f9403, #85fd55); +} + +.yellow-2 { + background-color: yellow!important; + background-image: linear-gradient(90deg, #fdf255, #fffb00); +} + +.orange-3 { + background-color: orange!important; + background-image: linear-gradient(90deg, #fd5581, #fd8b55); +} + +.red-4 { + background-color: #ed184f!important; + background-image: linear-gradient(90deg, #fd5581, #fd8b55); +} + +.intro-banner-vdo-play-btn { + height: 60px; + width: 60px; + position: relative; + text-align: center; + border-radius: 100px; + z-index: 1 +} + +.intro-banner-vdo-play-btn i { + line-height: 56px; + font-size: 30px +} + +.intro-banner-vdo-play-btn .ripple { + position: absolute; + width: 160px; + height: 160px; + z-index: -1; + left: 50%; + top: 50%; + opacity: 0; + margin: -80px 0 0 -80px; + border-radius: 100px; + -webkit-animation: ripple 1.8s infinite; + animation: ripple 1.8s infinite +} + +@-webkit-keyframes ripple { + 0% { + opacity: 1; + -webkit-transform: scale(0); + transform: scale(0) + } + 100% { + opacity: 0; + -webkit-transform: scale(1); + transform: scale(1) + } +} + +@keyframes ripple { + 0% { + opacity: 1; + -webkit-transform: scale(0); + transform: scale(0) + } + 100% { + opacity: 0; + -webkit-transform: scale(1); + transform: scale(1) + } +} + +.intro-banner-vdo-play-btn .ripple:nth-child(2) { + animation-delay: .3s; + -webkit-animation-delay: .3s +} + +.intro-banner-vdo-play-btn .ripple:nth-child(3) { + animation-delay: .6s; + -webkit-animation-delay: .6s } \ No newline at end of file diff --git a/cara/apps/calculator/themes/cern/templates/calculator.report.html.j2 b/cara/apps/calculator/themes/cern/templates/calculator.report.html.j2 index a4f92a1d..0737ef63 100644 --- a/cara/apps/calculator/themes/cern/templates/calculator.report.html.j2 +++ b/cara/apps/calculator/themes/cern/templates/calculator.report.html.j2 @@ -1,6 +1,7 @@ {% extends "base/calculator.report.html.j2" %} {% block report_summary %} + 15) or (expected_new_cases >= 1)) %} >