django / code.djangoproject.com

Configuration for Django's Trac instance (code.djangoproject.com)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logout nav item style

matsaman opened this issue · comments

Has some imperfect styling that increases the entire nav area's height, this'll fix it:

li form.trac-logout { display: inline-block !important; }
li form.trac-logout button {
	height: auto;
}

Adding height: auto; seems sufficient to me, did I miss the reason for the first line?

Technically, visually just the second rule might suffice, but if you add, for example, * { outline: 1px solid fuchsia; }, you'll see that the first rule further mitigates the issue.

Great, thanks for the explanation.