Browse Source

srcfpo theme: left-align the lines in description

The description texts are taken from package %descriptions, and our packaging
guidelines specify that the text is 80-column wrapped. Centering the lines of
the text leads to poorly-looking christmas-tree-like layout. People occasionally
use lists and such, and this looks especially bad if the vertical alignment
is not preserved.

I think it's nice to leave the paragraph centered, but with individual lines
left-aligned within the paragraph:

  Blah blah  blah  blah  blah  blah  blah  blah  blah blah blah blah
  blah  blah  blah
  blah  blah  blah  blah  blah  blah  blah  blah  blah blah blah:
  - foo
  - bar
  blah  blah  blah  blah  blah  blah  blah  blah  blah  blah  blah

Tested with firefox-92.0.1-1.fc35.x86_64, chromium-93.0.4577.63-1.fc35.x86_64.

Signed-off-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Zbigniew Jędrzejewski-Szmek 2 years ago
parent
commit
3a89a5af4f
1 changed files with 5 additions and 0 deletions
  1. 5 0
      pagure/themes/srcfpo/templates/repo_info.html

+ 5 - 0
pagure/themes/srcfpo/templates/repo_info.html

@@ -46,6 +46,11 @@
     background: url({{ url_for('theme.static', filename='icons/transtats.png')}}?version={{ g.version}}) 0 50% no-repeat;
   }
   .projectinfo {
+    text-align: left;
+    margin-left: auto;
+    margin-right: auto;
+    display: table;
+
     white-space: pre-wrap;
     white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
     white-space: -pre-wrap;      /* Opera 4-6 */