diff --git a/style.css b/style.css index de929f2a0..3a67a64ad 100644 --- a/style.css +++ b/style.css @@ -15,6 +15,7 @@ th { background-color: #f4f4f4; } .progress-bar { + display: inline-block; background-color: #4caf50; color: white; height: 20px; @@ -22,14 +23,28 @@ th { text-align: center; overflow: hidden; white-space: nowrap; - min-width: 50px; box-sizing: border-box; } +.progress-bar-outer-label { + display: none; + padding-left: .5em; + height: 20px; + line-height: 20px; + overflow: hidden; +} +.progress-bar.low { + color: transparent; + user-select: none; +} +.progress-bar.low + .progress-bar-outer-label { + display: inline-block; +} td[data-label="visitors"], td[data-label="translators"] { text-align: right; } td[data-label="completion"] { width: 100%; + line-height: 0; } @media screen and (max-width: 600px) { table, thead, tbody, th, td, tr { diff --git a/template.html.jinja b/template.html.jinja index f88fe363f..bf951b161 100644 --- a/template.html.jinja +++ b/template.html.jinja @@ -47,7 +47,8 @@ {% if translators_link %}{% endif %}
Last updated at {{ generation_time.strftime('%A, %d %B %Y, %X %Z') }}.