commit 437542f408c1a11d78cf8d90452d0b88b18a8576 Author: Isis Lovecruft isis@torproject.org Date: Sat Apr 19 04:32:50 2014 +0000
Fix word wrapping/newlines in div containing bridge lines. --- lib/bridgedb/templates/assets/css/custom.css | 18 ++++++++++++++++++ lib/bridgedb/templates/bridges.html | 5 +---- 2 files changed, 19 insertions(+), 4 deletions(-)
diff --git a/lib/bridgedb/templates/assets/css/custom.css b/lib/bridgedb/templates/assets/css/custom.css index a0dbdf0..3fd1065 100644 --- a/lib/bridgedb/templates/assets/css/custom.css +++ b/lib/bridgedb/templates/assets/css/custom.css @@ -102,3 +102,21 @@ margin-top: 2px; .bdb_span7 { width: 560px } + +div.bridge-lines { + padding: 20px; + margin: 0px 0px 20px; + min-height: 20px; + font-family: Monaco,Menlo,Consolas,"Courier New",monospace; + font-size: 95%; + line-height: 175%; + color: rgb(44, 62, 80); + word-break: break-all; + word-wrap: break-word; + white-space: pre-wrap; + background-color: rgb(236, 240, 241); + border: 1px solid transparent; + border-radius: 6px 6px 6px 6px; + box-shadow: none; + -moz-box-sizing: border-box; +} \ No newline at end of file diff --git a/lib/bridgedb/templates/bridges.html b/lib/bridgedb/templates/bridges.html index f8e5a0e..a118404 100644 --- a/lib/bridgedb/templates/bridges.html +++ b/lib/bridgedb/templates/bridges.html @@ -12,11 +12,8 @@ % if answer: <div class="container-fluid" style="width: 98%; align: center; margin: auto;"> <div class="container-fluid" style="padding: 1px"> -<div class="well well-lg"> -<p style="font-family: Menlo,Monaco,Consolas,monospace; - font-size: 95%;"> +<div class="bridge-lines"> ${answer} -</p> </div> </div> </div>