#5223 srcfpo theme: left-align the lines in description
Merged 2 years ago by ngompa. Opened 2 years ago by zbyszek.
zbyszek/pagure left-align-descriptions  into  master

@@ -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 */

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

Pull-Request has been merged by ngompa

2 years ago
Metadata