# HG changeset patch # User neko259 # Date 2013-10-21 20:13:11 # Node ID 0414f856a738c15b38c96b4cb5ad628c0a8fc2db # Parent b5bf6984d2e96891b9b4e80a9cdee4addddcc0c2 Small fix for the bumplimit bar. diff --git a/boards/static/css/md/base_page.css b/boards/static/css/md/base_page.css --- a/boards/static/css/md/base_page.css +++ b/boards/static/css/md/base_page.css @@ -324,11 +324,20 @@ input[type="submit"]:hover { .bar-value { background: rgba(50, 55, 164, 0.45); - padding: 2px; font-size: 0.9em; + height: 1.5em; } .bar-bg { + position: relative; border: solid 1px #888; margin: 5px; + overflow: hidden; +} + +.bar-text { + padding: 2px; + position: absolute; + left: 0; + top: 0; } \ No newline at end of file diff --git a/boards/static/css/pg/base_page.css b/boards/static/css/pg/base_page.css --- a/boards/static/css/pg/base_page.css +++ b/boards/static/css/pg/base_page.css @@ -320,10 +320,20 @@ input[type="submit"]:hover { background: rgba(251, 199, 16, 0.61); padding: 2px; font-size: 0.9em; + height: 1.5em; } .bar-bg { + position: relative; border: 1px solid rgb(204, 204, 204); border-radius: 5px 5px 5px 5px; margin: 5px; + overflow: hidden; +} + +.bar-text { + padding: 2px; + position: absolute; + left: 0; + top: 0; } \ No newline at end of file diff --git a/boards/static/css/sw/base_page.css b/boards/static/css/sw/base_page.css --- a/boards/static/css/sw/base_page.css +++ b/boards/static/css/sw/base_page.css @@ -289,10 +289,22 @@ li { .bar-value { background: #E3E7F2; padding: .1em 1ex; + moz-box-sizing: border-box; + box-sizing: border-box; + height: 1.5em; } .bar-bg { background: #EA4649; border: 1px solid #666; margin: 0 1ex 1em 1ex; + position: relative; + overflow: hidden; +} + +.bar-text { + padding: 2px; + position: absolute; + left: 0; + top: 0; } \ No newline at end of file diff --git a/boards/templates/boards/thread.html b/boards/templates/boards/thread.html --- a/boards/templates/boards/thread.html +++ b/boards/templates/boards/thread.html @@ -19,6 +19,8 @@ {% if bumpable %}
+
+
{{ posts_left }} {% trans 'posts to bumplimit' %}