Latest Posts

Topic: css- justifying some contents

kaputtnik
Avatar
Joined: 2013-02-18, 20:48
Posts: 1626
Ranking
One Elder of Players
Location: Germany
Posted at: 2014-12-09, 19:27

As GunChleoc wrotes:

Another thing I noticed in your screenshot is that the padding above headings is smaller than the padding below headings. It should be the other way around. This would be a different fix though.

i've tried to adjust some of this paddings (most for the wiki):

Now:

vorher

After adjusting:

after

  1. Tablecontent gets a little space to make them not stick together
  2. Header paddings adjusted: above is more space than below
  3. Because of the mighter space above headings, the first Header will become far away from the top of background. This is fixed for headers level1 and level2.
  4. Add a little space after the tables to prevend that text sticks at the table. See https://wl.widelands.org/wiki/EditorHelpHelp/ for another example how it looks today

In the end i noticed in the forum that the top border of the donatebox (right side) isn't equal to the top border of the topic-section (left side) . This would be also fixed.

I will make a bugreport with the diff if my suggestions are ok.


Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 15:56
Posts: 2714
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2014-12-09, 22:47

This is definitely an improvement face-smile.png

It is a bit hard to judge how the headings now look with normal text, can you make another screenshot with lots of text? You can use lorem ipsum for that.


Busy indexing nil values

Top Quote
kaputtnik
Avatar
Joined: 2013-02-18, 20:48
Posts: 1626
Ranking
One Elder of Players
Location: Germany
Posted at: 2014-12-09, 23:18

Here we are face-smile.png

with text

But i have to say: The minimizing of the top-padding for the first header do only work correct, if it is really the first tag. Placing the TOC as first article content will through the first header away:

with toc

If normal text is placed at the beginning of an article, all is fine.

So the only restriction is not to place the toc at the beginnig of an article. I think that is ok... it looks allways nicer, to place the toc after the first header face-grin.png

Edited: 2014-12-09, 23:22
Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 15:56
Posts: 2714
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2014-12-10, 09:30

Yes, title should always come before the TOC, so we're fine here. So, go ahead and open a bug face-smile.png


Busy indexing nil values

Top Quote
kaputtnik
Avatar
Joined: 2013-02-18, 20:48
Posts: 1626
Ranking
One Elder of Players
Location: Germany
Posted at: 2014-12-11, 17:50

Thanks face-smile.png

Bug


Top Quote