MediaWiki talk:Common.css

From Path of Exile Wiki
Jump to navigation Jump to search

This talk page is for discussing MediaWiki:Common.css.

  • Sign your posts using four tildes (~~~~)
  • Start a new topic at the bottom under a ==level 2 heading==
  • Indent replies using colons (:)
  • Keep it civil
  • Assume good faith
  • Don't remove past discussions

Difficulty colours

I'd like some colours added for the difficulty levels. This would be perfect:

.text-diffnormal {
	color: #55AA22;
}
.text-diffcruel {
	color: #BBAA22;
}
.text-diffmerciless {
	color: #882222;
}

(Values are taken from {{MonsterBox}}). Chriskang (talk) 09:43, 23 January 2014 (UTC)

Done. Give it a little while to cache and then it should all be working. Iamacyborg (talk) 11:25, 23 January 2014 (UTC)
Thanks. Chriskang (talk) 12:49, 23 January 2014 (UTC)

white-space: nowrap; /* temp */

The comment lets me think that this line was not intended to stay in the whole [class|=itembox] definition. It forces us to manually insert line breaks into long lines like here.

Can we have it removed (and a fixed max-width defined to avoid breaking all itemboxes)?

Or at least, can we have it overridden in help text like this:

.text-help {
	color: #7f7f7f;
	font-style: italic;
	white-space: normal;
	display: inline-block;
	width: 310px;
}
 

Chriskang (talk) 11:10, 27 February 2014 (UTC)

That line and comment were added by me. I was initially trying to figure out a way to avoid the manual insertion of line breaks. It's still very much required for modifiers, but your suggestion for help text and flavor text will definitely work. I can make the necessary changes. The white-space: nowrap; css property serves a specific purpose, but it is somewhat unrelated. It is specifically to avoid the item box collapsing when there is limited "space". This only happens when the item box is used as a hover tooltip and is positioned near the far right of the screen. This screenshot shows the difference. —Vini (t|c) 16:22, 27 February 2014 (UTC)